Skip to content

Commit

Permalink
Add missing test script runnable/link14834.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed Jul 29, 2015
1 parent e5e0c3e commit 76f2873
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test/runnable/link14834.sh
@@ -0,0 +1,25 @@
#!/usr/bin/env bash

src=runnable${SEP}extra-files
dir=${RESULTS_DIR}${SEP}runnable
output_file=${dir}${SEP}link14834.sh.out

rm -f ${output_file}

if [ $OS == "win32" -o $OS == "win64" ]; then
LIBEXT=.lib
else
LIBEXT=.a
fi

libname=${dir}${SEP}link14834${LIBEXT}
exename=${dir}${SEP}link14834${EXE}

$DMD -m${MODEL} -I${src} -lib -of${libname} ${src}${SEP}link14834a.d > ${output_file} || exit 1
$DMD -m${MODEL} -I${src} -inline -debug -of${exename} ${src}${SEP}link14834b.d ${libname} > ${output_file} || exit 1

${dir}/link14834 || exit 1

rm ${libname} ${exename} ${dir}${SEP}link14834${OBJ}

echo Success > ${output_file}

0 comments on commit 76f2873

Please sign in to comment.