Added tests to Makefile
This commit is contained in:
parent
2e21ae7b18
commit
6342de0dd3
9
Makefile
9
Makefile
@ -43,7 +43,7 @@ endif
|
|||||||
|
|
||||||
# set up targets
|
# set up targets
|
||||||
|
|
||||||
TARGETS := icfs
|
TARGETS := $(BUILD_DIR)/icfs
|
||||||
|
|
||||||
ifeq ($(TEST), 1)
|
ifeq ($(TEST), 1)
|
||||||
TARGETS += icfs_test
|
TARGETS += icfs_test
|
||||||
@ -56,12 +56,11 @@ default: $(TARGETS)
|
|||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
icfs: $(BUILD_DIR)/main.o $(BUILD_DIR)/fuse_operations.o $(BUILD_DIR)/sourcefs.o $(BUILD_DIR)/ui-socket.o $(BUILD_DIR)/temp_permissions_table.o
|
$(BUILD_DIR)/icfs: $(BUILD_DIR)/main.o $(BUILD_DIR)/fuse_operations.o $(BUILD_DIR)/sourcefs.o $(BUILD_DIR)/ui-socket.o $(BUILD_DIR)/temp_permissions_table.o
|
||||||
$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $(BUILD_DIR)/icfs
|
$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $(BUILD_DIR)/icfs
|
||||||
|
|
||||||
icfs_test: $(BUILD_DIR)/main.o $(BUILD_DIR)/fuse_operations.o $(BUILD_DIR)/sourcefs.o $(BUILD_DIR)/ui-socket.o
|
icfs_test: $(BUILD_DIR)/icfs
|
||||||
$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $(BUILD_DIR)/icfs_test
|
cd ./test && ./test.bash
|
||||||
# $(BUILD_DIR)/icfs_test # TODO: implement testing
|
|
||||||
|
|
||||||
$(BUILD_DIR)/test_access_control.o: $(TESTS_DIR)/test_access_control.c
|
$(BUILD_DIR)/test_access_control.o: $(TESTS_DIR)/test_access_control.c
|
||||||
$(CC) $(CFLAGS) -c $< $(LDFLAGS) -o $@
|
$(CC) $(CFLAGS) -c $< $(LDFLAGS) -o $@
|
||||||
|
Loading…
x
Reference in New Issue
Block a user