Skip to content

Commit 80096cf

Browse files
committed
Update test.sh
Take 4...
1 parent 25e20b0 commit 80096cf

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

test/test.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
#!/usr/bin/env bash
2-
set -x
2+
#set -x
33

44
OS_NAME=$(uname)
55

6+
BUILD_DIR=$PWD
7+
TEST_DIR=$BUILD_DIR/test
8+
9+
cd $TEST_DIR
10+
611
if [ "$OS_NAME" == "Darwin" ]; then
7-
DYLD_LIBRARY_PATH=../:$DYLD_LIBRARY_PATH
12+
export DYLD_LIBRARY_PATH="$BUILD_DIR:$DYLD_LIBRARY_PATH"
813
elif [ "$OS_NAME" == "Linux" ]; then
9-
LD_LIBRARY_PATH=../:$LD_LIBRARY_PATH
14+
export LD_LIBRARY_PATH="$BUILD_DIR:$LD_LIBRARY_PATH"
1015
fi
1116

12-
test/test_${1}.x
17+
./test_${1}.x
1318
ret=$?
1419

1520
if [ $ret -eq 0 ]; then

0 commit comments

Comments
 (0)