diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-11-11 12:34:03 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-11-11 12:35:08 -0500 |
commit | ff93535c71a52b327047819a2aeb5372384f859c (patch) | |
tree | 6db870ccc38ff8fcf64b5edfc9467a4588095e69 /src/test/Makefile.am | |
parent | a2ecf131f335132518a94a9a2cd831f8bd66bf56 (diff) | |
download | tor-ff93535c71a52b327047819a2aeb5372384f859c.tar.gz tor-ff93535c71a52b327047819a2aeb5372384f859c.zip |
New src/test/bench.c to allow us to actually _run_ benchmark code
Yes, the timing functions are suboptimal. Please improve!
Diffstat (limited to 'src/test/Makefile.am')
-rw-r--r-- | src/test/Makefile.am | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/test/Makefile.am b/src/test/Makefile.am index 301452b4ec..ffe1f942e7 100644 --- a/src/test/Makefile.am +++ b/src/test/Makefile.am @@ -1,6 +1,6 @@ TESTS = test -noinst_PROGRAMS = test test-child +noinst_PROGRAMS = test test-child bench AM_CPPFLAGS = -DSHARE_DATADIR="\"$(datadir)\"" \ -DLOCALSTATEDIR="\"$(localstatedir)\"" \ @@ -23,6 +23,9 @@ test_SOURCES = \ test_util.c \ tinytest.c +bench_SOURCES = \ + bench.c + test_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \ @TOR_LDFLAGS_libevent@ test_LDADD = ../or/libtor.a ../common/libor.a ../common/libor-crypto.a \ @@ -30,6 +33,13 @@ test_LDADD = ../or/libtor.a ../common/libor.a ../common/libor-crypto.a \ @TOR_ZLIB_LIBS@ -lm @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ \ @TOR_LIB_WS32@ @TOR_LIB_GDI@ +bench_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \ + @TOR_LDFLAGS_libevent@ +bench_LDADD = ../or/libtor.a ../common/libor.a ../common/libor-crypto.a \ + ../common/libor-event.a \ + @TOR_ZLIB_LIBS@ -lm @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ \ + @TOR_LIB_WS32@ @TOR_LIB_GDI@ + noinst_HEADERS = \ tinytest.h \ tinytest_macros.h \ |