Files
Don Porter 123476ede5 Migrate unit tests to jenkins (#122)
* Migrate running unit tests for Linux host to Jenkins.  Add a unit test for the Linux host, Debug build

* Ignore files generated as part of unit testsing.

* A quick and dirty fix for port collisions during CI tests.  Come back and do a better job if we continue having problems

* For some reason, the PAL Process regression tests fail using the default manifest under a debug build.  Go ahead and explicate a template for the Process test.
2018-08-13 10:31:01 -04:00

15 lines
466 B
Bash
Executable File

#!/bin/sh
## We really need to pick a unique ephemeral port; start by just picking pid+1024
PORT=$(($$ + 1024))
echo "\n\nRun a HTTP server in the background on port " + $PORT
python scripts/dummy-web-server.py $PORT & echo $! > server.PID
sleep 1
echo "\n\nRun test-http.py:"
./python.manifest scripts/test-http.py 127.0.0.1 $PORT > OUTPUT1
wget -q http://127.0.0.1:$PORT/ -O OUTPUT2
diff -q OUTPUT1 OUTPUT2
kill `cat server.PID`
rm -f OUTPUT1 OUTPUT2 server.PID