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

enable travis tests

This commit is contained in:
Stefan Lankes 2017-05-20 15:00:15 +02:00
parent 2704dbfb1e
commit 2f66773720
2 changed files with 6 additions and 3 deletions

View file

@ -17,6 +17,8 @@ script:
- cd build
- cmake ..
- make -j1 package
- cd ..
- ./tests.sh
deploy:
on: master

7
test.sh Normal file → Executable file
View file

@ -3,13 +3,14 @@
# do not use this script
# 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 usr/tests/signals usr/tests/test-malloc usr/tests/test-malloc-mt"
PROXY=/opt/hermit/bin/proxy
TDIR=build/local_prefix/work/hermit/x86_64-hermit/extra
FILES="$TDIR/tests/hello $TDIR/tests/hellof $TDIR/tests/hello++ $TDIR/tests/thr_hello $TDIR/tests/pi $TDIR/benchmarks/stream $TDIR/benchmarks/basic $TDIR/tests/signals $TDIR/tests/test-malloc $TDIR/tests/test-malloc-mt"
PROXY=build/local_prefix/work/hermit/bin/proxy/bin/proxy
for f in $FILES; do echo "check $f..."; timeout --kill-after=5m 5m $PROXY $f || exit 1; done
# test echo server at port 8000
HERMIT_APP_PORT=8000 $PROXY usr/tests/server &
HERMIT_APP_PORT=8000 $PROXY $TDIR/tests/server &
sleep 10
curl http://127.0.0.1:8000/help
sleep 1