mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
add basic tests
This commit is contained in:
parent
3a74531fff
commit
57369539da
1 changed files with 16 additions and 2 deletions
|
@ -5,7 +5,7 @@ variables:
|
|||
stages:
|
||||
- prepare
|
||||
- build
|
||||
#- test
|
||||
- test
|
||||
|
||||
# Stage: prepare
|
||||
##############################################################################
|
||||
|
@ -39,4 +39,18 @@ build:
|
|||
|
||||
# Stage: test
|
||||
##############################################################################
|
||||
|
||||
test:
|
||||
stage: test
|
||||
script:
|
||||
- cd build
|
||||
- export TDIR=./local_prefix/opt/hermit/x86_64-hermit/extra
|
||||
- export FILES="$TDIR/tests/hello
|
||||
- export PROXY=./local_prefix/opt/hermit/bin/proxy
|
||||
- for f in $FILES; do echo "check $f..."; HERMIT_ISLE=qemu HERMIT_CPUS=1 HERMIT_KVM=0 HERMIT_VERBOSE=1 timeout --kill-after=5m 5m $PROXY $f || exit 1; done
|
||||
image: ${IMAGE}
|
||||
tags:
|
||||
- docker
|
||||
only:
|
||||
- merge_requests
|
||||
dependencies:
|
||||
- build
|
||||
|
|
Loading…
Add table
Reference in a new issue