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.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/test_split.sh b/tests/test_split.sh
index 13ec5a9..c049d18 100644
--- a/tests/test_split.sh
+++ b/tests/test_split.sh
@@ -1,20 +1,27 @@
test_splitfits_data1() {
local datafile
- datafile=$(get_data generic/fits/sample.fits)
+ datafile=$(nexus_raw_download repository/generic/fits/sample.fits)
[[ ! -f ${datafile} ]] && return 1
if ! ${test_program} -o ${test_case} ${datafile}; then
return 1
fi
+ files=$(find . -regex '.*\.part_[0-9]+' | sort -V)
+ cat $files > streamed.fits
+
+ if ! diff -q ${datafile} streamed.fits; then
+ return 1
+ fi
+
return 0
}
test_splitfits_combine_data1() {
local datafile
- datafile=$(get_data generic/fits/sample.fits)
+ datafile=$(nexus_raw_download repository/generic/fits/sample.fits)
[[ ! -f ${datafile} ]] && return 1
if ! ${test_program} -o ${test_case} ${datafile}; then