[csw-devel] SF.net SVN: gar:[17685] csw/mgar/pkg/tidy/trunk

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Sun Apr 15 04:13:16 CEST 2012


Revision: 17685
          http://gar.svn.sourceforge.net/gar/?rev=17685&view=rev
Author:   bdwalton
Date:     2012-04-15 02:13:16 +0000 (Sun, 15 Apr 2012)
Log Message:
-----------
tidy/trunk: patch the test suite so it runs and add a custom test-modulated target to drive it

Modified Paths:
--------------
    csw/mgar/pkg/tidy/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/tidy/trunk/files/0001-correct-the-path-to-tidy-for-use-by-tests.patch

Modified: csw/mgar/pkg/tidy/trunk/Makefile
===================================================================
--- csw/mgar/pkg/tidy/trunk/Makefile	2012-04-15 01:44:17 UTC (rev 17684)
+++ csw/mgar/pkg/tidy/trunk/Makefile	2012-04-15 02:13:16 UTC (rev 17685)
@@ -13,6 +13,7 @@
 
 MASTER_SITES = http://tidy.sourceforge.net
 DISTFILES  = $(DISTNAME).tar.gz
+PATCHFILES += 0001-correct-the-path-to-tidy-for-use-by-tests.patch
 
 LICENSE = LICENSE
 
@@ -37,3 +38,7 @@
 	@(cd $(WORKSRC); bash build/gnuauto/setup.sh; \
 		lynx --dump htmldoc/license.html > LICENSE )
 	@$(MAKECOOKIE)
+
+test-modulated:
+	@(cd $(WORKSRC)/test; ./testall.sh)
+	@$(MAKECOOKIE)

Added: csw/mgar/pkg/tidy/trunk/files/0001-correct-the-path-to-tidy-for-use-by-tests.patch
===================================================================
--- csw/mgar/pkg/tidy/trunk/files/0001-correct-the-path-to-tidy-for-use-by-tests.patch	                        (rev 0)
+++ csw/mgar/pkg/tidy/trunk/files/0001-correct-the-path-to-tidy-for-use-by-tests.patch	2012-04-15 02:13:16 UTC (rev 17685)
@@ -0,0 +1,26 @@
+From 92890f40847267999c547496090af8bae7d744a3 Mon Sep 17 00:00:00 2001
+From: Ben Walton <bwalton at opencsw.org>
+Date: Sun, 15 Apr 2012 04:05:54 +0200
+Subject: [PATCH] correct the path to tidy for use by tests
+
+Signed-off-by: Ben Walton <bwalton at opencsw.org>
+---
+ test/testone.sh |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test/testone.sh b/test/testone.sh
+index 8abb3b9..b3dbd0f 100755
+--- a/test/testone.sh
++++ b/test/testone.sh
+@@ -24,7 +24,7 @@ set +f
+ 
+ TESTNO=$1
+ EXPECTED=$2
+-TIDY=../bin/tidy
++TIDY=../console/tidy
+ INFILES=./input/in_${TESTNO}.*ml
+ CFGFILE=./input/cfg_${TESTNO}.txt
+ 
+-- 
+1.7.10
+

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list