diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-10-12 10:21:52 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-10-12 10:22:50 +0200 |
| commit | 9b680fadec01789c1fb1317b939c15d186a572c9 (patch) | |
| tree | d9038076657ec3cf887e5fd2bd14f0155ac25b7e /test/test.sh | |
| parent | c4f64cf2556c0f8597e1fbc19d7c664b8da94612 (diff) | |
| download | nissy-core-9b680fadec01789c1fb1317b939c15d186a572c9.tar.gz nissy-core-9b680fadec01789c1fb1317b939c15d186a572c9.zip | |
Added shelltest
Will add more tests when I feel like it
Diffstat (limited to 'test/test.sh')
| -rwxr-xr-x | test/test.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test.sh b/test/test.sh index a675286..8b5db35 100755 --- a/test/test.sh +++ b/test/test.sh | |||
| @@ -10,7 +10,7 @@ for t in test/*; do | |||
| 10 | if [ -n "$re" ] && !(echo "$t" | grep -q "$re"); then | 10 | if [ -n "$re" ] && !(echo "$t" | grep -q "$re"); then |
| 11 | continue | 11 | continue |
| 12 | fi | 12 | fi |
| 13 | 13 | ||
| 14 | # Verify if $t is a directory and if its name starts with three digits | 14 | # Verify if $t is a directory and if its name starts with three digits |
| 15 | if [ -d "$t" ] && basename "$t" | grep -Eq '^[0-9]{3}'; then | 15 | if [ -d "$t" ] && basename "$t" | grep -Eq '^[0-9]{3}'; then |
| 16 | $CC -o $TESTBIN "$t"/*.c $OBJ || exit 1 | 16 | $CC -o $TESTBIN "$t"/*.c $OBJ || exit 1 |
