Commit b5c8db9607d58a637031f5e14651bb39d9ba9b6c
1 parent
22a4f664
rename to test_csripts.sh.in
Showing
1 changed file
with
0 additions
and
66 deletions
test/test_cscripts.sh deleted
| 1 | -#! /bin/bash | |
| 2 | -# ========================================================================== | |
| 3 | -# This script tests all cscripts that are shipped with ctatools | |
| 4 | -# | |
| 5 | -# Copyright (C) 2011 Jurgen Knodlseder | |
| 6 | -# | |
| 7 | -# This program is free software: you can redistribute it and/or modify | |
| 8 | -# it under the terms of the GNU General Public License as published by | |
| 9 | -# the Free Software Foundation, either version 3 of the License, or | |
| 10 | -# (at your option) any later version. | |
| 11 | -# | |
| 12 | -# This program is distributed in the hope that it will be useful, | |
| 13 | -# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 15 | -# GNU General Public License for more details. | |
| 16 | -# | |
| 17 | -# You should have received a copy of the GNU General Public License | |
| 18 | -# along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 19 | -# | |
| 20 | -# ========================================================================== | |
| 21 | - | |
| 22 | -# | |
| 23 | -# Print Header | |
| 24 | -# | |
| 25 | -echo "" | |
| 26 | -echo "*****************" | |
| 27 | -echo "* Test cscripts *" | |
| 28 | -echo "*****************" | |
| 29 | - | |
| 30 | - | |
| 31 | -# | |
| 32 | -# Remove any existing result files | |
| 33 | -# ================================ | |
| 34 | -rm -rf *.fits *.log *.xml *.dat | |
| 35 | - | |
| 36 | - | |
| 37 | -# | |
| 38 | -# Creates pfiles directory | |
| 39 | -# ======================== | |
| 40 | -mkdir -p pfiles | |
| 41 | -export PFILES=pfiles | |
| 42 | - | |
| 43 | - | |
| 44 | -# | |
| 45 | -# Test cssens | |
| 46 | -# =========== | |
| 47 | -echo -n "Test cssens: " | |
| 48 | -rm -rf cssens | |
| 49 | -ln -s ../scripts/cssens.py cssens | |
| 50 | -chmod +x ../scripts/cssens.py | |
| 51 | -cssens duration=3600.0 \ | |
| 52 | - caldb="irf" \ | |
| 53 | - irf="kb_E_50h_v3" \ | |
| 54 | - type="point" \ | |
| 55 | - offset="0.0" \ | |
| 56 | - bkg="data/bkg_kb_E_50h_v3.txt" \ | |
| 57 | - rad=5.0 | |
| 58 | -echo -n "." | |
| 59 | -if [ -s "sensitivity.dat" ] | |
| 60 | -then | |
| 61 | - echo -n "." | |
| 62 | -else | |
| 63 | - echo " sensitivity.dat file is not valid" | |
| 64 | - exit 1 | |
| 65 | -fi | |
| 66 | -echo " ok" |