From 752230d7288cd8efd7606f7c4032077590fbac0f Mon Sep 17 00:00:00 2001 From: Jan Sucan Date: Sat, 5 Mar 2022 12:30:59 +0100 Subject: tests: Add option parsing tests --- tests/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests/Makefile') diff --git a/tests/Makefile b/tests/Makefile index eb009c1..fb58ff6 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,4 +1,10 @@ PROGRAM_EXEC=../src/$(PROGRAM_NAME) all: - sh ./001-missing_arguments.sh $(PROGRAM_EXEC) + for t in [0-9]*.sh ; do \ + echo $$t; \ + sh ./$$t ../src/diff-dd; \ + # Testing of the return value must return true on the test failure. \ + # If the return value is zero, it means a successful test. \ + [ $$? -ne 0 ] && exit 1 || true; \ + done -- cgit v1.2.3