Summary Files Commits Branches @commit @diff @stats
path: root / Makefile
diff options
context:
space:
mode:
Commitcb6872cc9790ee2cd04f54ee762c23f5e48d9f4b (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2022-03-13 00:15:35 +0100
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2022-03-13 00:15:35 +0100
Files6837fa0a76434dba56aec60842c34501fa203f83 /Makefile
goodwolf-cb6872cc9790ee2cd04f54ee762c23f5e48d9f4b.tar
goodwolf-cb6872cc9790ee2cd04f54ee762c23f5e48d9f4b.tar.gz
goodwolf-cb6872cc9790ee2cd04f54ee762c23f5e48d9f4b.zip
Parentedbe278f8dcf822504e25f055dc89dcfcd9e3656 (diff)
bookmark_test: Add basic test
1 files changed, 7 insertions, 2 deletions
-rw-r--r--Makefile9
diff --git a/Makefile b/Makefile
index 29347e7..d9f6fe8 100644
--- a/Makefile
+++ b/Makefile
@@ -7,9 +7,9 @@ include config.mk
SRCS = bookmarks.c fmt.c fmt_test.c uri.c uri_test.c keybindings.c downloads.c badwolf.c
OBJS = bookmarks.o fmt.o uri.o keybindings.o downloads.o badwolf.o
-OBJS_test = fmt_test.o uri_test.o
+OBJS_test = fmt_test.o uri_test.o bookmarks_test.o
EXE = badwolf
-EXE_test = fmt_test uri_test
+EXE_test = fmt_test uri_test bookmarks_test
TRANS = fr.mo pt_BR.mo tr.mo de.mo vi.mo
DOCS = usr.bin.badwolf README.md KnowledgeBase.md interface.txt
@@ -54,10 +54,15 @@ uri_test: uri.o uri_test.o
fmt_test: fmt.o fmt_test.o
$(CC) -std=c11 -o $@ fmt.o fmt_test.o $(LDFLAGS) $(LIBS)
+bookmarks_test: bookmarks.o bookmarks_test.o
+ $(CC) -std=c11 -o $@ bookmarks.o bookmarks_test.o $(LDFLAGS) $(LIBS)
+
+
.PHONY: test
test: $(EXE_test)
$(DBG) ./uri_test
$(DBG) ./fmt_test
+ $(DBG) ./bookmarks_test
.PHONY: lint
lint: