blob: 45d9abdbe38725486dda3437dc6b8029cbbcfaa2 (
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
|
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
find . -regex '.*\.part_[0-9]+' | xargs -I'{}' cat '{}' >> streamed.fits
if ! diff ${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
}
|