diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-08-13 02:06:59 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-08-15 10:06:21 +0900 |
| commit | 8e9dfdbabe0f721e64fd39baa3a0f388c81b65ad (patch) | |
| tree | 6c724cfbeaea94478b542560fa3b40e9f7467330 /tests/all.sh | |
| parent | 80e1d0fc957a2f254ca94232cca0269567888ddb (diff) | |
| download | ducc-8e9dfdbabe0f721e64fd39baa3a0f388c81b65ad.tar.gz ducc-8e9dfdbabe0f721e64fd39baa3a0f388c81b65ad.tar.zst ducc-8e9dfdbabe0f721e64fd39baa3a0f388c81b65ad.zip | |
feat: add 2 example files
Diffstat (limited to 'tests/all.sh')
| -rw-r--r-- | tests/all.sh | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/tests/all.sh b/tests/all.sh index 70776cf..ce7ab6d 100644 --- a/tests/all.sh +++ b/tests/all.sh @@ -2,13 +2,18 @@ set -e rm -rf tests/tmp mkdir -p tests/tmp -for i in $(seq 1 999); do - testcase=$(printf '%03d' $i) + +for filename in tests/*.sh; do + testcase_="$(basename "$filename")" + testcase="${testcase_/%.sh/}" test_file="tests/$testcase.sh" - if [[ -f "$test_file" ]]; then - bash tests/run.sh "$testcase" - else - echo "All tests passed." - exit - fi + case "$testcase" in + all|run|test_*) + ;; + *) + bash tests/run.sh "$testcase" + ;; + esac done + +echo "All tests passed." |
