From 9d38bc79ae203a18b43480ecb43e540847d472a3 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 9 Jun 2020 10:13:23 -0400 Subject: tests: New acceptance test for xtimegm() --- Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7a31d6b..4f4c1e3 100644 --- a/Makefile +++ b/Makefile @@ -89,7 +89,7 @@ ALL_LDLIBS = $(LOCAL_LDLIBS) $(LDLIBS) default: bfs -all: bfs tests/mksock +all: bfs tests/mksock tests/xtimegm bfs: \ bftw.o \ @@ -126,10 +126,16 @@ release: bfs tests/mksock: tests/mksock.o $(CC) $(ALL_LDFLAGS) $^ -o $@ +tests/xtimegm: time.o tests/xtimegm.o + $(CC) $(ALL_LDFLAGS) $^ -o $@ + %.o: %.c $(CC) $(ALL_CFLAGS) -c $< -o $@ -check: check-bfs check-dfs check-ids +check: check-xtimegm check-bfs check-dfs check-ids + +check-xtimegm: tests/xtimegm + $< check-%: all ./tests.sh --bfs="$(CURDIR)/bfs -S $*" $(TEST_FLAGS) @@ -144,7 +150,7 @@ endif +$(MAKE) -B check $(DISTCHECK_FLAGS) clean: - $(RM) bfs *.[od] tests/mksock tests/*.[od] + $(RM) bfs *.[od] tests/mksock tests/xtimegm tests/*.[od] install: $(MKDIR) $(DESTDIR)$(PREFIX)/bin -- cgit v1.2.3