Skip to content

Commit

Permalink
Define minimal set of verification tests in tMSTimeGram
Browse files Browse the repository at this point in the history
  • Loading branch information
tnakazato committed Jul 29, 2021
1 parent f1beb78 commit cbf8e7c
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 2 deletions.
8 changes: 8 additions & 0 deletions ms/MSSel/test/tMSTimeGram.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Original table has rows 1058
TableExprNode has rows = 1058
After mssel constructor called
selected table has rows 46
Original table has rows 1058
TableExprNode has rows = 1058
After mssel constructor called
selected table has rows 46
42 changes: 40 additions & 2 deletions ms/MSSel/test/tMSTimeGram.run
Original file line number Diff line number Diff line change
@@ -1,3 +1,41 @@
#! /bin/sh
echo "UNTESTED"
exit 3
# -----------------------------------------------------------------------------
# Usage: tMSTimeGram.run
# -----------------------------------------------------------------------------
# This script executes the program tMSTimeGram to test the
# MSTimeGram module.
#
# $Id$
#-----------------------------------------------------------------------------

MS=$CASADEMO"mssel_test_small.ms"

runCmd(){
# Uncomment following line to generate an output close to a
# script to run the tests
#echo "#Test:$1"; echo $3;

eval "$2 $3"
}

getTestMS() {
tar zxf $testsrcdir/$MS.tgz
}

cleanup() {
\rm -rf $MS
}

# Get the test MS (un-tar it from $testsrcdir).
getTestMS;

# T1~T2 syntax: selects single timestamp, 2014/09/20/10:37:51.360000
runCmd 1 "$casa_checktool" " ./tMSTimeGram $MS '2014/09/20/10:37:51.0~10:37:51.5'";

# T+dT syntax: selects single timestamp, 2014/09/20/10:37:51.360000
runCmd 2 "$casa_checktool" " ./tMSTimeGram $MS '2014/09/20/10:37:51.0+0:0:0.5'";

#
# Remove the test MS and any other cleanup required.
#
cleanup;

0 comments on commit cbf8e7c

Please sign in to comment.