diff options
| author | Jan Sucan <jan@jansucan.com> | 2022-03-05 12:30:59 +0100 |
|---|---|---|
| committer | Jan Sucan <jan@jansucan.com> | 2022-03-05 12:37:19 +0100 |
| commit | 752230d7288cd8efd7606f7c4032077590fbac0f (patch) | |
| tree | 118371aec0c2959645ef1d38a7a470d5c2a47e07 /tests/Makefile | |
| parent | 04533dd4293e6ddef4682129fda4154295bed96d (diff) | |
tests: Add option parsing tests
Diffstat (limited to 'tests/Makefile')
| -rw-r--r-- | tests/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
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 |
