summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-11-07 15:10:50 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-11-07 15:10:50 -0500
commit2d5edb37b924715b4fbee4d917ac334c773fca61 (patch)
treef4b73d20f42e18c99585823e33cbc1eb1261651a /Makefile
parent3139cbc56a08ac76bccfe223dd2669f3f080c927 (diff)
downloadbfs-2d5edb37b924715b4fbee4d917ac334c773fca61.tar.xz
tests/xtouch: New utility
POSIX touch(1) doesn't include the -h option, and indeed OpenBSD doesn't implement it. Making our own utility also lets us add some handy extensions like -p (create parents) and -M (set permissions).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 66126df..0f2235f 100644
--- a/Makefile
+++ b/Makefile
@@ -198,7 +198,12 @@ DISTCHECK_FLAGS := -s TEST_FLAGS="--sudo --verbose=skipped"
bfs: $(BIN)/bfs
.PHONY: bfs
-all: $(BIN)/bfs $(BIN)/tests/mksock $(BIN)/tests/trie $(BIN)/tests/xtimegm
+all: \
+ $(BIN)/bfs \
+ $(BIN)/tests/mksock \
+ $(BIN)/tests/trie \
+ $(BIN)/tests/xtimegm \
+ $(BIN)/tests/xtouch
.PHONY: all
$(BIN)/bfs: \
@@ -230,6 +235,7 @@ $(BIN)/bfs: \
$(BIN)/tests/mksock: $(OBJ)/tests/mksock.o
$(BIN)/tests/trie: $(OBJ)/src/trie.o $(OBJ)/tests/trie.o
$(BIN)/tests/xtimegm: $(OBJ)/src/xtime.o $(OBJ)/tests/xtimegm.o
+$(BIN)/tests/xtouch: $(OBJ)/src/xtime.o $(OBJ)/tests/xtouch.o
$(BIN)/%:
@$(MKDIR) $(@D)
@@ -257,7 +263,7 @@ $(FLAG_GOALS): $(FLAG_PREREQS)
check: $(CHECKS)
.PHONY: check $(CHECKS)
-$(STRATEGY_CHECKS): check-%: $(BIN)/bfs $(BIN)/tests/mksock
+$(STRATEGY_CHECKS): check-%: $(BIN)/bfs $(BIN)/tests/mksock $(BIN)/tests/xtouch
./tests/tests.sh --bfs="$(BIN)/bfs -S $*" $(TEST_FLAGS)
check-trie check-xtimegm: check-%: $(BIN)/tests/%