summaryrefslogtreecommitdiff
path: root/tests/modules
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-09-02 13:07:14 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-09-02 13:07:14 +0200
commit13da385aa7f5e9a9f52288fd7735d6dc806fab73 (patch)
tree15095ef90056092c59042da092a7ff330920223e /tests/modules
parentda6dc57663d8934f84d6328c9d5d15b06962991e (diff)
downloadcrawler-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/modules')
-rwxr-xr-xtests/modules/exec_test2
-rwxr-xr-xtests/modules/testmod/GNUmakefile3
-rwxr-xr-xtests/modules/testmod2/GNUmakefile3
-rwxr-xr-xtests/modules/testmod3/GNUmakefile3
4 files changed, 7 insertions, 4 deletions
diff --git a/tests/modules/exec_test b/tests/modules/exec_test
index d2d606f..a2a6609 100755
--- a/tests/modules/exec_test
+++ b/tests/modules/exec_test
@@ -4,5 +4,5 @@ BINARY=$1
TITLE=$2
printf "$BINARY: $TITLE .. "
-./$BINARY >$BINARY.RES 2>&1
+LD_LIBRARY_PATH=../../src ./$BINARY >$BINARY.RES 2>&1
diff $BINARY.MUST $BINARY.RES > $BINARY.DIFF && printf "OK\n" || printf "ERROR\n"
diff --git a/tests/modules/testmod/GNUmakefile b/tests/modules/testmod/GNUmakefile
index 233f65e..01dbfee 100755
--- a/tests/modules/testmod/GNUmakefile
+++ b/tests/modules/testmod/GNUmakefile
@@ -10,9 +10,10 @@ INCLUDE_DIRS = \
INCLUDE_CXXFLAGS = \
INCLUDE_LDFLAGS = \
+ -L$(TOPDIR)/src
INCLUDE_LIBS = \
- $(TOPDIR)/src/libcrawler.a
+ -lcrawler
DYNAMIC_MODULE = \
mod_test.so
diff --git a/tests/modules/testmod2/GNUmakefile b/tests/modules/testmod2/GNUmakefile
index 3011479..90f1f05 100755
--- a/tests/modules/testmod2/GNUmakefile
+++ b/tests/modules/testmod2/GNUmakefile
@@ -10,9 +10,10 @@ INCLUDE_DIRS = \
INCLUDE_CXXFLAGS = \
INCLUDE_LDFLAGS = \
+ -L$(TOPDIR)/src
INCLUDE_LIBS = \
- $(TOPDIR)/src/libcrawler.a
+ -lcrawler
DYNAMIC_MODULE = \
mod_test2.so
diff --git a/tests/modules/testmod3/GNUmakefile b/tests/modules/testmod3/GNUmakefile
index 4d296de..01ae8eb 100755
--- a/tests/modules/testmod3/GNUmakefile
+++ b/tests/modules/testmod3/GNUmakefile
@@ -10,9 +10,10 @@ INCLUDE_DIRS = \
INCLUDE_CXXFLAGS = \
INCLUDE_LDFLAGS = \
+ -L$(TOPDIR)/src
INCLUDE_LIBS = \
- $(TOPDIR)/src/libcrawler.a
+ -lcrawler
DYNAMIC_MODULE = \
mod_test3.so