|
@@ -31,22 +31,24 @@ regression:
|
|
|
@$(MAKE) >> /dev/null 2>&1
|
|
|
|
|
|
@echo "\n\nRun helloworld.py:"
|
|
|
- ./python.manifest scripts/helloworld.py > OUTPUT
|
|
|
- grep -q "Hello World" OUTPUT
|
|
|
+ -./python.manifest scripts/helloworld.py > OUTPUT
|
|
|
+ -grep -q "Hello World" OUTPUT
|
|
|
@rm OUTPUT
|
|
|
|
|
|
@echo "\n\nRun fibonacci.py:"
|
|
|
- ./python.manifest scripts/fibonacci.py > OUTPUT
|
|
|
- grep -q "fib2 55" OUTPUT
|
|
|
- @rm OUTPUT
|
|
|
+ -./python.manifest scripts/fibonacci.py > OUTPUT
|
|
|
+ -grep -q "fib2 55" OUTPUT
|
|
|
+ @rm -f OUTPUT
|
|
|
|
|
|
@echo "\n\nRun a HTTP server in the background"
|
|
|
- python scripts/dummy-web-server.py 8000
|
|
|
+ python scripts/dummy-web-server.py 8000 & echo $$! > server.PID
|
|
|
+ sleep 1
|
|
|
@echo "\n\nRun test-http.py:"
|
|
|
- ./python.manifest scripts/test-http.py 127.0.0.1 8000 > OUTPUT
|
|
|
- wget -q http://127.0.0.1:8000/ -O OUTPUT2
|
|
|
+ -./python.manifest scripts/test-http.py 127.0.0.1 8000 > OUTPUT1
|
|
|
+ -wget -q http://127.0.0.1:8000/ -O OUTPUT2
|
|
|
diff -q OUTPUT1 OUTPUT2
|
|
|
- @rm OUTPUT OUTPUT2
|
|
|
+ @kill `cat server.PID`
|
|
|
+ @rm -f OUTPUT1 OUTPUT2 server.PID
|
|
|
|
|
|
|
|
|
BENCHMARK = all,-rietveld,-spitfire,-tornado_http
|