From 100487b6ccb3b7f3c5e2d2f3bf48895959348ac3 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Sat, 7 Feb 2015 00:33:52 +0100 Subject: [PATCH] Adapt testall.sh script to new examples scripts --- testall.sh | 43 ++++++++++++++++++------------------------- 1 file changed, 18 insertions(+), 25 deletions(-) diff --git a/testall.sh b/testall.sh index 877f346..c97710f 100755 --- a/testall.sh +++ b/testall.sh @@ -2,7 +2,7 @@ # ===================================================================== # Run all test and example scripts that come with the package. # -# Copyright (C) 2011 Jurgen Knodlseder +# Copyright (C) 2011-2015 Juergen Knoedlseder # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -25,17 +25,6 @@ base=$PWD # -# test -# ==== -echo -echo "=====> test" -cd test -./example_models.py -./example_survey.py -cd $base - - -# # examples # ======== echo @@ -43,23 +32,27 @@ echo "=====> examples" cd examples # Create local environment -rm -rf gammalib -mkdir -p gammalib/share -mkdir -p gammalib/share/caldb -ln -s $base/caldb gammalib/share/caldb/cta -ln -s $base/models gammalib/share/models -export GAMMALIB=./gammalib +rm -rf ctools +#mkdir -p ctools/share +mkdir -p ctools/share/caldb +ln -s $base/caldb ctools/share/caldb/cta +ln -s $base/models ctools/share/models +export CTOOLS=$PWD/ctools -# Make binned analysis -./make_binned_analysis.py +# Run checkers +./check_models.py -# Make unbinned analysis -./make_unbinned_analysis.py +# Run pipelines +./pipeline_binned_disk.py +./pipeline_binned_mem.py +./pipeline_stacked_disk.py +./pipeline_stacked_mem.py +./pipeline_unbinned_disk.py +./pipeline_unbinned_mem.py -# Make TS distributions +# Run makers +./make_survey.py ./make_ts_distributions.py 2 2 - -# Make pull distribution at sensitivity limit #./make_pull_at_sensitivity_limit.py # Remove local environment -- libgit2 0.21.4