Unverified Commit 27946fac authored by Willem's avatar Willem Committed by GitHub
Browse files

Merge pull request #100 from liw/test_main

DAOS-1406 build: Regenerate tests_main.c properly
parents 74836ffa cd54e379
......@@ -38,7 +38,7 @@ clinkedlistqueue:
download-contrib: clinkedlistqueue
$(TEST_DIR)/main_test.c:
$(TEST_DIR)/main_test.c: $(TEST_DIR)/test_*.c
if test -d $(LLQUEUE_DIR); \
then echo have contribs; \
else make download-contrib; \
......@@ -54,7 +54,7 @@ static: $(OBJECTS)
ar -r libraft.a $(OBJECTS)
.PHONY: tests
tests: src/raft_server.c src/raft_server_properties.c src/raft_log.c src/raft_node.c $(TEST_DIR)/main_test.c $(TEST_DIR)/test_server.c $(TEST_DIR)/test_node.c $(TEST_DIR)/test_log.c $(TEST_DIR)/test_snapshotting.c $(TEST_DIR)/test_scenario.c $(TEST_DIR)/mock_send_functions.c $(TEST_DIR)/CuTest.c $(LLQUEUE_DIR)/linked_list_queue.c
tests: src/raft_server.c src/raft_server_properties.c src/raft_log.c src/raft_node.c $(TEST_DIR)/main_test.c $(TEST_DIR)/test_*.c $(TEST_DIR)/mock_send_functions.c $(TEST_DIR)/CuTest.c $(LLQUEUE_DIR)/linked_list_queue.c
$(CC) $(CFLAGS) -o tests_main $^
./tests_main
gcov raft_server.c
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment