Skip to content

Commit

Permalink
adding test for NMSSM benchmark points from 1308.1333
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Jan 9, 2015
1 parent 0018dba commit b28eb7d
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/module.mk
Expand Up @@ -160,6 +160,11 @@ TEST_SRC += \
$(DIR)/test_compare_ewsb_solvers.cpp
endif

ifeq ($(shell $(FSCONFIG) --with-NUTNMSSM),yes)
TEST_SH += \
$(DIR)/test_NUTNMSSM.sh
endif

TEST_META := \
$(DIR)/test_BetaFunction.m \
$(DIR)/test_CConversion.m \
Expand Down
37 changes: 37 additions & 0 deletions test/test_NUTNMSSM.sh
@@ -0,0 +1,37 @@
#!/bin/sh

# directory of this script
BASEDIR=$(dirname $0)

exit_code=0

for point in BP1 BP2 BP3
do
echo "Running $point ..."

input_file="${BASEDIR}/../model_files/NUTNMSSM/LesHouches.in.NUTNMSSM_1308.1333_${point}"
output_file="${BASEDIR}/LesHouches.out.NUTNMSSM_${point}"

${BASEDIR}/../models/NUTNMSSM/run_NUTNMSSM.x \
--slha-input-file=${input_file} \
--slha-output-file=${output_file}

if test "x$?" = "x0"; then
echo "=========="
echo "${point}: OK"
echo "=========="
grep hh ${output_file}
else
echo "=========="
echo "${point}: FAIL"
echo "=========="
grep Problems ${output_file}
exit_code=1
fi

echo ""

rm -f ${output_file}
done

exit ${exit_code}

0 comments on commit b28eb7d

Please sign in to comment.