]> mj.ucw.cz Git - libucw.git/commitdiff
Libucw: Test for binheap.h
authorMichal Vaner <vorner@ucw.cz>
Sun, 13 Jul 2008 08:58:42 +0000 (10:58 +0200)
committerMartin Mares <mj@ucw.cz>
Mon, 14 Jul 2008 15:29:32 +0000 (17:29 +0200)
Use existing test, just run it with other tests.

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

index d838ab5ef5c958479d62f428322f53eccb333b4d..7423979a499576e736152f286f879361b16fc145 100644 (file)
@@ -97,7 +97,7 @@ $(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)
+    fb-socket.test trie-test.test string.test sha1.test asort-test.test binheap-test.test)
 
 $(o)/lib/regex.test: $(o)/lib/regex-t
 $(o)/lib/unicode.test: $(o)/lib/unicode-t
@@ -117,6 +117,7 @@ $(o)/lib/string.test: $(o)/lib/str-hex-t $(o)/lib/str-esc-t
 $(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
 
 ifdef CONFIG_UCW_THREADS
 TESTS+=$(addprefix $(o)/lib/,asio.test)
diff --git a/lib/binheap-test.t b/lib/binheap-test.t
new file mode 100644 (file)
index 0000000..1447de1
--- /dev/null
@@ -0,0 +1,5 @@
+# Test for the binheap module
+
+Run:   ../obj/lib/binheap-test
+Out:   cnt=1048576
+       root