Added simple testing capabilities
This commit is contained in:
7
Makefile
7
Makefile
@@ -30,8 +30,13 @@ $(OBJS): dir
|
||||
@$(CC) $(CFLAGS) -o $(BUILD_DIR)/$@ -c $*.c
|
||||
|
||||
# Runs CUnit tests
|
||||
# test: dir
|
||||
# @$(CC) $(CFLAGS) -lcunit -o $(BIN_DIR)/$(NAME)_test $(TESTS_DIR)/*.c
|
||||
# @$(BIN_DIR)/$(NAME)_test
|
||||
|
||||
# Runs tests
|
||||
test: dir
|
||||
@$(CC) $(CFLAGS) -lcunit -o $(BIN_DIR)/$(NAME)_test $(TESTS_DIR)/*.c
|
||||
@$(CC) $(CFLAGS) -o $(BIN_DIR)/$(NAME)_test $(TESTS_DIR)/*.c
|
||||
@$(BIN_DIR)/$(NAME)_test
|
||||
|
||||
# Run valgrind memory checker on executable
|
||||
|
||||
Reference in New Issue
Block a user