comparison Makefile.am @ 2249:c05851bf7861

Merge.
author Ziv Scully <ziv@mit.edu>
date Sat, 12 Sep 2015 17:11:33 -0400
parents a9dc205edd78
children
comparison
equal deleted inserted replaced
2248:e09c3dc102ef 2249:c05851bf7861
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 -noEmacs -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)