diff options
-rw-r--r-- | pymake.conf | 20 | ||||
-rw-r--r-- | src/test/strhash/main.cpp | 12 |
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 | 17 | COMMAND: exe |
18 | #OUTPUT: tests/{NAME} | 18 | OUTPUT: tests/{NAME} |
19 | #ROOT: src/test | 19 | ROOT: src/test |
20 | #LDFLAGS: -L. -lbu++ | 20 | LDFLAGS: -L. -lbu++ |
21 | #CXXFLAGS: -Isrc -Isrc/test | 21 | CXXFLAGS: -Isrc -Isrc/test |
22 | # | 22 | |
23 | #[OVERRIDE] | 23 | [OVERRIDE] |
24 | #FILE: tests/plugin | 24 | FILE: tests/plugin |
25 | #LDFLAGS: -ldl | 25 | LDFLAGS: -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 | |||
4 | int 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 | |||