Skip to content
Browse files

Adjust selftest script to properly compile the czmq_selftest and allow

alternate locations of the zmq library.

Add czmq_selftest.c to the compile line.  Add CFLAGS and LDFLAGS vars
to the compile line.

Add relative path './' to valgrind call out to czmq_selftest.

Can now specify alternate zmq location from the CLI as follows:
LD_LIBRARY_PATH=${zmq_lib_path} LDFLAGS=-L${zmq_lib_path} \
  CFLAGS=-I${zmq_include_path} ./selftest

Signed-off-by: AJ Lewis <aj.lewis@quantum.com>
  • Loading branch information...
1 parent 06f5543 commit aa460a32031aea09a59863acf09b8cd28ecc054f @vortechs2000 committed Oct 7, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/selftest
View
4 src/selftest
@@ -1,7 +1,7 @@
# Run selftests and check memory
echo "Rebuilding czmq..."
-gcc -g -o czmq_selftest z*.c -lzmq
+gcc -g -o czmq_selftest czmq_selftest.c z*.c ${CFLAGS} ${LDFLAGS} -lzmq
if [ $? -eq 0 ]; then
echo "Starting Valgrind memcheck..."
- valgrind --tool=memcheck --leak-check=full --suppressions=valgrind.supp czmq_selftest
+ valgrind --tool=memcheck --leak-check=full --suppressions=valgrind.supp ./czmq_selftest
fi

0 comments on commit aa460a3

Please sign in to comment.
Something went wrong with that request. Please try again.