summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-07-26 22:05:13 +0000
committerMike Buland <eichlan@xagasoft.com>2006-07-26 22:05:13 +0000
commitf8a9737d62ff2a3f5c24dc3786f5b65dbd490f29 (patch)
tree469d3d65fb5ca0487e5438f9f464830ef39b0ff8
parent76ed3c164662f4ee4c109bb2054c61c99ea86251 (diff)
downloadlibbu++-f8a9737d62ff2a3f5c24dc3786f5b65dbd490f29.tar.gz
libbu++-f8a9737d62ff2a3f5c24dc3786f5b65dbd490f29.tar.bz2
libbu++-f8a9737d62ff2a3f5c24dc3786f5b65dbd490f29.tar.xz
libbu++-f8a9737d62ff2a3f5c24dc3786f5b65dbd490f29.zip
I don't remember what I added or did.
-rw-r--r--pymake.conf20
-rw-r--r--src/test/strhash/main.cpp12
2 files changed, 22 insertions, 10 deletions
diff --git a/pymake.conf b/pymake.conf
index 8880f9c..3da7b0a 100644
--- a/pymake.conf
+++ b/pymake.conf
@@ -13,16 +13,16 @@ OUTPUT: libbu++.a
13# Uncomment this if you want to build the tests, these don't rely on anything 13# Uncomment this if you want to build the tests, these don't rely on anything
14# that libbu++ doesn't rely on. 14# that libbu++ doesn't rely on.
15# 15#
16#[DIRBUILD] 16[DIRBUILD]
17#COMMAND: exe 17COMMAND: exe
18#OUTPUT: tests/{NAME} 18OUTPUT: tests/{NAME}
19#ROOT: src/test 19ROOT: src/test
20#LDFLAGS: -L. -lbu++ 20LDFLAGS: -L. -lbu++
21#CXXFLAGS: -Isrc -Isrc/test 21CXXFLAGS: -Isrc -Isrc/test
22# 22
23#[OVERRIDE] 23[OVERRIDE]
24#FILE: tests/plugin 24FILE: tests/plugin
25#LDFLAGS: -ldl 25LDFLAGS: -ldl
26 26
27# 27#
28# Uncomment this if you have cpptest and want to build the unit tests 28# Uncomment this if you have cpptest and want to build the unit tests
diff --git a/src/test/strhash/main.cpp b/src/test/strhash/main.cpp
new file mode 100644
index 0000000..790c5b6
--- /dev/null
+++ b/src/test/strhash/main.cpp
@@ -0,0 +1,12 @@
1#include <stdio.h>
2#include "hashfunctionstring.h"
3
4int main( int argc, char *argv[] )
5{
6 HashFunctionString h;
7
8 printf("\"%s\": %d\n", argv[1], h.hash( argv[1] ) );
9
10 return 0;
11}
12