-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define minimal set of verification tests in tMSTimeGram
- Loading branch information
Showing
2 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |