From f8a9737d62ff2a3f5c24dc3786f5b65dbd490f29 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 26 Jul 2006 22:05:13 +0000 Subject: I don't remember what I added or did. --- pymake.conf | 20 ++++++++++---------- src/test/strhash/main.cpp | 12 ++++++++++++ 2 files changed, 22 insertions(+), 10 deletions(-) create mode 100644 src/test/strhash/main.cpp 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 # Uncomment this if you want to build the tests, these don't rely on anything # that libbu++ doesn't rely on. # -#[DIRBUILD] -#COMMAND: exe -#OUTPUT: tests/{NAME} -#ROOT: src/test -#LDFLAGS: -L. -lbu++ -#CXXFLAGS: -Isrc -Isrc/test -# -#[OVERRIDE] -#FILE: tests/plugin -#LDFLAGS: -ldl +[DIRBUILD] +COMMAND: exe +OUTPUT: tests/{NAME} +ROOT: src/test +LDFLAGS: -L. -lbu++ +CXXFLAGS: -Isrc -Isrc/test + +[OVERRIDE] +FILE: tests/plugin +LDFLAGS: -ldl # # 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 @@ +#include +#include "hashfunctionstring.h" + +int main( int argc, char *argv[] ) +{ + HashFunctionString h; + + printf("\"%s\": %d\n", argv[1], h.hash( argv[1] ) ); + + return 0; +} + -- cgit v1.2.3