diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2012-09-02 13:07:14 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2012-09-02 13:07:14 +0200 |
commit | 13da385aa7f5e9a9f52288fd7735d6dc806fab73 (patch) | |
tree | 15095ef90056092c59042da092a7ff330920223e /tests/url | |
parent | da6dc57663d8934f84d6328c9d5d15b06962991e (diff) | |
download | crawler-13da385aa7f5e9a9f52288fd7735d6dc806fab73.tar.gz crawler-13da385aa7f5e9a9f52288fd7735d6dc806fab73.tar.bz2 |
prefer dynamic to static linking (linking a non-PIC .a library
into a module is illegal, but on Linux!)
Diffstat (limited to 'tests/url')
-rw-r--r-- | tests/url/GNUmakefile | 9 | ||||
-rwxr-xr-x | tests/url/exec_test | 2 |
2 files changed, 7 insertions, 4 deletions
diff --git a/tests/url/GNUmakefile b/tests/url/GNUmakefile index 38de19c..47812da 100644 --- a/tests/url/GNUmakefile +++ b/tests/url/GNUmakefile @@ -10,13 +10,16 @@ INCLUDE_DIRS = \ -I$(TOPDIR)/src/modules/urlnormalizer/simpleurl \ -I$(TOPDIR)/src/modules/urlnormalizer/googleurl -INCLUDE_LDFLAGS = +INCLUDE_LDFLAGS = \ + -L$(TOPDIR)/src \ + -L$(TOPDIR)/googleurl INCLUDE_LIBS = \ - $(TOPDIR)/src/libcrawler.a \ + -lcurl \ $(TOPDIR)/src/modules/urlnormalizer/simpleurl/libsimpleurlnormalizer.a \ $(TOPDIR)/src/modules/urlnormalizer/googleurl/libgoogleurlnormalizer.a \ - $(TOPDIR)/googleurl/libgoogleurl.a \ + -lgoogleurl \ + -lcrawler \ -licui18n -licuuc TEST_CPP_BINS = \ diff --git a/tests/url/exec_test b/tests/url/exec_test index 92b656f..2343af8 100755 --- a/tests/url/exec_test +++ b/tests/url/exec_test @@ -8,5 +8,5 @@ TITLE=$1 shift printf "$ID: $TITLE .. " -./$BINARY $* >$ID.RES 2>&1 +LD_LIBRARY_PATH=../../src:../../googleurl ./$BINARY $* >$ID.RES 2>&1 diff $ID.MUST $ID.RES > $ID.DIFF && printf "OK\n" || printf "ERROR\n" |