~libbls/libbls/0.3

« back to all changes in this revision

Viewing changes to test/debug_test.sh

  • Committer: Alexandros Frantzis
  • Date: 2011-10-01 10:00:23 UTC
  • Revision ID: alf82@freemail.gr-20111001100023-ahxh07yrez937lpt
Update test debugging scripts with new build paths and sanity checks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
 
3
3
# Run test in gdb. Make sure to have compiled the code (and optionally the bindings)
4
 
# with debug symbols (scons debug=1)
5
 
 
6
 
LD_LIBRARY_PATH=../build/default/src PYTHONPATH=../build/default/bindings gdb --args python $1
 
4
# with debug symbols
 
5
 
 
6
BUILD_DIR=../build/visibility-public
 
7
 
 
8
if [ ! -f $BUILD_DIR/bindings/_libbls.so ]; then
 
9
        echo "You need to run './waf test' first to build the test infrastructure."
 
10
        exit
 
11
fi
 
12
 
 
13
LD_LIBRARY_PATH=$BUILD_DIR/src PYTHONPATH=$BUILD_DIR/bindings gdb --args python $1