aboutsummaryrefslogtreecommitdiff
path: root/tests/test_split.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_split.sh')
-rw-r--r--tests/test_split.sh35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/test_split.sh b/tests/test_split.sh
new file mode 100644
index 0000000..141e320
--- /dev/null
+++ b/tests/test_split.sh
@@ -0,0 +1,35 @@
+test_splitfits_data1() {
+ local datafile
+ local retval
+
+ retval=0
+ datafile=$(get_data generic/fits/sample.fits)
+ [[ ! -f ${datafile} ]] && return 1
+
+ if ! ${test_program} -o ${test_case} ${datafile}; then
+ return 1
+ fi
+
+ set +x
+ return $retval
+}
+
+test_splitfits_combine_data1() {
+ local datafile
+ local retval
+
+ retval=0
+ datafile=$(get_data generic/fits/sample.fits)
+ [[ ! -f ${datafile} ]] && return 1
+
+ if ! ${test_program} -o ${test_case} ${datafile}; then
+ return 1
+ fi
+
+ if ! ${test_program} -c ${test_case}/$(basename ${datafile}).part_map; then
+ return 1
+ fi
+
+ set +x
+ return $retval
+}