From 7e9034e80ea8ce4dc8a4635a42894e7294ecc85e Mon Sep 17 00:00:00 2001 From: Jan Sucan Date: Sat, 1 May 2021 10:52:19 +0200 Subject: tests: Add test for invoking with no arguments --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 46a324f..c3ccaeb 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ PROGRAM_NAME=diff-dd PROGRAM_VERSION=1.0 +# Program name is used in the tests to locate the executable file +export PROGRAM_NAME CC=gcc CFLAGS=-Wall @@ -14,7 +16,10 @@ program_info_header: echo "#define PROGRAM_NAME_STR \"$(PROGRAM_NAME)\"" >program_info.h echo "#define PROGRAM_VERSION_STR \"$(PROGRAM_VERSION)\"" >>program_info.h -.PHONY: clean +.PHONY: test clean + +test: all + $(MAKE) -C tests clean: rm -f *.o *~ $(PROGRAM_NAME) program_info.h -- cgit v1.2.3