Skip to content

Commit

Permalink
Fixed test build and invocation
Browse files Browse the repository at this point in the history
Do not use recursive make (reduces the capability for parallel make)
Do not hardcode gcc options

Change-Id: Ia3846435d5a59b4de807d01acf05a01ebd90970e
Reviewed-on: https://review.northscale.com:8443/1312
Reviewed-by: Dustin Sallings <dustin@spy.net>
Tested-by: Dustin Sallings <dustin@spy.net>
  • Loading branch information
trondn authored and dustin committed Apr 22, 2010
1 parent d2eeb3e commit 691e9b7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
/config/mkinstalldirs
/config/plugin.ac
/configure
/hash_table_test
/libtool
/m4/version.m4
/stamp-h1
Expand Down
10 changes: 8 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,11 @@ ep_la_DEPENDENCIES = libsqlite3.la
libsqlite3_la_SOURCES = sqlite3.h sqlite3.c
libsqlite3_la_CFLAGS = $(AM_CFLAGS) ${NO_WERROR}

test: all
cd t && $(MAKE) test
check_PROGRAMS=hash_table_test
TESTS=${check_PROGRAMS}

hash_table_test_CXXFLAGS = $(AM_CXXFLAGS) -I $(top_srcdir) ${NO_WERROR}
hash_table_test_SOURCES = t/hash_table_test.cc item.cc
hash_table_test_DEPENDENCIES = ep.hh item.hh

test: check-TESTS
8 changes: 0 additions & 8 deletions t/Makefile.am

This file was deleted.

0 comments on commit 691e9b7

Please sign in to comment.