Skip to content
Snippets Groups Projects
Commit b7145e07 authored by midou's avatar midou
Browse files

Remove the arch option into run.sh + modify the prepare.sh to copy paste the...

Remove the arch option into run.sh + modify the prepare.sh to copy paste the env bench into the test case + add the copy of the solutions for the test case into results directory for YALES2BIO smalltest
parent 4f6afbb3
No related branches found
No related tags found
No related merge requests found
...@@ -42,6 +42,7 @@ elif [ "$YALES2_HOSTTYPE" == 'jeanzay' ]; then ...@@ -42,6 +42,7 @@ elif [ "$YALES2_HOSTTYPE" == 'jeanzay' ]; then
machine='jean-zay-cpu' machine='jean-zay-cpu'
fi fi
rm *.batch rm *.batch
cp ../machines/$machine/env_bench ./
cp ../machines/$machine/${YALES2_HOSTTYPE}_testcase_small.batch ./ cp ../machines/$machine/${YALES2_HOSTTYPE}_testcase_small.batch ./
#################################### ####################################
......
####################################
# Source the right environment
####################################
if [ -z "$1" ]
then
echo "Please provide the targeted machine from:"
ls machines/
echo ""
echo "Example: ./run.sh occigen-bdw"
exit 1
fi
env_file="../machines/$1/env_bench"
if [ ! -f $env_file ]
then
echo "ERROR: $env_file not found!"
exit 1
else
source $env_file
fi
########################################### ###########################################
# LAUNCH THE TEST CASE # LAUNCH THE TEST CASE
########################################### ###########################################
source env_bench
if [ $YALES2_HOSTTYPE == 'occigen' ]; then if [ $YALES2_HOSTTYPE == 'occigen' ]; then
sbatch ${YALES2_HOSTTYPE}_testcase_small.batch sbatch ${YALES2_HOSTTYPE}_testcase_small.batch
elif [ $YALES2_HOSTTYPE == 'jeanzay' ]; then elif [ $YALES2_HOSTTYPE == 'jeanzay' ]; then
......
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
if grep -q "Test passed successfully." yales2bio_testcase_small.log; then if grep -q "Test passed successfully." yales2bio_testcase_small.log; then
echo "TEST HAS PASSED: SUCCESSFUL" echo "TEST HAS PASSED: SUCCESSFUL"
python validate.py python validate.py
mkdir results
cp yales2bio_testcase_small.* ./results
mv dump ./results
else else
echo "TEST HAS NOT PASSED: FAIL" echo "TEST HAS NOT PASSED: FAIL"
fi fi
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment