Skip to content

Commit bf373e8

Browse files
committed
testsuite: set LD_LIBRARY_PATH for Go tests
Problem: the Go test links against shared libraries such as libreapi_cli but the LD_LIBRARY_PATH isn't set in the Go test. Set LD_LIBRARY_PATH appropriately.
1 parent 81f596d commit bf373e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

t/t9001-golang-basic.t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ if ! which go >/dev/null; then
1414
test_done
1515
fi
1616

17+
export LD_LIBRARY_PATH=../../resource/reapi/bindings
18+
1719
exp_dir="${SHARNESS_TEST_SRCDIR}/data/resource/expected/golang"
1820
jgf="${SHARNESS_TEST_SRCDIR}/data/resource/jgfs/tiny.json"
1921
jobspec1="${SHARNESS_TEST_SRCDIR}/data/resource/jobspecs/basics/test001.yaml"

0 commit comments

Comments
 (0)