move test.sh to its own folder
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
all: utf
|
||||
sh test.sh
|
||||
test: utf
|
||||
sh ../testing/test.sh
|
||||
|
||||
utf: utf.o libunicode.o
|
||||
$(CC) -g -o utf libunicode.o utf.o
|
||||
@@ -12,4 +12,4 @@ utf.o: libunicode.h utf.c
|
||||
clean:
|
||||
rm -f *.o utf
|
||||
|
||||
.PHONY: all clean
|
||||
.PHONY: clean test
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
i=1
|
||||
while test -e "$i".test; do
|
||||
printf '%s: %s: Running test...\n' "$0" "$i".test
|
||||
./"$i".test >"$i".result
|
||||
diff 1.expected 1.result
|
||||
printf '%s: %s: Test passed.\n' "$0" "$i".test
|
||||
i="$(printf '%s + %s\n' 1 "$i" | bc)"
|
||||
done
|
||||
Reference in New Issue
Block a user