summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-06-09 10:13:23 -0400
committerTavian Barnes <tavianator@tavianator.com>2020-06-09 10:20:55 -0400
commit9d38bc79ae203a18b43480ecb43e540847d472a3 (patch)
tree7d363ac75f3ebe64ba6ac9c6901da6bfacad3ee0 /Makefile
parent66dcff23edbde46ee10a28af19525d734f46872c (diff)
downloadbfs-9d38bc79ae203a18b43480ecb43e540847d472a3.tar.xz
tests: New acceptance test for xtimegm()
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 9 insertions, 3 deletions
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