Commit f587ed1f authored by Bernhard M. Wiedemann's avatar Bernhard M. Wiedemann Committed by Chris Lamb

Move test execution logic into Makefile to not require a separate script. (MR: !2)

Signed-off-by: Chris Lamb's avatarChris Lamb <lamby@debian.org>
parent cde568ce
......@@ -98,7 +98,7 @@ install-man: build-man
# Test
#
test: build
cd tests && ../run-parts.sh --verbose .
$(MAKE) -C tests
.PHONY: all \
build build-bin build-man \
......
#!/bin/sh -e
verbose=0
[ "$1" = --verbose ] && verbose=1 && shift
dir=$1
for prog in `find $dir -type f -perm -1 | LC_ALL=C sort` ; do
[ "$verbose" = 0 ] || echo "run-parts: executing $prog" >&2
$prog
done
TESTS := $(sort $(wildcard test_*))
test: ../disorderfs
for test in $(TESTS) ; do \
echo "executing $$test" >&2 ;\
./$$test || exit $$? ;\
done
.PHONY: test
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment