gegl r3009 - in trunk: . tests/buffer



Author: martinn
Date: Tue Mar 31 20:19:15 2009
New Revision: 3009
URL: http://svn.gnome.org/viewvc/gegl?rev=3009&view=rev

Log:
don't use GNU specific options in buffer test commands

`ls -1' and `diff -U 50' are GNUisms.  The -1 isn't necessary in any
case, and I changed -U to -C just to get it working... if we need
unified diffs, then a configure time check for GNU diff (possibly
called gdiff) in PATH will be needed instead of this easy fix.

Patch from Gary V. Vaughan.

Modified:
   trunk/ChangeLog
   trunk/tests/buffer/Makefile.am

Modified: trunk/tests/buffer/Makefile.am
==============================================================================
--- trunk/tests/buffer/Makefile.am	(original)
+++ trunk/tests/buffer/Makefile.am	Tue Mar 31 20:19:15 2009
@@ -27,25 +27,25 @@
 # Our custom target rules
 buffer-tests.inc: $(buffer_test_SOURCES) Makefile.am $(top_srcdir)/tests/buffer/tests/*.c
 	echo '/* this file is generated by the build system */' > $@
-	for TEST in  `ls tests/*.c -1|sed -e s:tests/:: -e s:\\\.c::`; do \
+	for TEST in  `ls tests/*.c |sed -e s:tests/:: -e s:\\\.c::`; do \
 	     echo "#define TEST() static gchar * $$TEST (void)" >> $@;\
 	     echo "#include \"tests/"$$TEST".c\"" >> $@;\
 	     echo "#undef TEST" >> $@;\
 	done;
 	echo 'typedef gchar *(*TestFunc) ();TestFunc tests[]={' >> $@
-	for TEST in  `ls tests/*.c -1|sed -e s:tests/:: -e s:\\\.c::`; do \
+	for TEST in  `ls tests/*.c |sed -e s:tests/:: -e s:\\\.c::`; do \
 	     echo $$TEST, >> $@;\
 	done;
 	echo '};' >> $@
 	echo 'static gchar *test_names[]={' >> $@
-	for TEST in  `ls tests/*.c -1|sed -e s:tests/:: -e s:\\\.c::`; do \
+	for TEST in  `ls tests/*.c |sed -e s:tests/:: -e s:\\\.c::`; do \
 	     echo \"$$TEST\", >> $@;\
 	done;
 	echo '};' >> $@
 
 buffer-tests-report: buffer-test$(EXEEXT) $(top_srcdir)/tests/buffer/reference/*.buf
 	-./buffer-test$(EXEEXT)
-	diff -s -r -U 50 $(top_srcdir)/tests/buffer/reference/ output/ > buffer-tests-report; true
+	diff -s -r -C 50 $(top_srcdir)/tests/buffer/reference/ output/ > buffer-tests-report; true
 
 
 # Don't forget to clean



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