Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- followup to issue 13210 - depends on phobos directory layout for setting LD_LIBRARY_PATH
- Loading branch information
1 parent
58306b8
commit 358b0fd
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
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,3 @@ | ||
void main() | ||
{ | ||
} |
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,26 @@ | ||
#!/usr/bin/env bash | ||
|
||
dir=${RESULTS_DIR}/runnable | ||
dmddir=${RESULTS_DIR}${SEP}runnable | ||
output_file=${dir}/test_shared.sh.out | ||
|
||
rm -f ${output_file} | ||
|
||
if [ ${OS} != "linux" ]; then | ||
echo "Skipping shared library test on ${OS}." | ||
touch ${output_file} | ||
exit 0 | ||
fi | ||
|
||
die() | ||
{ | ||
cat ${output_file} | ||
rm -f ${output_file} | ||
exit 1 | ||
} | ||
|
||
$DMD -m${MODEL} -of${dmddir}${SEP}test_shared${EXE} -defaultlib=libphobos2.so runnable/extra-files/test_shared.d >> ${output_file} | ||
if [ $? -ne 0 ]; then die; fi | ||
|
||
LD_LIBRARY_PATH=../../phobos/generated/${OS}/release/${MODEL} ./${dmddir}${SEP}test_shared${EXE} | ||
if [ $? -ne 0 ]; then die; fi |