diff --git a/initramfs_builder/new_init_jenkins b/initramfs_builder/new_init_jenkins index 54b6969..8c66b9e 100755 --- a/initramfs_builder/new_init_jenkins +++ b/initramfs_builder/new_init_jenkins @@ -8,29 +8,31 @@ echo "PREP STARTING" cd $PWD_FOR_VM . "$PWD/envs" -# to find insmod and poweroff programs +# to find insmod and poweroff programs (default PATH doesn't have `/sbin`) export PATH="/sbin:$PATH" -cd device-testing-tools/gramine-device-testing-module -insmod gramine-testing-dev.ko -cd - - -echo "PREP DONE" - if test -n "$SGX"; then GRAMINE=gramine-sgx else GRAMINE=gramine-direct fi -cd libos/test/regression -gramine-test build helloworld -$GRAMINE helloworld +( + cd device-testing-tools/gramine-device-testing-module + insmod gramine-testing-dev.ko +) +echo "PREP DONE" + +( + # run only couple tests -- executing in a VM with virtio-9p-pci FS passthrough is very slow + cd libos/test/regression -gramine-test build device_ioctl -$GRAMINE device_ioctl -cd - + gramine-test build helloworld + $GRAMINE helloworld + gramine-test build device_ioctl + $GRAMINE device_ioctl +) echo "TESTS OK" poweroff -n -f