Converted libtest to a more proper dummy test suite (libtestdummy).
authorMarkus Kauppila
Mon, 06 Jun 2011 18:15:19 +0300
changeset 5686a7d699502230
parent 5685 731a7c70eded
child 5687 4a61fa7362ed
Converted libtest to a more proper dummy test suite (libtestdummy).
test/test-automation/Makefile.am
test/test-automation/configure.ac
test/test-automation/runner.c
test/test-automation/testdummy/Makefile.am
test/test-automation/testdummy/testdummy.c
test/test-automation/testrect/Makefile.in
test/test-automation/tests/Makefile.am
test/test-automation/tests/test.c
     1.1 --- a/test/test-automation/Makefile.am	Sun Jun 05 18:44:58 2011 +0300
     1.2 +++ b/test/test-automation/Makefile.am	Mon Jun 06 18:15:19 2011 +0300
     1.3 @@ -1,6 +1,6 @@
     1.4  ACLOCAL_AMFLAGS = -I acinclude -I build-scripts
     1.5  
     1.6 -SUBDIRS = tests testrect
     1.7 +SUBDIRS = testdummy testrect
     1.8  
     1.9  bin_PROGRAMS = runner
    1.10  runner_SOURCES = runner.c SDL_test.c
    1.11 @@ -9,12 +9,13 @@
    1.12  
    1.13  install: install-tests
    1.14  install-tests:
    1.15 -	-cp -f tests/.libs/*.dylib tests/ 2> /dev/null
    1.16 -	-cp -f tests/.libs/*.so tests/ 2> /dev/null
    1.17 +	-mkdir tests
    1.18 +	-cp -f testdummy/.libs/*.dylib tests/ 2> /dev/null
    1.19 +	-cp -f testdummy/.libs/*.so tests/ 2> /dev/null
    1.20  	-cp -f testrect/.libs/*.dylib tests/ 2> /dev/null
    1.21  	-cp -f testrect/.libs/*.so tests/ 2> /dev/null
    1.22  
    1.23  distclean-local:
    1.24 -	-rm -Rf docs/
    1.25 +	-rm -Rf tests/ docs/
    1.26  
    1.27  
     2.1 --- a/test/test-automation/configure.ac	Sun Jun 05 18:44:58 2011 +0300
     2.2 +++ b/test/test-automation/configure.ac	Mon Jun 06 18:15:19 2011 +0300
     2.3 @@ -33,7 +33,8 @@
     2.4  AC_FUNC_FORK
     2.5  
     2.6  AC_CONFIG_FILES([Makefile
     2.7 -				 tests/Makefile testrect/Makefile])
     2.8 +				 testdummy/Makefile 
     2.9 +				 testrect/Makefile])
    2.10  AC_OUTPUT
    2.11  
    2.12  echo ""
     3.1 --- a/test/test-automation/runner.c	Sun Jun 05 18:44:58 2011 +0300
     3.2 +++ b/test/test-automation/runner.c	Mon Jun 06 18:15:19 2011 +0300
     3.3 @@ -53,9 +53,9 @@
     3.4  
     3.5  //!< Temporary array to hold test suite names
     3.6  #if defined(linux) || defined( __linux)
     3.7 -	char *testSuites[] = { "tests/libtest.so", "tests/libtestrect.so", NULL};
     3.8 +	char *testSuites[] = { "tests/libtestdummy.so", "tests/libtestrect.so", NULL};
     3.9  #else
    3.10 -	char *testSuites[] = { "tests/libtest.dylib", "tests/libtestrect.dylib", NULL};
    3.11 +	char *testSuites[] = { "tests/libtestdummy.dylib", "tests/libtestrect.dylib", NULL};
    3.12  #endif
    3.13  
    3.14  
    3.15 @@ -340,7 +340,7 @@
    3.16  	int retVal = 1;
    3.17  
    3.18  	if(only_selected_suite)	{
    3.19 -		// extract the suite name. Rips the tests/ and file suffix from the suite name
    3.20 +		// extract the suite name. Rips the tests/ and file extension from the suite name
    3.21  		char buffer[NAME_BUFFER_SIZE];
    3.22  		int len = strlen(testSuiteName);
    3.23  
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/test/test-automation/testdummy/Makefile.am	Mon Jun 06 18:15:19 2011 +0300
     4.3 @@ -0,0 +1,9 @@
     4.4 +lib_LTLIBRARIES = libtestdummy.la
     4.5 +libtestdummy_la_SOURCES = testdummy.c ../SDL_test.c
     4.6 +libtestdummy_la_CLAGS = -fPIC -g
     4.7 +libtestdummy_la_LDFLAGS = `sdl-config --libs`
     4.8 +
     4.9 +distclean-local:
    4.10 +	-rm *.dylib
    4.11 +	-rm *.so
    4.12 +
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/test/test-automation/testdummy/testdummy.c	Mon Jun 06 18:15:19 2011 +0300
     5.3 @@ -0,0 +1,78 @@
     5.4 +/*
     5.5 +  Copyright (C) 2011 Markus Kauppila <markus.kauppila@gmail.com>
     5.6 +
     5.7 +  This software is provided 'as-is', without any express or implied
     5.8 +  warranty.  In no event will the authors be held liable for any damages
     5.9 +  arising from the use of this software.
    5.10 +
    5.11 +  Permission is granted to anyone to use this software for any purpose,
    5.12 +  including commercial applications, and to alter it and redistribute it
    5.13 +  freely, subject to the following restrictions:
    5.14 +
    5.15 +  1. The origin of this software must not be misrepresented; you must not
    5.16 +     claim that you wrote the original software. If you use this software
    5.17 +     in a product, an acknowledgment in the product documentation would be
    5.18 +     appreciated but is not required.
    5.19 +  2. Altered source versions must be plainly marked as such, and must not be
    5.20 +     misrepresented as being the original software.
    5.21 +  3. This notice may not be removed or altered from any source distribution.
    5.22 +*/
    5.23 +
    5.24 +/*! \file
    5.25 + * Dummy test suite for test runner. This can be used as a base for
    5.26 + * writing new tests. Dummy suite also works as reference to using
    5.27 + * various asserts and (possible) other utilities.
    5.28 + */
    5.29 +
    5.30 +#ifndef _TEST_C
    5.31 +#define _TEST_C
    5.32 +
    5.33 +#include <stdio.h>
    5.34 +
    5.35 +#include <SDL/SDL.h>
    5.36 +
    5.37 +#include "../SDL_test.h"
    5.38 +
    5.39 +/* Test cases */
    5.40 +static const TestCaseReference test1 =
    5.41 +		(TestCaseReference){ "dummycase1", "description", TEST_ENABLED, 0 };
    5.42 +
    5.43 +static const TestCaseReference test2 =
    5.44 +		(TestCaseReference){ "dummycase2", "description", TEST_ENABLED, 0 };
    5.45 +
    5.46 +static const TestCaseReference test3 =
    5.47 +		(TestCaseReference){ "dummycase3", "description", TEST_ENABLED, 0 };
    5.48 +
    5.49 +/* Test suite */
    5.50 +extern const TestCaseReference *testSuite[] =  {
    5.51 +	&test1, &test2, &test3, NULL
    5.52 +};
    5.53 +
    5.54 +
    5.55 +TestCaseReference **QueryTestSuite() {
    5.56 +	return (TestCaseReference **)testSuite;
    5.57 +}
    5.58 +
    5.59 +/* Test case functions */
    5.60 +void dummycase1(void *arg)
    5.61 +{
    5.62 +	const char *revision = SDL_GetRevision();
    5.63 +
    5.64 +	printf("Revision is %s\n", revision);
    5.65 +
    5.66 +	AssertEquals(3, 5, "fails");
    5.67 +}
    5.68 +
    5.69 +void dummycase2(void *arg)
    5.70 +{
    5.71 +	char *msg = "eello";
    5.72 +	//msg[0] = 'H';
    5.73 +	AssertTrue(0, "fails");
    5.74 +}
    5.75 +
    5.76 +void dummycase3(void *arg)
    5.77 +{
    5.78 +	AssertTrue(1, "passes");
    5.79 +}
    5.80 +
    5.81 +#endif
     6.1 --- a/test/test-automation/testrect/Makefile.in	Sun Jun 05 18:44:58 2011 +0300
     6.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.3 @@ -1,533 +0,0 @@
     6.4 -# Makefile.in generated by automake 1.11.1 from Makefile.am.
     6.5 -# @configure_input@
     6.6 -
     6.7 -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     6.8 -# 2003, 2004, 2005, 2006, 2007, 2008, 2009  Free Software Foundation,
     6.9 -# Inc.
    6.10 -# This Makefile.in is free software; the Free Software Foundation
    6.11 -# gives unlimited permission to copy and/or distribute it,
    6.12 -# with or without modifications, as long as this notice is preserved.
    6.13 -
    6.14 -# This program is distributed in the hope that it will be useful,
    6.15 -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
    6.16 -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
    6.17 -# PARTICULAR PURPOSE.
    6.18 -
    6.19 -@SET_MAKE@
    6.20 -
    6.21 -VPATH = @srcdir@
    6.22 -pkgdatadir = $(datadir)/@PACKAGE@
    6.23 -pkgincludedir = $(includedir)/@PACKAGE@
    6.24 -pkglibdir = $(libdir)/@PACKAGE@
    6.25 -pkglibexecdir = $(libexecdir)/@PACKAGE@
    6.26 -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
    6.27 -install_sh_DATA = $(install_sh) -c -m 644
    6.28 -install_sh_PROGRAM = $(install_sh) -c
    6.29 -install_sh_SCRIPT = $(install_sh) -c
    6.30 -INSTALL_HEADER = $(INSTALL_DATA)
    6.31 -transform = $(program_transform_name)
    6.32 -NORMAL_INSTALL = :
    6.33 -PRE_INSTALL = :
    6.34 -POST_INSTALL = :
    6.35 -NORMAL_UNINSTALL = :
    6.36 -PRE_UNINSTALL = :
    6.37 -POST_UNINSTALL = :
    6.38 -build_triplet = @build@
    6.39 -host_triplet = @host@
    6.40 -subdir = testrect
    6.41 -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
    6.42 -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    6.43 -am__aclocal_m4_deps = $(top_srcdir)/acinclude/libtool.m4 \
    6.44 -	$(top_srcdir)/acinclude/ltoptions.m4 \
    6.45 -	$(top_srcdir)/acinclude/ltsugar.m4 \
    6.46 -	$(top_srcdir)/acinclude/ltversion.m4 \
    6.47 -	$(top_srcdir)/acinclude/lt~obsolete.m4 \
    6.48 -	$(top_srcdir)/configure.ac
    6.49 -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
    6.50 -	$(ACLOCAL_M4)
    6.51 -mkinstalldirs = $(install_sh) -d
    6.52 -CONFIG_HEADER = $(top_builddir)/config.h
    6.53 -CONFIG_CLEAN_FILES =
    6.54 -CONFIG_CLEAN_VPATH_FILES =
    6.55 -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
    6.56 -am__vpath_adj = case $$p in \
    6.57 -    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
    6.58 -    *) f=$$p;; \
    6.59 -  esac;
    6.60 -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
    6.61 -am__install_max = 40
    6.62 -am__nobase_strip_setup = \
    6.63 -  srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
    6.64 -am__nobase_strip = \
    6.65 -  for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
    6.66 -am__nobase_list = $(am__nobase_strip_setup); \
    6.67 -  for p in $$list; do echo "$$p $$p"; done | \
    6.68 -  sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
    6.69 -  $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
    6.70 -    if (++n[$$2] == $(am__install_max)) \
    6.71 -      { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
    6.72 -    END { for (dir in files) print dir, files[dir] }'
    6.73 -am__base_list = \
    6.74 -  sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
    6.75 -  sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
    6.76 -am__installdirs = "$(DESTDIR)$(libdir)"
    6.77 -LTLIBRARIES = $(lib_LTLIBRARIES)
    6.78 -libtestrect_la_LIBADD =
    6.79 -am_libtestrect_la_OBJECTS = testrect.lo SDL_test.lo
    6.80 -libtestrect_la_OBJECTS = $(am_libtestrect_la_OBJECTS)
    6.81 -libtestrect_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
    6.82 -	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
    6.83 -	$(libtestrect_la_LDFLAGS) $(LDFLAGS) -o $@
    6.84 -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
    6.85 -depcomp = $(SHELL) $(top_srcdir)/build-scripts/depcomp
    6.86 -am__depfiles_maybe = depfiles
    6.87 -am__mv = mv -f
    6.88 -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
    6.89 -	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
    6.90 -LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
    6.91 -	--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
    6.92 -	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
    6.93 -CCLD = $(CC)
    6.94 -LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
    6.95 -	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
    6.96 -	$(LDFLAGS) -o $@
    6.97 -SOURCES = $(libtestrect_la_SOURCES)
    6.98 -DIST_SOURCES = $(libtestrect_la_SOURCES)
    6.99 -ETAGS = etags
   6.100 -CTAGS = ctags
   6.101 -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
   6.102 -ACLOCAL = @ACLOCAL@
   6.103 -AMTAR = @AMTAR@
   6.104 -AR = @AR@
   6.105 -AUTOCONF = @AUTOCONF@
   6.106 -AUTOHEADER = @AUTOHEADER@
   6.107 -AUTOMAKE = @AUTOMAKE@
   6.108 -AWK = @AWK@
   6.109 -CC = @CC@
   6.110 -CCDEPMODE = @CCDEPMODE@
   6.111 -CFLAGS = @CFLAGS@
   6.112 -CPP = @CPP@
   6.113 -CPPFLAGS = @CPPFLAGS@
   6.114 -CYGPATH_W = @CYGPATH_W@
   6.115 -DEFS = @DEFS@
   6.116 -DEPDIR = @DEPDIR@
   6.117 -DSYMUTIL = @DSYMUTIL@
   6.118 -DUMPBIN = @DUMPBIN@
   6.119 -ECHO_C = @ECHO_C@
   6.120 -ECHO_N = @ECHO_N@
   6.121 -ECHO_T = @ECHO_T@
   6.122 -EGREP = @EGREP@
   6.123 -EXEEXT = @EXEEXT@
   6.124 -FGREP = @FGREP@
   6.125 -GREP = @GREP@
   6.126 -INSTALL = @INSTALL@
   6.127 -INSTALL_DATA = @INSTALL_DATA@
   6.128 -INSTALL_PROGRAM = @INSTALL_PROGRAM@
   6.129 -INSTALL_SCRIPT = @INSTALL_SCRIPT@
   6.130 -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
   6.131 -LD = @LD@
   6.132 -LDFLAGS = @LDFLAGS@
   6.133 -LIBOBJS = @LIBOBJS@
   6.134 -LIBS = @LIBS@
   6.135 -LIBTOOL = @LIBTOOL@
   6.136 -LIPO = @LIPO@
   6.137 -LN_S = @LN_S@
   6.138 -LTLIBOBJS = @LTLIBOBJS@
   6.139 -MAKEINFO = @MAKEINFO@
   6.140 -MKDIR_P = @MKDIR_P@
   6.141 -NM = @NM@
   6.142 -NMEDIT = @NMEDIT@
   6.143 -OBJDUMP = @OBJDUMP@
   6.144 -OBJEXT = @OBJEXT@
   6.145 -OTOOL = @OTOOL@
   6.146 -OTOOL64 = @OTOOL64@
   6.147 -PACKAGE = @PACKAGE@
   6.148 -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
   6.149 -PACKAGE_NAME = @PACKAGE_NAME@
   6.150 -PACKAGE_STRING = @PACKAGE_STRING@
   6.151 -PACKAGE_TARNAME = @PACKAGE_TARNAME@
   6.152 -PACKAGE_URL = @PACKAGE_URL@
   6.153 -PACKAGE_VERSION = @PACKAGE_VERSION@
   6.154 -PATH_SEPARATOR = @PATH_SEPARATOR@
   6.155 -RANLIB = @RANLIB@
   6.156 -SED = @SED@
   6.157 -SET_MAKE = @SET_MAKE@
   6.158 -SHELL = @SHELL@
   6.159 -STRIP = @STRIP@
   6.160 -VERSION = @VERSION@
   6.161 -abs_builddir = @abs_builddir@
   6.162 -abs_srcdir = @abs_srcdir@
   6.163 -abs_top_builddir = @abs_top_builddir@
   6.164 -abs_top_srcdir = @abs_top_srcdir@
   6.165 -ac_ct_CC = @ac_ct_CC@
   6.166 -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
   6.167 -am__include = @am__include@
   6.168 -am__leading_dot = @am__leading_dot@
   6.169 -am__quote = @am__quote@
   6.170 -am__tar = @am__tar@
   6.171 -am__untar = @am__untar@
   6.172 -bindir = @bindir@
   6.173 -build = @build@
   6.174 -build_alias = @build_alias@
   6.175 -build_cpu = @build_cpu@
   6.176 -build_os = @build_os@
   6.177 -build_vendor = @build_vendor@
   6.178 -builddir = @builddir@
   6.179 -datadir = @datadir@
   6.180 -datarootdir = @datarootdir@
   6.181 -docdir = @docdir@
   6.182 -dvidir = @dvidir@
   6.183 -exec_prefix = @exec_prefix@
   6.184 -host = @host@
   6.185 -host_alias = @host_alias@
   6.186 -host_cpu = @host_cpu@
   6.187 -host_os = @host_os@
   6.188 -host_vendor = @host_vendor@
   6.189 -htmldir = @htmldir@
   6.190 -includedir = @includedir@
   6.191 -infodir = @infodir@
   6.192 -install_sh = @install_sh@
   6.193 -libdir = @libdir@
   6.194 -libexecdir = @libexecdir@
   6.195 -localedir = @localedir@
   6.196 -localstatedir = @localstatedir@
   6.197 -lt_ECHO = @lt_ECHO@
   6.198 -mandir = @mandir@
   6.199 -mkdir_p = @mkdir_p@
   6.200 -oldincludedir = @oldincludedir@
   6.201 -pdfdir = @pdfdir@
   6.202 -prefix = @prefix@
   6.203 -program_transform_name = @program_transform_name@
   6.204 -psdir = @psdir@
   6.205 -sbindir = @sbindir@
   6.206 -sharedstatedir = @sharedstatedir@
   6.207 -srcdir = @srcdir@
   6.208 -sysconfdir = @sysconfdir@
   6.209 -target_alias = @target_alias@
   6.210 -top_build_prefix = @top_build_prefix@
   6.211 -top_builddir = @top_builddir@
   6.212 -top_srcdir = @top_srcdir@
   6.213 -lib_LTLIBRARIES = libtestrect.la
   6.214 -libtestrect_la_SOURCES = testrect.c ../SDL_test.c
   6.215 -libtestrect_la_CLAGS = -fPIC -g
   6.216 -libtestrect_la_LDFLAGS = `sdl-config --libs`
   6.217 -all: all-am
   6.218 -
   6.219 -.SUFFIXES:
   6.220 -.SUFFIXES: .c .lo .o .obj
   6.221 -$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
   6.222 -	@for dep in $?; do \
   6.223 -	  case '$(am__configure_deps)' in \
   6.224 -	    *$$dep*) \
   6.225 -	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
   6.226 -	        && { if test -f $@; then exit 0; else break; fi; }; \
   6.227 -	      exit 1;; \
   6.228 -	  esac; \
   6.229 -	done; \
   6.230 -	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu testrect/Makefile'; \
   6.231 -	$(am__cd) $(top_srcdir) && \
   6.232 -	  $(AUTOMAKE) --gnu testrect/Makefile
   6.233 -.PRECIOUS: Makefile
   6.234 -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
   6.235 -	@case '$?' in \
   6.236 -	  *config.status*) \
   6.237 -	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
   6.238 -	  *) \
   6.239 -	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
   6.240 -	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
   6.241 -	esac;
   6.242 -
   6.243 -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
   6.244 -	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
   6.245 -
   6.246 -$(top_srcdir)/configure:  $(am__configure_deps)
   6.247 -	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
   6.248 -$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
   6.249 -	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
   6.250 -$(am__aclocal_m4_deps):
   6.251 -install-libLTLIBRARIES: $(lib_LTLIBRARIES)
   6.252 -	@$(NORMAL_INSTALL)
   6.253 -	test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
   6.254 -	@list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
   6.255 -	list2=; for p in $$list; do \
   6.256 -	  if test -f $$p; then \
   6.257 -	    list2="$$list2 $$p"; \
   6.258 -	  else :; fi; \
   6.259 -	done; \
   6.260 -	test -z "$$list2" || { \
   6.261 -	  echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
   6.262 -	  $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
   6.263 -	}
   6.264 -
   6.265 -uninstall-libLTLIBRARIES:
   6.266 -	@$(NORMAL_UNINSTALL)
   6.267 -	@list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
   6.268 -	for p in $$list; do \
   6.269 -	  $(am__strip_dir) \
   6.270 -	  echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
   6.271 -	  $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
   6.272 -	done
   6.273 -
   6.274 -clean-libLTLIBRARIES:
   6.275 -	-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
   6.276 -	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
   6.277 -	  dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
   6.278 -	  test "$$dir" != "$$p" || dir=.; \
   6.279 -	  echo "rm -f \"$${dir}/so_locations\""; \
   6.280 -	  rm -f "$${dir}/so_locations"; \
   6.281 -	done
   6.282 -libtestrect.la: $(libtestrect_la_OBJECTS) $(libtestrect_la_DEPENDENCIES) 
   6.283 -	$(libtestrect_la_LINK) -rpath $(libdir) $(libtestrect_la_OBJECTS) $(libtestrect_la_LIBADD) $(LIBS)
   6.284 -
   6.285 -mostlyclean-compile:
   6.286 -	-rm -f *.$(OBJEXT)
   6.287 -
   6.288 -distclean-compile:
   6.289 -	-rm -f *.tab.c
   6.290 -
   6.291 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SDL_test.Plo@am__quote@
   6.292 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testrect.Plo@am__quote@
   6.293 -
   6.294 -.c.o:
   6.295 -@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
   6.296 -@am__fastdepCC_TRUE@	$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
   6.297 -@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
   6.298 -@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
   6.299 -@am__fastdepCC_FALSE@	$(COMPILE) -c $<
   6.300 -
   6.301 -.c.obj:
   6.302 -@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
   6.303 -@am__fastdepCC_TRUE@	$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
   6.304 -@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
   6.305 -@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
   6.306 -@am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
   6.307 -
   6.308 -.c.lo:
   6.309 -@am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
   6.310 -@am__fastdepCC_TRUE@	$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
   6.311 -@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
   6.312 -@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
   6.313 -@am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
   6.314 -
   6.315 -SDL_test.lo: ../SDL_test.c
   6.316 -@am__fastdepCC_TRUE@	$(LIBTOOL)  --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT SDL_test.lo -MD -MP -MF $(DEPDIR)/SDL_test.Tpo -c -o SDL_test.lo `test -f '../SDL_test.c' || echo '$(srcdir)/'`../SDL_test.c
   6.317 -@am__fastdepCC_TRUE@	$(am__mv) $(DEPDIR)/SDL_test.Tpo $(DEPDIR)/SDL_test.Plo
   6.318 -@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='../SDL_test.c' object='SDL_test.lo' libtool=yes @AMDEPBACKSLASH@
   6.319 -@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
   6.320 -@am__fastdepCC_FALSE@	$(LIBTOOL)  --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o SDL_test.lo `test -f '../SDL_test.c' || echo '$(srcdir)/'`../SDL_test.c
   6.321 -
   6.322 -mostlyclean-libtool:
   6.323 -	-rm -f *.lo
   6.324 -
   6.325 -clean-libtool:
   6.326 -	-rm -rf .libs _libs
   6.327 -
   6.328 -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
   6.329 -	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
   6.330 -	unique=`for i in $$list; do \
   6.331 -	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
   6.332 -	  done | \
   6.333 -	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
   6.334 -	      END { if (nonempty) { for (i in files) print i; }; }'`; \
   6.335 -	mkid -fID $$unique
   6.336 -tags: TAGS
   6.337 -
   6.338 -TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
   6.339 -		$(TAGS_FILES) $(LISP)
   6.340 -	set x; \
   6.341 -	here=`pwd`; \
   6.342 -	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
   6.343 -	unique=`for i in $$list; do \
   6.344 -	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
   6.345 -	  done | \
   6.346 -	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
   6.347 -	      END { if (nonempty) { for (i in files) print i; }; }'`; \
   6.348 -	shift; \
   6.349 -	if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
   6.350 -	  test -n "$$unique" || unique=$$empty_fix; \
   6.351 -	  if test $$# -gt 0; then \
   6.352 -	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
   6.353 -	      "$$@" $$unique; \
   6.354 -	  else \
   6.355 -	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
   6.356 -	      $$unique; \
   6.357 -	  fi; \
   6.358 -	fi
   6.359 -ctags: CTAGS
   6.360 -CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
   6.361 -		$(TAGS_FILES) $(LISP)
   6.362 -	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
   6.363 -	unique=`for i in $$list; do \
   6.364 -	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
   6.365 -	  done | \
   6.366 -	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
   6.367 -	      END { if (nonempty) { for (i in files) print i; }; }'`; \
   6.368 -	test -z "$(CTAGS_ARGS)$$unique" \
   6.369 -	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
   6.370 -	     $$unique
   6.371 -
   6.372 -GTAGS:
   6.373 -	here=`$(am__cd) $(top_builddir) && pwd` \
   6.374 -	  && $(am__cd) $(top_srcdir) \
   6.375 -	  && gtags -i $(GTAGS_ARGS) "$$here"
   6.376 -
   6.377 -distclean-tags:
   6.378 -	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
   6.379 -
   6.380 -distdir: $(DISTFILES)
   6.381 -	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
   6.382 -	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
   6.383 -	list='$(DISTFILES)'; \
   6.384 -	  dist_files=`for file in $$list; do echo $$file; done | \
   6.385 -	  sed -e "s|^$$srcdirstrip/||;t" \
   6.386 -	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
   6.387 -	case $$dist_files in \
   6.388 -	  */*) $(MKDIR_P) `echo "$$dist_files" | \
   6.389 -			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
   6.390 -			   sort -u` ;; \
   6.391 -	esac; \
   6.392 -	for file in $$dist_files; do \
   6.393 -	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
   6.394 -	  if test -d $$d/$$file; then \
   6.395 -	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
   6.396 -	    if test -d "$(distdir)/$$file"; then \
   6.397 -	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
   6.398 -	    fi; \
   6.399 -	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
   6.400 -	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
   6.401 -	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
   6.402 -	    fi; \
   6.403 -	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
   6.404 -	  else \
   6.405 -	    test -f "$(distdir)/$$file" \
   6.406 -	    || cp -p $$d/$$file "$(distdir)/$$file" \
   6.407 -	    || exit 1; \
   6.408 -	  fi; \
   6.409 -	done
   6.410 -check-am: all-am
   6.411 -check: check-am
   6.412 -all-am: Makefile $(LTLIBRARIES)
   6.413 -installdirs:
   6.414 -	for dir in "$(DESTDIR)$(libdir)"; do \
   6.415 -	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
   6.416 -	done
   6.417 -install: install-am
   6.418 -install-exec: install-exec-am
   6.419 -install-data: install-data-am
   6.420 -uninstall: uninstall-am
   6.421 -
   6.422 -install-am: all-am
   6.423 -	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
   6.424 -
   6.425 -installcheck: installcheck-am
   6.426 -install-strip:
   6.427 -	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
   6.428 -	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
   6.429 -	  `test -z '$(STRIP)' || \
   6.430 -	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
   6.431 -mostlyclean-generic:
   6.432 -
   6.433 -clean-generic:
   6.434 -
   6.435 -distclean-generic:
   6.436 -	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
   6.437 -	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
   6.438 -
   6.439 -maintainer-clean-generic:
   6.440 -	@echo "This command is intended for maintainers to use"
   6.441 -	@echo "it deletes files that may require special tools to rebuild."
   6.442 -clean: clean-am
   6.443 -
   6.444 -clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
   6.445 -	mostlyclean-am
   6.446 -
   6.447 -distclean: distclean-am
   6.448 -	-rm -rf ./$(DEPDIR)
   6.449 -	-rm -f Makefile
   6.450 -distclean-am: clean-am distclean-compile distclean-generic \
   6.451 -	distclean-local distclean-tags
   6.452 -
   6.453 -dvi: dvi-am
   6.454 -
   6.455 -dvi-am:
   6.456 -
   6.457 -html: html-am
   6.458 -
   6.459 -html-am:
   6.460 -
   6.461 -info: info-am
   6.462 -
   6.463 -info-am:
   6.464 -
   6.465 -install-data-am:
   6.466 -
   6.467 -install-dvi: install-dvi-am
   6.468 -
   6.469 -install-dvi-am:
   6.470 -
   6.471 -install-exec-am: install-libLTLIBRARIES
   6.472 -
   6.473 -install-html: install-html-am
   6.474 -
   6.475 -install-html-am:
   6.476 -
   6.477 -install-info: install-info-am
   6.478 -
   6.479 -install-info-am:
   6.480 -
   6.481 -install-man:
   6.482 -
   6.483 -install-pdf: install-pdf-am
   6.484 -
   6.485 -install-pdf-am:
   6.486 -
   6.487 -install-ps: install-ps-am
   6.488 -
   6.489 -install-ps-am:
   6.490 -
   6.491 -installcheck-am:
   6.492 -
   6.493 -maintainer-clean: maintainer-clean-am
   6.494 -	-rm -rf ./$(DEPDIR)
   6.495 -	-rm -f Makefile
   6.496 -maintainer-clean-am: distclean-am maintainer-clean-generic
   6.497 -
   6.498 -mostlyclean: mostlyclean-am
   6.499 -
   6.500 -mostlyclean-am: mostlyclean-compile mostlyclean-generic \
   6.501 -	mostlyclean-libtool
   6.502 -
   6.503 -pdf: pdf-am
   6.504 -
   6.505 -pdf-am:
   6.506 -
   6.507 -ps: ps-am
   6.508 -
   6.509 -ps-am:
   6.510 -
   6.511 -uninstall-am: uninstall-libLTLIBRARIES
   6.512 -
   6.513 -.MAKE: install-am install-strip
   6.514 -
   6.515 -.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
   6.516 -	clean-libLTLIBRARIES clean-libtool ctags distclean \
   6.517 -	distclean-compile distclean-generic distclean-libtool \
   6.518 -	distclean-local distclean-tags distdir dvi dvi-am html html-am \
   6.519 -	info info-am install install-am install-data install-data-am \
   6.520 -	install-dvi install-dvi-am install-exec install-exec-am \
   6.521 -	install-html install-html-am install-info install-info-am \
   6.522 -	install-libLTLIBRARIES install-man install-pdf install-pdf-am \
   6.523 -	install-ps install-ps-am install-strip installcheck \
   6.524 -	installcheck-am installdirs maintainer-clean \
   6.525 -	maintainer-clean-generic mostlyclean mostlyclean-compile \
   6.526 -	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
   6.527 -	tags uninstall uninstall-am uninstall-libLTLIBRARIES
   6.528 -
   6.529 -
   6.530 -distclean-local:
   6.531 -	-rm *.dylib
   6.532 -	-rm *.so
   6.533 -
   6.534 -# Tell versions [3.59,3.63) of GNU make to not export all variables.
   6.535 -# Otherwise a system limit (for SysV at least) may be exceeded.
   6.536 -.NOEXPORT:
     7.1 --- a/test/test-automation/tests/Makefile.am	Sun Jun 05 18:44:58 2011 +0300
     7.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.3 @@ -1,9 +0,0 @@
     7.4 -lib_LTLIBRARIES = libtest.la
     7.5 -libtest_la_SOURCES = test.c ../SDL_test.c
     7.6 -libtest_la_CLAGS = -fPIC -g 
     7.7 -libtest_la_LDFLAGS = `sdl-config --libs`
     7.8 -
     7.9 -distclean-local:
    7.10 -	-rm *.dylib
    7.11 -	-rm *.so
    7.12 -
     8.1 --- a/test/test-automation/tests/test.c	Sun Jun 05 18:44:58 2011 +0300
     8.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.3 @@ -1,72 +0,0 @@
     8.4 -/*
     8.5 -  Copyright (C) 2011 Markus Kauppila <markus.kauppila@gmail.com>
     8.6 -
     8.7 -  This software is provided 'as-is', without any express or implied
     8.8 -  warranty.  In no event will the authors be held liable for any damages
     8.9 -  arising from the use of this software.
    8.10 -
    8.11 -  Permission is granted to anyone to use this software for any purpose,
    8.12 -  including commercial applications, and to alter it and redistribute it
    8.13 -  freely, subject to the following restrictions:
    8.14 -
    8.15 -  1. The origin of this software must not be misrepresented; you must not
    8.16 -     claim that you wrote the original software. If you use this software
    8.17 -     in a product, an acknowledgment in the product documentation would be
    8.18 -     appreciated but is not required.
    8.19 -  2. Altered source versions must be plainly marked as such, and must not be
    8.20 -     misrepresented as being the original software.
    8.21 -  3. This notice may not be removed or altered from any source distribution.
    8.22 -*/
    8.23 -
    8.24 -#ifndef _TEST_C
    8.25 -#define _TEST_C
    8.26 -
    8.27 -#include <stdio.h>
    8.28 -
    8.29 -#include <SDL/SDL.h>
    8.30 -
    8.31 -#include "../SDL_test.h"
    8.32 -
    8.33 -/* Test cases */
    8.34 -static const TestCaseReference test1 =
    8.35 -		(TestCaseReference){ "hello", "description", TEST_ENABLED, 0 };
    8.36 -
    8.37 -static const TestCaseReference test2 =
    8.38 -		(TestCaseReference){ "hello2", "description", TEST_ENABLED, 0 };
    8.39 -
    8.40 -static const TestCaseReference test3 =
    8.41 -		(TestCaseReference){ "hello3", "description", TEST_ENABLED, 0 };
    8.42 -
    8.43 -/* Test suite */
    8.44 -extern const TestCaseReference *testSuite[] =  {
    8.45 -	&test1, &test2, &test3, NULL
    8.46 -};
    8.47 -
    8.48 -
    8.49 -TestCaseReference **QueryTestSuite() {
    8.50 -	return (TestCaseReference **)testSuite;
    8.51 -}
    8.52 -
    8.53 -/* Test case functions */
    8.54 -void hello(void *arg)
    8.55 -{
    8.56 -	const char *revision = SDL_GetRevision();
    8.57 -
    8.58 -	printf("Revision is %s\n", revision);
    8.59 -
    8.60 -	AssertEquals(3, 5, "fails");
    8.61 -}
    8.62 -
    8.63 -void hello2(void *arg)
    8.64 -{
    8.65 -	char *msg = "eello";
    8.66 -	//msg[0] = 'H';
    8.67 -	AssertTrue(0, "fails");
    8.68 -}
    8.69 -
    8.70 -void hello3(void *arg)
    8.71 -{
    8.72 -	AssertTrue(1, "passes");
    8.73 -}
    8.74 -
    8.75 -#endif