Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Willemt Raft
Commits
27946fac
Unverified
Commit
27946fac
authored
Nov 17, 2018
by
Willem
Committed by
GitHub
Nov 17, 2018
Browse files
Merge pull request #100 from liw/test_main
DAOS-1406 build: Regenerate tests_main.c properly
parents
74836ffa
cd54e379
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
27946fac
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment