1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

add test cases for Travis CI

This commit is contained in:
Stefan Lankes 2017-01-18 15:46:55 +01:00
parent 8eb427e771
commit ece7c044b3
2 changed files with 15 additions and 9 deletions

View file

@ -20,6 +20,7 @@ script:
- debuild -e PATH -us -uc -j2
- sudo dpkg -i ../libhermit*_amd64.deb
- make -j2 examples
- make test
deploy:
on: production

23
test.sh
View file

@ -4,15 +4,20 @@
# it is written only for internal tests via Travis CI
FILES="usr/tests/hello usr/tests/hellof usr/tests/hello++ usr/tests/thr_hello usr/tests/pi usr/benchmarks/stream usr/benchmarks/basic"
PROXY=tools/proxy
PROXY=/opt/hermit/bin/proxy
for f in $FILES; do echo "check $f..."; $PROXY $f || exit 1; done
if [ "$TRAVIS_BRANCH" = "prodcution" ]
then
echo "No tests on production branch"
else
for f in $FILES; do echo "check $f..."; $PROXY $f || exit 1; done
# test echo server at port 8000
#HERMIT_APP_PORT=8000 $PROXY usr/tests/server &
#sleep 10
#curl http://127.0.0.1:8000/help
#sleep 1
# test echo server at port 8000
#HERMIT_APP_PORT=8000 $PROXY usr/tests/server &
#sleep 10
#curl http://127.0.0.1:8000/help
#sleep 1
# kill server
#kill $!
# kill server
#kill $!
fi