From cea4c84ff4b19c6d93093181395fd4680019a18c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Lima?= Date: Fri, 6 Oct 2023 11:48:52 +0100 Subject: [PATCH] Test crypto workflow --- .github/workflows/crypto-testing.yml | 29 ++++++++++++++++++++++++++++ zeta/init | 9 ++++----- zeta/test-script.sh | 0 3 files changed, 33 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/crypto-testing.yml mode change 100644 => 100755 zeta/init mode change 100644 => 100755 zeta/test-script.sh diff --git a/.github/workflows/crypto-testing.yml b/.github/workflows/crypto-testing.yml new file mode 100644 index 0000000000000..03b4618d3d9cb --- /dev/null +++ b/.github/workflows/crypto-testing.yml @@ -0,0 +1,29 @@ +name: Crypto algorithm testing pipeline + +on: + push: + branches: [ "crypto-test" ] + pull_request: + branches: [ "crypto-test" ] + workflow_dispatch: + +jobs: + crypto_testing_job: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: build kernel & modules + run: | + cp config-um .config + make olddefconfig ARCH=um + # make ARCH=um all + mkdir initramfs + # make modules_install INSTALL_MOD_PATH=./initramfs ARCH=um + - name: prepare initramfs + run: | + apt-get install busybox-static + cp /bin/busybox initramfs/bin/busybox + cp zeta/init initramfs/init + cp zeta/test-script.sh initramfs/test-script.sh \ No newline at end of file diff --git a/zeta/init b/zeta/init old mode 100644 new mode 100755 index c92088157e32f..72ac184d41e89 --- a/zeta/init +++ b/zeta/init @@ -1,10 +1,9 @@ -#!/bin/bash +#!/bin/busybox sh echo "tcrypt: starting tcrypt test execution" -sh /test-script.sh +./test-script.sh -mount proc /proc -t proc - -echo o > /proc/sysrq-trigger +busybox mount proc /proc -t proc +busybox poweroff -f diff --git a/zeta/test-script.sh b/zeta/test-script.sh old mode 100644 new mode 100755