Mercurial > urweb
comparison Makefile.am @ 2165:7dfce558aca2
Change 'make test' to work before 'make install'
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Thu, 06 Aug 2015 09:57:47 -0400 |
parents | 728aaeea12fd |
children | a9dc205edd78 |
comparison
equal
deleted
inserted
replaced
2164:728aaeea12fd | 2165:7dfce558aca2 |
---|---|
117 | 117 |
118 TESTDB = /tmp/urweb.db | 118 TESTDB = /tmp/urweb.db |
119 TESTPID = /tmp/urweb.pid | 119 TESTPID = /tmp/urweb.pid |
120 | 120 |
121 test: | 121 test: |
122 urweb -dbms sqlite -db $(TESTDB) -demo /Demo demo | 122 bin/urweb -boot -dbms sqlite -db $(TESTDB) -demo /Demo demo |
123 rm -f $(TESTDB) | 123 rm -f $(TESTDB) |
124 sqlite3 $(TESTDB) < demo/demo.sql | 124 sqlite3 $(TESTDB) < demo/demo.sql |
125 demo/demo.exe & echo $$! > $(TESTPID) | 125 demo/demo.exe & echo $$! > $(TESTPID) |
126 sleep 1 | 126 sleep 1 |
127 (curl -s 'http://localhost:8080/Demo/Hello/main' | diff tests/hello.html -) || (kill `cat $(TESTPID)`; echo "Test 'Hello' failed"; /bin/false) | 127 (curl -s 'http://localhost:8080/Demo/Hello/main' | diff tests/hello.html -) || (kill `cat $(TESTPID)`; echo "Test 'Hello' failed"; /bin/false) |