autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

trying to do a diff on output


From: Rikki Duncan
Subject: trying to do a diff on output
Date: Thu, 24 Apr 2008 10:22:45 -0600

Hello,

I am trying to pass in a dataset (from a driver) and do a diff on a
second dataset(that is in a file) that is passed in.  Does anyone have
anysuggestions?  Here is what I have so far:

# Process with autom4te to create an -*- Autotest -*- test suite.

m4_define([_getocapi], [getocapi])
m4_define([base_url], [http://test.opendap.org:8080/dods/dts])
m4_define([baseline_files_dir], [/home/rikki/workspace/Ocapi/Tests])

# 
# ------------------------------
#

AT_INIT([getocapi])
# AT_COPYRIGHT([])

AT_TESTED([_getocapi])

# Usage: _AT_TEST(<data source URL>, <baseline file>)
#
# 

m4_define([_AT_DAS_TEST],   
[AT_BANNER([Test $1 $2])
AT_SETUP([DAS $1])
AT_KEYWORDS([das dds dods])
AT_CHECK([_getocapi -a $1], [], [stdout])
AT_CHECK([diff -b -B $2 stdout], [], [ignore],[],[])
AT_CLEANUP])

m4_define([_AT_DDS_TEST],
[AT_BANNER([Test $1 $2])
AT_SETUP([DDS $1])
AT_KEYWORDS([das dds dods])
AT_CHECK([_getocapi -d $1], [], [stdout])
AT_CHECK([diff -b -B $2 stdout], [], [ignore])
AT_CLEANUP])

m4_define([_AT_DODS_TEST],
[AT_BANNER([Test $1 $2])
AT_SETUP([DODS $1])
AT_KEYWORDS([das dds dods])
AT_CHECK([_getocapi -D $1], [], [stdout])
AT_CHECK([diff -b -B $2 stdout], [], [ignore])
AT_CLEANUP])


m4_define([AT_RESPONSES_TEST],
[AT_BANNER([getocapi basic responses for $1.])
_AT_DAS_TEST([base_url/$1], [baseline_files_dir/das/$1.das])
_AT_DDS_TEST([base_url/$1], [baseline_files_dir/dds/$1.dds])
_AT_DODS_TEST([base_url/$1], [baseline_files_dir/dods/$1.dods])
])



AT_RESPONSES_TEST([test.01])

-- 
It says three tests are run but all three fail.  When I look at the log there 
is a 
dataset in the stdout for each test but it does not look like it is completing 
the 
diff portion of the AT_CHECK.

Thanks,
Rikki

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]