-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Catch up and add a little helper script.
- Loading branch information
1 parent
eb698c9
commit 8e73c1e
Showing
6 changed files
with
44 additions
and
5 deletions.
There are no files selected for viewing
Submodule data
updated
3 files
+0 −21 | inc/WireCellData/Intersection.h | |
+0 −120 | src/Intersection.cxx | |
+0 −44 | test/test_vector.cxx |
Submodule iface
updated
from 24f145 to 38ccc1
Submodule nav
updated
37 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
|
||
# A little helper to run an individual test without requiring a full | ||
# install. It runs the test from the build directory. | ||
# | ||
# You problably want to do: | ||
# cd wire-cell && alias run_test=`pwd`/run_test.sh | ||
|
||
usage () { | ||
echo "run_test.sh testname [package]" | ||
echo "if run from a package directory last arg isn't needed" | ||
exit 1; | ||
} | ||
|
||
|
||
tst="$1" ; shift | ||
pkg="$1" ; shift | ||
if [ -z "$pkg" ] ; then | ||
pkg=$(basename $(pwd)) | ||
fi | ||
|
||
top=$(dirname $(readlink -f $BASH_SOURCE)) | ||
|
||
dir="$top/build/$pkg" | ||
if [ ! -d $dir ] ; then | ||
echo "No build directory: $dir" | ||
usage | ||
fi | ||
|
||
exe="$dir/test_$tst" | ||
if [ ! -x $exe ] ; then | ||
echo "Test $tst not built" | ||
usage | ||
fi | ||
|
||
LD_LIBRARY_PATH=$dir:$LD_LIBRARY_PATH $exe | ||
|
||
|
Submodule util
updated
from 3a6240 to d112c7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters