From 2b100011146b15098a6e865864e3dbacde4b42f8 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Thu, 4 Nov 1999 15:35:23 -0500 Subject: [svn-r1829] Did a make distclean in the test stage to clean away previous tests. Changed _test to check which is the proper name for the testing target. --- bin/snapshot | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bin/snapshot b/bin/snapshot index f1ef5d7..dbc6efa 100755 --- a/bin/snapshot +++ b/bin/snapshot @@ -134,6 +134,15 @@ fi # Do CVS checkout # Run Test the HDF5 library #============================= if [ "$cmd" = "all" -o -n "$cmdtest" ]; then + # Make sure current version exists and is clean + if [ -d ${COMPARE}/current ]; then + (cd ${COMPARE}/current && make distclean) + else + errcode=$? + snapshot=no + exit $errcode + fi + # Compare it with the previous version. Compare only files listed in # the MANIFEST plus the MANIFEST itself. if [ -d ${COMPARE}/previous ]; then @@ -153,7 +162,7 @@ if [ "$cmd" = "all" -o -n "$cmdtest" ]; then if [ "$snapshot" = "yes" ]; then if (cd ${COMPARE}/current; \ ${CONFIGURE}; \ - make _test); then + make check); then : else errcode=$? -- cgit v0.12