Commit 1e163acb authored by Bernhard M. Wiedemann's avatar Bernhard M. Wiedemann

Include and use a for tests

to allow to run tests on non-Debian systems
Note: defaults to --exit-on-error to give failed tests more prominence
and to ensure a non-zero exit-code in case of test failures
parent d5d44b14
......@@ -98,7 +98,7 @@ install-man: build-man
# Test
test: build
cd tests && run-parts --verbose .
cd tests && ../ --verbose .
.PHONY: all \
build build-bin build-man \
#!/bin/sh -e
[ "$1" = --verbose ] && verbose=1 && shift
for prog in `find $dir -type f -perm -1 | LC_ALL=C sort` ; do
[ "$verbose" = 0 ] || echo "run-parts: executing $prog" >&2
  • I think we should either write this in Make itself or move & rename this to under the tests/ directory, instead of pretending this is a general tool to be used elsewhere around the repo.

    (I think we should definitely at least follow the existing coding style used shell in this project if we are keeping this code, regardless of the location/filename.)

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