Browse Source

ci: update test script

master
umarcor 8 months 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")/..
run_sim() {
case "$1" in
sim)
true
;;
*)
echo "Unknown test suite '$1'"
exit 1
;;
esac
run_task() {
echo "::group::Test $1"
cd "$1"/sim/vhdl
$MAKE sim
cd "$1"/"$2"/vhdl
$MAKE "$2"
cd ../../..
echo '::endgroup::'
}
for item in aes cbcdes cbcmac_des cbctdes ctraes des tdes; do
run_sim $item
run_task "$item" "$1"
done

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

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

Loading…
Cancel
Save