Extend C++ tests for Intel compiler.

This commit is contained in:
Christoph Niethammer 2011-12-08 14:39:14 +00:00
parent 22d2269798
commit 50a2136a8b

View file

@ -6,11 +6,11 @@
# Chrsitoph Niethammer <niethammer@hlrs.de> (C) 2011 # Chrsitoph Niethammer <niethammer@hlrs.de> (C) 2011
# #
compilers="pgi gcc cray" compilers="pgi gcc cray intel"
compiler_version_cmd() { compiler_version_cmd() {
case $1 in case $1 in
cray|gcc) cray|gcc|intel)
cmd="CC --version" cmd="CC --version"
;; ;;
pgi) pgi)
@ -39,11 +39,8 @@ swap_env() {
module swap $currentPrgEnv PrgEnv-$newPrgEnv module swap $currentPrgEnv PrgEnv-$newPrgEnv
} }
pwd
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"
echo -en "testing $compiler/$version ... " echo -en "testing $compiler/$version ... "
error=0 error=0