Skip to content

Commit

Permalink
Test crypto workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jopelima committed Oct 6, 2023
1 parent 9075f41 commit cea4c84
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 5 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/crypto-testing.yml
Original file line number Diff line number Diff line change
@@ -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
9 changes: 4 additions & 5 deletions zeta/init
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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
Empty file modified zeta/test-script.sh
100644 → 100755
Empty file.

0 comments on commit cea4c84

Please sign in to comment.