Browse Source

ci: update test script

master
umarcor 4 years ago
parent
commit
24bee6a79b
2 changed files with 16 additions and 6 deletions
  1. +14
    -4
      .github/test.sh
  2. +2
    -2
      .github/workflows/simulation.yml

+ 14
- 4
.github/test.sh View File

@ -4,14 +4,24 @@ set -e
cd $(dirname "$0")/.. cd $(dirname "$0")/..
run_sim() {
case "$1" in
sim)
true
;;
*)
echo "Unknown test suite '$1'"
exit 1
;;
esac
run_task() {
echo "::group::Test $1" echo "::group::Test $1"
cd "$1"/sim/vhdl
$MAKE sim
cd "$1"/"$2"/vhdl
$MAKE "$2"
cd ../../.. cd ../../..
echo '::endgroup::' echo '::endgroup::'
} }
for item in aes cbcdes cbcmac_des cbctdes ctraes des tdes; do for item in aes cbcdes cbcmac_des cbctdes ctraes des tdes; do
run_sim $item
run_task "$item" "$1"
done done

+ 2
- 2
.github/workflows/simulation.yml View File

@ -28,7 +28,7 @@ jobs:
backend: llvm backend: llvm
- name: '▶️ Test' - name: '▶️ Test'
run: ./.github/test.sh
run: ./.github/test.sh sim
env: env:
MAKE: make MAKE: make
@ -61,6 +61,6 @@ jobs:
mingw-w64-x86_64-openssl mingw-w64-x86_64-openssl
- name: '▶️ Test' - name: '▶️ Test'
run: ./.github/test.sh
run: ./.github/test.sh sim
env: env:
MAKE: mingw32-make MAKE: mingw32-make

Loading…
Cancel
Save