Skip to content

Commit

Permalink
Merge pull request #2309 from Geod24/shell-is-hard
Browse files Browse the repository at this point in the history
CI: Fix script for issue1505

Signed-off-by: Max Haughton <[email protected]>
Merged-on-behalf-of: Jan Jurzitza <[email protected]>
  • Loading branch information
dlang-bot authored Jul 28, 2022
2 parents c843dcc + fe78292 commit b755bae
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/issue1505-single-file-package-dynamic-library.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
#!/usr/bin/env bash
set -eux -o pipefail

. $(dirname "${BASH_SOURCE[0]}")/common.sh
cd ${CURR_DIR}

rm -f libsingle-file-test-dynamic-library.{so,dylib}
rm -f single-file-test-dynamic-library.dll

${DUB} build --single issue1505-single-file-package-dynamic-library.d
if [ ! -f libsingle-file-test-dynamic-library.{so,dylib} ] && [ ! -f single-file-test-dynamic-library.dll ]; then
if [[ ! -f libsingle-file-test-dynamic-library.so ]] \
&& [[ ! -f libsingle-file-test-dynamic-library.dylib ]] \
&& [[ ! -f single-file-test-dynamic-library.dll ]]; then
die $LINENO 'Normal invocation did not produce a dynamic library in the current directory'
fi
rm -f libsingle-file-test-dynamic-library.{so,dylib}
Expand Down

0 comments on commit b755bae

Please sign in to comment.