refactor: Add libarchive link to test compilation area of the Makefile. Created test units with xcursor-dmz as test package.

This commit is contained in:
GreekStapler 2023-01-25 23:12:39 +01:00
parent 1da345f8b3
commit c94ab920a4
7 changed files with 400 additions and 4 deletions

View file

@ -54,7 +54,7 @@ build-test: $(BINS_TEST)
# For simplicity, we link every object file to each of the test files. This
# might be changed later if this starts to become too slow.
$(BINS_TEST): %: %.c.o $(OBJS)
$(CC) $^ -o $@
$(CC) $^ -larchive -o $@
# Each test includes the test directory, which contains the acutest header file
$(BUILD_DIR)/$(TEST_DIR)/%.c.o: $(TEST_DIR)/%.c