]> mj.ucw.cz Git - libucw.git/commitdiff
Libucw: Test for redblack.h
authorMichal Vaner <vorner@ucw.cz>
Sun, 13 Jul 2008 11:13:27 +0000 (13:13 +0200)
committerMartin Mares <mj@ucw.cz>
Mon, 14 Jul 2008 15:30:30 +0000 (17:30 +0200)
Use existing test.

lib/Makefile
lib/redblack-test.t [new file with mode: 0644]

index 7423979a499576e736152f286f879361b16fc145..b6b333db7a1dc5c88a34b91dc7726278dd070455 100644 (file)
@@ -97,7 +97,8 @@ $(o)/lib/trie-test: $(o)/lib/trie-test.o $(LIBUCW)
 
 TESTS+=$(addprefix $(o)/lib/,regex.test unicode.test hash-test.test mempool.test stkstring.test \
     slists.test kmp-test.test bbuf.test getopt.test fastbuf.test ff-unicode.test eltpool.test \
-    fb-socket.test trie-test.test string.test sha1.test asort-test.test binheap-test.test)
+    fb-socket.test trie-test.test string.test sha1.test asort-test.test binheap-test.test \
+    redblack-test.test)
 
 $(o)/lib/regex.test: $(o)/lib/regex-t
 $(o)/lib/unicode.test: $(o)/lib/unicode-t
@@ -118,6 +119,7 @@ $(o)/lib/sha1.test: $(o)/lib/sha1-t $(o)/lib/sha1-hmac-t
 $(o)/lib/trie-test.test: $(o)/lib/trie-test
 $(o)/lib/asort-test.test: $(o)/lib/asort-test
 $(o)/lib/binheap-test.test: $(o)/lib/binheap-test
+$(o)/lib/redblack-test.test: $(o)/lib/redblack-test
 
 ifdef CONFIG_UCW_THREADS
 TESTS+=$(addprefix $(o)/lib/,asio.test)
diff --git a/lib/redblack-test.t b/lib/redblack-test.t
new file mode 100644 (file)
index 0000000..3c08bbe
--- /dev/null
@@ -0,0 +1,3 @@
+# Test for the redblack module
+
+Run:   ../obj/lib/redblack-test