forked from nemequ/munit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[83] Execute all children test suites (covered by test)
- Loading branch information
1 parent
1381254
commit 451c892
Showing
4 changed files
with
108 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
function run_test(){ | ||
local message="$1" | ||
local suite=$2 | ||
|
||
# Only keep lines that are the executed tests | ||
# Remove timing information (to keep the log reproducible) | ||
echo "$message with pattern $suite" | ||
set +e | ||
# Do not quote suite, otherwise, it executes "" for the empty string | ||
./test_setup $suite | grep " OK " | cut -d "[" -f1 | ||
set -e | ||
} | ||
|
||
echo "# Happy Path Tests" | ||
|
||
run_test "Executing all" "" | ||
|
||
run_test "Executing at first level" "/perf" | ||
|
||
run_test "Executing at second level" "/perf/symmetric" | ||
|
||
run_test "Executing at third level" "/perf/symmetric/sha2" | ||
|
||
run_test "Executing at leaf level" "/perf/symmetric/sha2/rand" | ||
|
||
echo "# Not Happy Path Tests" | ||
|
||
run_test "Executing something that doesn't exist" "/xx" | ||
|
||
run_test "Executing something that doesn't exist (2)" "/xx/rand" | ||
|
||
echo "Script finished successfully" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Happy Path Tests | ||
Executing all with pattern | ||
/kat/symmetric/sha2/compare | ||
/kat/symmetric/sha2/rand | ||
/kat/symmetric/sha3/compare | ||
/kat/symmetric/sha3/rand | ||
/kat/asymmetric/x25519/compare | ||
/kat/asymmetric/x25519/rand | ||
/kat/asymmetric/NIST/compare | ||
/kat/asymmetric/NIST/rand | ||
/unit/symmetric/sha2/compare | ||
/unit/symmetric/sha2/rand | ||
/unit/symmetric/sha3/compare | ||
/unit/symmetric/sha3/rand | ||
/unit/asymmetric/x25519/compare | ||
/unit/asymmetric/x25519/rand | ||
/unit/asymmetric/NIST/compare | ||
/unit/asymmetric/NIST/rand | ||
/perf/symmetric/sha2/compare | ||
/perf/symmetric/sha2/rand | ||
/perf/symmetric/sha3/compare | ||
/perf/symmetric/sha3/rand | ||
/perf/asymmetric/x25519/compare | ||
/perf/asymmetric/x25519/rand | ||
/perf/asymmetric/NIST/compare | ||
/perf/asymmetric/NIST/rand | ||
Executing at first level with pattern /perf | ||
/perf/symmetric/sha2/compare | ||
/perf/symmetric/sha2/rand | ||
/perf/symmetric/sha3/compare | ||
/perf/symmetric/sha3/rand | ||
/perf/asymmetric/x25519/compare | ||
/perf/asymmetric/x25519/rand | ||
/perf/asymmetric/NIST/compare | ||
/perf/asymmetric/NIST/rand | ||
Executing at second level with pattern /perf/symmetric | ||
/perf/symmetric/sha2/compare | ||
/perf/symmetric/sha2/rand | ||
/perf/symmetric/sha3/compare | ||
/perf/symmetric/sha3/rand | ||
Executing at third level with pattern /perf/symmetric/sha2 | ||
/perf/symmetric/sha2/compare | ||
/perf/symmetric/sha2/rand | ||
Executing at leaf level with pattern /perf/symmetric/sha2/rand | ||
/perf/symmetric/sha2/rand | ||
# Not Happy Path Tests | ||
Executing something that doesn't exist with pattern /xx | ||
No tests run, 0 (100%) skipped. | ||
Executing something that doesn't exist (2) with pattern /xx/rand | ||
No tests run, 0 (100%) skipped. | ||
Script finished successfully |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters