Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
improve check.sh to take arguments with scripts to be tested
  • Loading branch information
Soeren Sonnenburg committed Aug 26, 2011
1 parent b17f07e commit 14bccf1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/undocumented/csharp_modular/check.sh
Expand Up @@ -10,7 +10,11 @@ fi

export LD_LIBRARY_PATH=../../../src/shogun:../../../src/interfaces/csharp_modular

for e in $(ls *.cs | grep -v Load.cs )
FILES=$@

test -z "$FILES" && FILES=$(ls *.cs | grep -v Load.cs )

for e in $FILES
do
echo -n "running $e .."
if ${MONOC} $e ../../../src/interfaces/csharp_modular/*.cs Load.cs >/dev/null 2>&1 && \
Expand All @@ -22,7 +26,7 @@ do
echo "================================================================================" >>error.log
echo " error in $e ">>error.log
echo "================================================================================" >>error.log
${MONOC} $e ../../../src/interfaces/csharp_modular/*.cs Load.cs >>error.log 2>&1
${MONOC} $e ../../../src/interfaces/csharp_modular/*.cs Load.cs >>error.log 2>&1 && \
${MONO} ${e%.cs}.exe >>error.log 2>&1
echo "================================================================================" >>error.log
echo >>error.log
Expand Down

0 comments on commit 14bccf1

Please sign in to comment.