Makefile : Add test target with a couple of addresses.
This commit is contained in:
parent
4a92866bee
commit
e74dbb0bec
6
Makefile
6
Makefile
|
@ -1,9 +1,15 @@
|
||||||
# HACK: sbt seems to ignore JAVA_HOME by default, force it to use the correct jdk.
|
# HACK: sbt seems to ignore JAVA_HOME by default, force it to use the correct jdk.
|
||||||
sbt = sbt $(sbt_args)
|
sbt = sbt $(sbt_args)
|
||||||
sbt_args = -java-home $(JAVA_HOME)
|
sbt_args = -java-home $(JAVA_HOME)
|
||||||
|
address = localhost
|
||||||
|
port = 8000
|
||||||
|
input = Input.txt
|
||||||
|
|
||||||
run:
|
run:
|
||||||
$(sbt) run
|
$(sbt) run
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(sbt) clean
|
$(sbt) clean
|
||||||
|
|
||||||
|
test:
|
||||||
|
curl $(address):$(port) --upload-file $(input)
|
||||||
|
|
Reference in a new issue