From: Michal Vaner Date: Sun, 13 Jul 2008 08:58:42 +0000 (+0200) Subject: Libucw: Test for binheap.h X-Git-Tag: holmes-import~402 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=a9724d8c5e23c7c1f907c678d28b1072dc577824;p=libucw.git Libucw: Test for binheap.h Use existing test, just run it with other tests. --- diff --git a/lib/Makefile b/lib/Makefile index d838ab5e..7423979a 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -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 index 00000000..1447de1d --- /dev/null +++ b/lib/binheap-test.t @@ -0,0 +1,5 @@ +# Test for the binheap module + +Run: ../obj/lib/binheap-test +Out: cnt=1048576 + root