diff options
author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2020-07-02 17:27:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-02 17:27:03 -0400 |
commit | 9c149534389845412fbfb305b8a6f00923009c4b (patch) | |
tree | 0bb4cba597691aa9be0dc23bd1270e2bcbfde1bb /tests/test_split.sh | |
parent | 2df3b35bebdb81c8e45c08d5a7af46e8fa32e07b (diff) | |
parent | 288ce22e256f71ba01cea63aa03a4880e5b1612d (diff) | |
download | splitfits-9c149534389845412fbfb305b8a6f00923009c4b.tar.gz |
Merge pull request #4 from jhunkeler/circleci-project-setup
Circleci project setup
Diffstat (limited to 'tests/test_split.sh')
-rw-r--r-- | tests/test_split.sh | 35 |
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 +} |