Use command line arguments to test only for specific compilers.

This commit is contained in:
Christoph Niethammer 2011-12-08 14:39:15 +00:00
parent 50a2136a8b
commit 26ca628568

View file

@ -39,6 +39,10 @@ swap_env() {
module swap $currentPrgEnv PrgEnv-$newPrgEnv module swap $currentPrgEnv PrgEnv-$newPrgEnv
} }
if [ ! -z $1 ] ; then
compilers=$@
fi
for compiler in $compilers; do for compiler in $compilers; do
for version in $(module av $compiler -l 2>&1 | awk "/^$compiler\//{print \$1}" | awk -F'/' '{print $2}'); do for version in $(module av $compiler -l 2>&1 | awk "/^$compiler\//{print \$1}" | awk -F'/' '{print $2}'); do
logfile="$compiler-$version.log" logfile="$compiler-$version.log"