Skip to content

Commit

Permalink
fixup! Add Jenkins-specific init script to run inside VM
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitrii Kuvaiskii <[email protected]>
  • Loading branch information
dimakuv committed Jan 17, 2023
1 parent 3149060 commit 9ccf5ca
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions initramfs_builder/new_init_jenkins
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9ccf5ca

Please sign in to comment.