aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-07-13 22:49:34 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-07-13 22:49:34 -0400
commit8225c761bb911d2c970cb73ba7b527a1002a22db (patch)
tree5c360754d528dd9fa9c3a8f07ae93fc4388e8afa /tests
parent5245975f67212fdae08033e13c0c7d2b6db1256e (diff)
downloadsplitfits-8225c761bb911d2c970cb73ba7b527a1002a22db.tar.gz
Fail if output is different
Diffstat (limited to 'tests')
-rw-r--r--tests/test_split.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_split.sh b/tests/test_split.sh
index 562876a..45d9abd 100644
--- a/tests/test_split.sh
+++ b/tests/test_split.sh
@@ -8,6 +8,11 @@ test_splitfits_data1() {
return 1
fi
+ find . -regex '.*\.part_[0-9]+' | xargs -I'{}' cat '{}' >> streamed.fits
+ if ! diff ${datafile} streamed.fits; then
+ return 1
+ fi
+
return 0
}