blob: c049d1834102d9e650d605a3078cf32e1fb62088 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
test_splitfits_data1() {
local datafile
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=$(nexus_raw_download repository/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
return 0
}
|