Makefile : Add test target with a couple of addresses.

This commit is contained in:
Dmitry Voronin 2024-09-23 15:21:26 +03:00
parent 4a92866bee
commit e74dbb0bec
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
2 changed files with 8 additions and 0 deletions

2
Input.txt Normal file
View file

@ -0,0 +1,2 @@
https://git.voronind.com
https://music.yandex.ru

View file

@ -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)