aboutsummaryrefslogtreecommitdiff
path: root/test/lua/test.sh
diff options
context:
space:
mode:
authorJeremy Bobbin <jer@jer.cx>2024-12-27 11:53:30 +0100
committerRandy Palamar <randy@rnpnr.xyz>2025-01-02 05:46:40 -0700
commit438b31497d91becdec95d06ff62c2d86184fa669 (patch)
treee8281da94c26732a0ecf2f34b637b2cbad504fd7 /test/lua/test.sh
parentf840bcaf95dea328b9edc76c68e27d42cf79330b (diff)
downloadvis-438b31497d91becdec95d06ff62c2d86184fa669.tar.gz
vis-438b31497d91becdec95d06ff62c2d86184fa669.tar.xz
no longer depend on lua-busted
Co-authored-by: Matěj Cepl <mcepl@cepl.eu>
Diffstat (limited to 'test/lua/test.sh')
-rwxr-xr-xtest/lua/test.sh9
1 files changed, 2 insertions, 7 deletions
diff --git a/test/lua/test.sh b/test/lua/test.sh
index 4d885de..db7fb1e 100755
--- a/test/lua/test.sh
+++ b/test/lua/test.sh
@@ -9,11 +9,6 @@ if ! $VIS -v | grep '+lua' >/dev/null 2>&1; then
exit 0
fi
-type busted >/dev/null 2>&1 || {
- echo "busted(1) not found, skipping tests"
- exit 0
-}
-
TESTS_OK=0
TESTS_RUN=0
@@ -28,11 +23,11 @@ for t in $test_files; do
t=${t%.lua}
t=${t#./}
printf "%-30s" "$t"
- $VIS "$t.in" < /dev/null 2> /dev/null > "$t.busted"
+ $VIS "$t.in" < /dev/null 2> /dev/null > "$t.out"
if [ $? -ne 0 ]; then
printf "FAIL\n"
- cat "$t.busted"
+ cat "$t.out"
else
TESTS_OK=$((TESTS_OK + 1))
printf "OK\n"