comparison Makefile.am @ 2167:a9dc205edd78

Add '-noEmacs' for 'make test'
author Adam Chlipala <adam@chlipala.net>
date Thu, 06 Aug 2015 12:51:09 -0400
parents 7dfce558aca2
children
comparison
equal deleted inserted replaced
2166:8a01e8f21de9 2167:a9dc205edd78
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 bin/urweb -boot -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)