Commit cbebc0ed authored by willem's avatar willem
Browse files

Moved testing code into separate folder

parent 363fc04d
...@@ -11,22 +11,12 @@ CCFLAGS = -g -O2 -Werror -Werror=return-type -Werror=uninitialized -Wcast-align ...@@ -11,22 +11,12 @@ CCFLAGS = -g -O2 -Werror -Werror=return-type -Werror=uninitialized -Wcast-align
all: tests_main all: tests_main
chashmap:
mkdir -p $(HASHMAP_DIR)/.git
git --git-dir=$(HASHMAP_DIR)/.git init
pushd $(HASHMAP_DIR); git pull git@github.com:willemt/CHashMapViaLinkedList.git; popd
cbitstream:
mkdir -p $(BITSTREAM_DIR)/.git
git --git-dir=$(BITSTREAM_DIR)/.git init
pushd $(BITSTREAM_DIR); git pull git@github.com:willemt/CBitstream.git; popd
clinkedlistqueue: clinkedlistqueue:
mkdir -p $(LLQUEUE_DIR)/.git mkdir -p $(LLQUEUE_DIR)/.git
git --git-dir=$(LLQUEUE_DIR)/.git init git --git-dir=$(LLQUEUE_DIR)/.git init
pushd $(LLQUEUE_DIR); git pull git@github.com:willemt/CLinkedListQueue.git; popd pushd $(LLQUEUE_DIR); git pull git@github.com:willemt/CLinkedListQueue.git; popd
download-contrib: chashmap cbitstream clinkedlistqueue download-contrib: cbitstream
main_test.c: main_test.c:
if test -d $(HASHMAP_DIR); \ if test -d $(HASHMAP_DIR); \
...@@ -40,4 +30,4 @@ tests_main: main_test.c raft_server.c raft_log.c raft_node.c test_server.c test_ ...@@ -40,4 +30,4 @@ tests_main: main_test.c raft_server.c raft_log.c raft_node.c test_server.c test_
./tests_main ./tests_main
clean: clean:
rm -f main_test.c *.o tests rm -f main_test.c *.o $(GCOV_OUTPUT)
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