[m-rev.] for review: improve test framework
Simon Taylor
stayl at cs.mu.OZ.AU
Mon Aug 19 14:40:44 AEST 2002
On 16-Aug-2002, Simon Taylor <stayl at cs.mu.OZ.AU> wrote:
Estimated hours taken: 0.1
Branches: main
tests/Mmake.common:
Avoid syntax errors where there are no tests.
Index: Mmake.common
===================================================================
RCS file: /home/mercury1/repository/tests/Mmake.common,v
retrieving revision 1.25
diff -u -u -r1.25 Mmake.common
--- Mmake.common 17 Aug 2002 13:51:54 -0000 1.25
+++ Mmake.common 19 Aug 2002 04:39:37 -0000
@@ -139,10 +139,14 @@
rm -f $(ERROR_OUTPUT_FILE)
# Remove gzipped executables for tests which have failed.
+ifeq ($(TESTS),)
+clean_zip: ;
+else
clean_zip:
for test in $(TESTS); do \
rm -f `basename $$test -nodepend`.gz; \
done
+endif
#
# The `foo' targets make recursively make `foo' in all subdirectories.
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list