From e74dbb0bec0897b56fb19270b1fbfc89fe0c8b91 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Mon, 23 Sep 2024 15:21:26 +0300 Subject: [PATCH] Makefile : Add test target with a couple of addresses. --- Input.txt | 2 ++ Makefile | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 Input.txt diff --git a/Input.txt b/Input.txt new file mode 100644 index 0000000..03be22b --- /dev/null +++ b/Input.txt @@ -0,0 +1,2 @@ +https://git.voronind.com +https://music.yandex.ru diff --git a/Makefile b/Makefile index a1dc5e0..93a970d 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,15 @@ # HACK: sbt seems to ignore JAVA_HOME by default, force it to use the correct jdk. sbt = sbt $(sbt_args) sbt_args = -java-home $(JAVA_HOME) +address = localhost +port = 8000 +input = Input.txt run: $(sbt) run clean: $(sbt) clean + +test: + curl $(address):$(port) --upload-file $(input)