Skip to content
Snippets Groups Projects
Commit 6ae725a1 authored by lche0021's avatar lche0021
Browse files

fix bug in smoke_test where name/ver being empty

parent 48939e84
No related branches found
No related tags found
2 merge requests!464Fix listdeps,!442Smoke test
#!/bin/bash
NUM_MODULE=${2:-100}
NUM_MODULE=${1:-100}
TESTCASE_DIR='./tests'
......
......@@ -33,10 +33,18 @@ fi
declare -a modules
IFS_orig=$IFS
IFS=$'\n'
for i in $(head -n $NUM_MODULE $USAGE_REPORT); do
m=$(sed -n 's/\(.*\)\/\(.*\) - \(.*\)/\1 \2/p' <<< $i)
name=$(cut -f1 -d' ' <<< $m)
ver=$(cut -f2 -d' ' <<< $m)
printf "\n\n=========================\n"
if [ -z $name ]; then
continue
fi
echo "Testing $name/$ver ... "
module load $name/$ver
mkdir -p $OUTPUT_DIR/$name
echo '' > $OUTPUT_DIR/$name/$ver
......@@ -65,6 +73,7 @@ for i in $(head -n $NUM_MODULE $USAGE_REPORT); do
done
fi
module purge
printf "Done"
done
IFS=$IFS_orig
......
......@@ -4,7 +4,6 @@ virtualgl/2.5.0 - 5586
tigervnc/1.8.0 - 5061
openmpi/1.10.7-mlx - 2368
gcc/8.1.0 - 2162
java/1.8.0_77 - 2108
gcc/4.9.3 - 2063
anaconda/5.1.0-Python3.6-gcc5 - 1635
openblas/0.2.20 - 1510
......@@ -78,7 +77,6 @@ mesa/default - 343
blast/2.7.1 - 338
boost/1.67.0-gcc5 - 330
freesurfer/6.0 - 327
dot - 327
fsl/6.0.1 - 320
python/3.5.2-gcc4 - 316
matlab/r2015b - 315
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment