mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-08 06:41:58 +00:00
* 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.
15 lines
466 B
Bash
Executable File
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
|