From d8864ea11de4804b49b5a7bbb573c0aa919dc0d8 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Tue, 22 Nov 2022 18:47:03 +0300 Subject: [PATCH] removed visualtest --- .gitignore | 9 - .../unittest/testquit/testquit_VS2012.vcxproj | 217 - VisualC/visualtest/visualtest_VS2012.vcxproj | 308 -- visualtest/COPYING.txt | 18 - visualtest/Makefile.in | 44 - visualtest/README.txt | 214 - visualtest/acinclude.m4 | 337 -- visualtest/autogen.sh | 11 - .../testsprite2_blendmodes.actions | 3 - .../testsprite2_blendmodes.config | 5 - .../testsprite2_blendmodes.parameters | 5 - .../testsprite2_crashtest.actions | 1 - .../testsprite2_crashtest.config | 5 - .../testsprite2_crashtest.parameters | 24 - .../testsprite2_fullscreen.actions | 3 - .../testsprite2_fullscreen.config | 5 - .../testsprite2_fullscreen.parameters | 5 - .../testsprite2_geometry.actions | 3 - .../testsprite2_geometry.config | 5 - .../testsprite2_geometry.parameters | 5 - visualtest/configure | 4442 ----------------- visualtest/configure.ac | 41 - visualtest/docs/Doxyfile | 1936 ------- .../SDL_visualtest_action_configparser.h | 149 - .../SDL_visualtest_exhaustive_variator.h | 64 - .../SDL_visualtest_harness_argparser.h | 75 - .../include/SDL_visualtest_mischelper.h | 28 - .../include/SDL_visualtest_parsehelper.h | 46 - visualtest/include/SDL_visualtest_process.h | 112 - .../include/SDL_visualtest_random_variator.h | 61 - visualtest/include/SDL_visualtest_rwhelper.h | 87 - .../include/SDL_visualtest_screenshot.h | 52 - .../include/SDL_visualtest_sut_configparser.h | 105 - .../include/SDL_visualtest_variator_common.h | 122 - visualtest/include/SDL_visualtest_variators.h | 66 - visualtest/launch_harness.cmd | 2 - visualtest/launch_harness.sh | 6 - visualtest/src/action_configparser.c | 399 -- visualtest/src/harness_argparser.c | 358 -- visualtest/src/linux/linux_process.c | 208 - visualtest/src/mischelper.c | 28 - visualtest/src/parsehelper.c | 231 - visualtest/src/rwhelper.c | 131 - visualtest/src/screenshot.c | 136 - visualtest/src/sut_configparser.c | 232 - visualtest/src/testharness.c | 532 -- visualtest/src/variator_common.c | 225 - visualtest/src/variator_exhaustive.c | 133 - visualtest/src/variator_random.c | 113 - visualtest/src/variators.c | 95 - visualtest/src/windows/windows_process.c | 283 -- visualtest/src/windows/windows_screenshot.c | 349 -- visualtest/testsprite2_sample.actions | 3 - visualtest/testsprite2_sample.config | 6 - visualtest/testsprite2_sample.parameters | 29 - visualtest/unittest/testquit.actions | 1 - visualtest/unittest/testquit.c | 102 - visualtest/unittest/testquit.config | 5 - visualtest/unittest/testquit.parameters | 3 - 59 files changed, 12223 deletions(-) delete mode 100644 VisualC/visualtest/unittest/testquit/testquit_VS2012.vcxproj delete mode 100644 VisualC/visualtest/visualtest_VS2012.vcxproj delete mode 100644 visualtest/COPYING.txt delete mode 100644 visualtest/Makefile.in delete mode 100644 visualtest/README.txt delete mode 100644 visualtest/acinclude.m4 delete mode 100755 visualtest/autogen.sh delete mode 100644 visualtest/configs/testsprite2_blendmodes/testsprite2_blendmodes.actions delete mode 100644 visualtest/configs/testsprite2_blendmodes/testsprite2_blendmodes.config delete mode 100644 visualtest/configs/testsprite2_blendmodes/testsprite2_blendmodes.parameters delete mode 100644 visualtest/configs/testsprite2_crashtest/testsprite2_crashtest.actions delete mode 100644 visualtest/configs/testsprite2_crashtest/testsprite2_crashtest.config delete mode 100644 visualtest/configs/testsprite2_crashtest/testsprite2_crashtest.parameters delete mode 100644 visualtest/configs/testsprite2_fullscreen/testsprite2_fullscreen.actions delete mode 100644 visualtest/configs/testsprite2_fullscreen/testsprite2_fullscreen.config delete mode 100644 visualtest/configs/testsprite2_fullscreen/testsprite2_fullscreen.parameters delete mode 100644 visualtest/configs/testsprite2_geometry/testsprite2_geometry.actions delete mode 100644 visualtest/configs/testsprite2_geometry/testsprite2_geometry.config delete mode 100644 visualtest/configs/testsprite2_geometry/testsprite2_geometry.parameters delete mode 100755 visualtest/configure delete mode 100644 visualtest/configure.ac delete mode 100644 visualtest/docs/Doxyfile delete mode 100644 visualtest/include/SDL_visualtest_action_configparser.h delete mode 100644 visualtest/include/SDL_visualtest_exhaustive_variator.h delete mode 100644 visualtest/include/SDL_visualtest_harness_argparser.h delete mode 100644 visualtest/include/SDL_visualtest_mischelper.h delete mode 100644 visualtest/include/SDL_visualtest_parsehelper.h delete mode 100644 visualtest/include/SDL_visualtest_process.h delete mode 100644 visualtest/include/SDL_visualtest_random_variator.h delete mode 100644 visualtest/include/SDL_visualtest_rwhelper.h delete mode 100644 visualtest/include/SDL_visualtest_screenshot.h delete mode 100644 visualtest/include/SDL_visualtest_sut_configparser.h delete mode 100644 visualtest/include/SDL_visualtest_variator_common.h delete mode 100644 visualtest/include/SDL_visualtest_variators.h delete mode 100644 visualtest/launch_harness.cmd delete mode 100755 visualtest/launch_harness.sh delete mode 100644 visualtest/src/action_configparser.c delete mode 100644 visualtest/src/harness_argparser.c delete mode 100644 visualtest/src/linux/linux_process.c delete mode 100644 visualtest/src/mischelper.c delete mode 100644 visualtest/src/parsehelper.c delete mode 100644 visualtest/src/rwhelper.c delete mode 100644 visualtest/src/screenshot.c delete mode 100644 visualtest/src/sut_configparser.c delete mode 100644 visualtest/src/testharness.c delete mode 100644 visualtest/src/variator_common.c delete mode 100644 visualtest/src/variator_exhaustive.c delete mode 100644 visualtest/src/variator_random.c delete mode 100644 visualtest/src/variators.c delete mode 100644 visualtest/src/windows/windows_process.c delete mode 100644 visualtest/src/windows/windows_screenshot.c delete mode 100644 visualtest/testsprite2_sample.actions delete mode 100644 visualtest/testsprite2_sample.config delete mode 100644 visualtest/testsprite2_sample.parameters delete mode 100644 visualtest/unittest/testquit.actions delete mode 100644 visualtest/unittest/testquit.c delete mode 100644 visualtest/unittest/testquit.config delete mode 100644 visualtest/unittest/testquit.parameters diff --git a/.gitignore b/.gitignore index a746abbc1..099b15322 100644 --- a/.gitignore +++ b/.gitignore @@ -88,15 +88,6 @@ VisualC/tests/testscale/icon.bmp VisualC/tests/testscale/sample.bmp VisualC/tests/testsprite2/icon.bmp VisualC/tests/testyuv/testyuv.bmp -VisualC/visualtest/icon.bmp -VisualC/visualtest/testquit.actions -VisualC/visualtest/testquit.config -VisualC/visualtest/testquit.exe -VisualC/visualtest/testquit.parameters -VisualC/visualtest/testsprite2.exe -VisualC/visualtest/testsprite2_sample.actions -VisualC/visualtest/testsprite2_sample.config -VisualC/visualtest/testsprite2_sample.parameters VisualC-GDK/**/Layout # for Android diff --git a/VisualC/visualtest/unittest/testquit/testquit_VS2012.vcxproj b/VisualC/visualtest/unittest/testquit/testquit_VS2012.vcxproj deleted file mode 100644 index 37fa03927..000000000 --- a/VisualC/visualtest/unittest/testquit/testquit_VS2012.vcxproj +++ /dev/null @@ -1,217 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - testquit - testquit - {1D12C737-7C71-45CE-AE2C-AAB47B690BC8} - 10.0 - - - - Application - false - $(DefaultPlatformToolset) - - - Application - false - MultiByte - $(DefaultPlatformToolset) - - - Application - false - $(DefaultPlatformToolset) - - - Application - false - $(DefaultPlatformToolset) - - - - - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.30319.1 - $(SolutionDir)\$(Platform)\$(Configuration)\ - $(SolutionDir)\$(Platform)\$(Configuration)\ - $(Platform)\$(Configuration)\ - $(Platform)\$(Configuration)\ - false - false - $(SolutionDir)\$(Platform)\$(Configuration)\ - $(SolutionDir)\$(Platform)\$(Configuration)\ - $(Platform)\$(Configuration)\ - $(Platform)\$(Configuration)\ - true - true - - - - NDEBUG;%(PreprocessorDefinitions) - true - true - Win32 - - - OnlyExplicitInline - ..\..\..\..\include;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) - true - MultiThreadedDLL - true - - - Level3 - true - Default - - - NDEBUG;%(PreprocessorDefinitions) - 0x0409 - - - true - Windows - - - - - NDEBUG;%(PreprocessorDefinitions) - true - true - - - OnlyExplicitInline - ..\..\..\..\include;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) - true - MultiThreadedDLL - true - - - Level3 - true - Default - - - NDEBUG;%(PreprocessorDefinitions) - 0x0409 - - - true - Windows - - - - - _DEBUG;%(PreprocessorDefinitions) - true - true - Win32 - - - Disabled - ..\..\..\..\include;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) - MultiThreadedDebugDLL - - - Level3 - true - EditAndContinue - Default - - - _DEBUG;%(PreprocessorDefinitions) - 0x0409 - - - true - true - Windows - false - - - - - _DEBUG;%(PreprocessorDefinitions) - true - true - - - Disabled - ..\..\..\..\include;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) - MultiThreadedDebugDLL - - - Level3 - true - ProgramDatabase - Default - - - _DEBUG;%(PreprocessorDefinitions) - 0x0409 - - - true - true - Windows - false - - - - - - - - {da956fd3-e142-46f2-9dd5-c78bebb56b7a} - - - {da956fd3-e143-46f2-9fe5-c77bebc56b1a} - - - {81ce8daf-ebb2-4761-8e45-b71abcca8c68} - - - - - - \ No newline at end of file diff --git a/VisualC/visualtest/visualtest_VS2012.vcxproj b/VisualC/visualtest/visualtest_VS2012.vcxproj deleted file mode 100644 index 6ad5b619d..000000000 --- a/VisualC/visualtest/visualtest_VS2012.vcxproj +++ /dev/null @@ -1,308 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - visualtest - visualtest - {13DDF23A-4A8F-4AF9-9734-CC09D9157924} - 10.0 - - - - Application - false - $(DefaultPlatformToolset) - - - Application - false - MultiByte - $(DefaultPlatformToolset) - - - Application - false - $(DefaultPlatformToolset) - - - Application - false - $(DefaultPlatformToolset) - - - - - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.30319.1 - $(SolutionDir)\$(Platform)\$(Configuration)\ - $(SolutionDir)\$(Platform)\$(Configuration)\ - $(Platform)\$(Configuration)\ - $(Platform)\$(Configuration)\ - false - false - $(SolutionDir)\$(Platform)\$(Configuration)\ - $(SolutionDir)\$(Platform)\$(Configuration)\ - $(Platform)\$(Configuration)\ - $(Platform)\$(Configuration)\ - true - true - - - testharness - - - - NDEBUG;%(PreprocessorDefinitions) - true - true - Win32 - - - OnlyExplicitInline - ..\..\include;..\..\visualtest\include;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) - true - MultiThreadedDLL - true - - - Level3 - true - Default - - - NDEBUG;%(PreprocessorDefinitions) - 0x0409 - - - true - Windows - kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;shlwapi.lib;%(AdditionalDependencies) - - - copy "$(SolutionDir)..\test\icon.bmp" "$(ProjectDir)icon.bmp" -copy "$(SolutionDir)\$(Platform)\$(Configuration)\testsprite2.exe" "$(ProjectDir)" -copy "$(SolutionDir)\$(Platform)\$(Configuration)\testquit.exe" "$(ProjectDir)" -copy /y "$(SolutionDir)..\visualtest\*.config" "$(ProjectDir)" -copy /y "$(SolutionDir)..\visualtest\*.parameters" "$(ProjectDir)" -copy /y "$(SolutionDir)..\visualtest\*.actions" "$(ProjectDir)" -copy /y "$(SolutionDir)..\visualtest\unittest\*.config" "$(ProjectDir)" -copy /y "$(SolutionDir)..\visualtest\unittest\*.parameters" "$(ProjectDir)" -copy /y "$(SolutionDir)..\visualtest\unittest\*.actions" "$(ProjectDir)" - - - Copy data files - - - - - NDEBUG;%(PreprocessorDefinitions) - true - true - - - OnlyExplicitInline - ..\..\include;..\..\visualtest\include;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) - true - MultiThreadedDLL - true - - - Level3 - true - Default - - - NDEBUG;%(PreprocessorDefinitions) - 0x0409 - - - true - Windows - kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;shlwapi.lib;%(AdditionalDependencies) - - - copy "$(SolutionDir)..\test\icon.bmp" "$(ProjectDir)icon.bmp" -copy "$(SolutionDir)\$(Platform)\$(Configuration)\testsprite2.exe" "$(ProjectDir)" -copy "$(SolutionDir)\$(Platform)\$(Configuration)\testquit.exe" "$(ProjectDir)" -copy /y "$(SolutionDir)..\visualtest\*.config" "$(ProjectDir)" -copy /y "$(SolutionDir)..\visualtest\*.parameters" "$(ProjectDir)" -copy /y "$(SolutionDir)..\visualtest\*.actions" "$(ProjectDir)" -copy /y "$(SolutionDir)..\visualtest\unittest\*.config" "$(ProjectDir)" -copy /y "$(SolutionDir)..\visualtest\unittest\*.parameters" "$(ProjectDir)" -copy /y "$(SolutionDir)..\visualtest\unittest\*.actions" "$(ProjectDir)" - - - Copy data files - - - - - _DEBUG;%(PreprocessorDefinitions) - true - true - Win32 - - - Disabled - ..\..\include;..\..\visualtest\include;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions) - MultiThreadedDebugDLL - - - Level3 - true - EditAndContinue - Default - false - - - _DEBUG;%(PreprocessorDefinitions) - 0x0409 - - - true - true - Windows - kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;shlwapi.lib;%(AdditionalDependencies) - false - - - copy "$(SolutionDir)..\test\icon.bmp" "$(ProjectDir)icon.bmp" -copy "$(SolutionDir)\$(Platform)\$(Configuration)\testsprite2.exe" "$(ProjectDir)" -copy "$(SolutionDir)\$(Platform)\$(Configuration)\testquit.exe" "$(ProjectDir)" -copy /y "$(SolutionDir)..\visualtest\*.config" "$(ProjectDir)" -copy /y "$(SolutionDir)..\visualtest\*.parameters" "$(ProjectDir)" -copy /y "$(SolutionDir)..\visualtest\*.actions" "$(ProjectDir)" -copy /y "$(SolutionDir)..\visualtest\unittest\*.config" "$(ProjectDir)" -copy /y "$(SolutionDir)..\visualtest\unittest\*.parameters" "$(ProjectDir)" -copy /y "$(SolutionDir)..\visualtest\unittest\*.actions" "$(ProjectDir)" - - - Copy data files - - - - - _DEBUG;%(PreprocessorDefinitions) - true - true - - - Disabled - ..\..\include;..\..\visualtest\include;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) - MultiThreadedDebugDLL - - - Level3 - true - ProgramDatabase - Default - - - _DEBUG;%(PreprocessorDefinitions) - 0x0409 - - - true - true - Windows - false - kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;shlwapi.lib;%(AdditionalDependencies) - - - copy "$(SolutionDir)..\test\icon.bmp" "$(ProjectDir)icon.bmp" -copy "$(SolutionDir)\$(Platform)\$(Configuration)\testsprite2.exe" "$(ProjectDir)" -copy "$(SolutionDir)\$(Platform)\$(Configuration)\testquit.exe" "$(ProjectDir)" -copy /y "$(SolutionDir)..\visualtest\*.config" "$(ProjectDir)" -copy /y "$(SolutionDir)..\visualtest\*.parameters" "$(ProjectDir)" -copy /y "$(SolutionDir)..\visualtest\*.actions" "$(ProjectDir)" -copy /y "$(SolutionDir)..\visualtest\unittest\*.config" "$(ProjectDir)" -copy /y "$(SolutionDir)..\visualtest\unittest\*.parameters" "$(ProjectDir)" -copy /y "$(SolutionDir)..\visualtest\unittest\*.actions" "$(ProjectDir)" - - - Copy data files - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {da956fd3-e142-46f2-9dd5-c78bebb56b7a} - - - {da956fd3-e143-46f2-9fe5-c77bebc56b1a} - - - {81ce8daf-ebb2-4761-8e45-b71abcca8c68} - - - - - - \ No newline at end of file diff --git a/visualtest/COPYING.txt b/visualtest/COPYING.txt deleted file mode 100644 index a92fe14bc..000000000 --- a/visualtest/COPYING.txt +++ /dev/null @@ -1,18 +0,0 @@ -Visual and Interactive Test Automation for SDL 3.0 -Copyright (C) 2013 Apoorv Upreti - -This software is provided 'as-is', without any express or implied -warranty. In no event will the authors be held liable for any damages -arising from the use of this software. - -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it -freely, subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not - claim that you wrote the original software. If you use this software - in a product, an acknowledgment in the product documentation would be - appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be - misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. diff --git a/visualtest/Makefile.in b/visualtest/Makefile.in deleted file mode 100644 index 3cf2f6df4..000000000 --- a/visualtest/Makefile.in +++ /dev/null @@ -1,44 +0,0 @@ -# Makefile to build the SDL tests - -srcdir = @srcdir@ -CC = @CC@ -EXE = @EXE@ -CFLAGS = @CFLAGS@ -I../include -I./include -LIBS = @LIBS@ - -TARGETS = \ - testharness$(EXE) \ - testquit$(EXE) - -all: Makefile $(TARGETS) - -Makefile: $(srcdir)/Makefile.in - $(SHELL) config.status $@ - -testharness$(EXE): $(srcdir)/src/action_configparser.c \ - $(srcdir)/src/harness_argparser.c \ - $(srcdir)/src/rwhelper.c \ - $(srcdir)/src/testharness.c \ - $(srcdir)/src/variator_exhaustive.c \ - $(srcdir)/src/variators.c \ - $(srcdir)/src/screenshot.c \ - $(srcdir)/src/harness_argparser.c \ - $(srcdir)/src/sut_configparser.c \ - $(srcdir)/src/variator_common.c \ - $(srcdir)/src/variator_random.c \ - $(srcdir)/src/parsehelper.c \ - $(srcdir)/src/mischelper.c \ - $(srcdir)/src/linux/linux_process.c \ - $(srcdir)/src/windows/windows_process.c \ - $(srcdir)/src/windows/windows_screenshot.c - $(CC) -o $@ $^ $(CFLAGS) $(LIBS) - -testquit$(EXE): $(srcdir)/unittest/testquit.c - $(CC) -o $@ $^ $(CFLAGS) $(LIBS) - -clean: - rm -f $(TARGETS) -distclean: clean - rm -f Makefile - rm -f config.status config.cache config.log - rm -rf $(srcdir)/autom4te* diff --git a/visualtest/README.txt b/visualtest/README.txt deleted file mode 100644 index 0d9a905f6..000000000 --- a/visualtest/README.txt +++ /dev/null @@ -1,214 +0,0 @@ -/*! - -\mainpage Visual and Interactive Test Automation for SDL 2.0 - -\section license_sec License -Check the file \c LICENSE.txt for licensing information. - -\section intro_sec Introduction -The goal of this GSoC project is to automate the testing of testsprite2. -testsprite2 takes 26 parameters which have thousands of valid combinations and is -used to validate SDL's window, mouse and rendering behaviour. By having a test -harness that runs testsprite2 with various command line argument strings and -validates the output for each run, we can make testing an easier task for -maintainers, contributors and testers. The test harness can be used by a continuous -integration system (like buildbot or jenkins) to validate SDL after checkins. - -SDL Homepage: http://libsdl.org/ - -\section build_sec Building - -\subsection build_linux Building on Linux/Cygwin -./autogen.sh; ./configure; make; - -\subsection build_windows Building on Windows -Use the Visual Studio solution under \c SDL/VisualC/visualtest. - -\section docs_sec Documentation -Documentation is available via Doxygen. To build the documentation, cd to the -SDL/visualtest/docs directory and run \c doxygen. A good starting point for -exploring the documentation is \c SDL/visualtest/docs/html/index.html - -\section usage_sec Usage -To see all the options supported by the test harness, just run \c testharness -with no arguments. - -At the moment the following options are supported: -\li \c sutapp - Path to the system under test (SUT) application -\li \c sutargs - Launch the SUT with the specified arguments string -\li \c timeout - The maximum time after which the SUT process will be killed; - passed as hh:mm:ss; default 00:01:00 -\li \c variator - Which variator to use; see \ref variators_sec -\li \c num-variations - The number of variations to run for; taken to be - 1 for the random variator and ALL for the exhaustive variator by default -\li \c no-launch - Just print the arguments string for each variation without - launching the SUT or performing any actions -\li \c parameter-config - A config file that describes the command line parameters - supported by the SUT; see \ref paramconfig_sec or the sample *.parameters files - for more details -\li \c action-config - A config file with a list of actions to be performed while - the SUT is running; see \ref actionconfig_sec or the sample *.actions files -\li \c output-dir - Path to the directory where screenshots should be saved; is - created if it doesn't exist; taken to be "./output" by default -\li \c verify-dir - Path to the directory with the verification images; taken to - be "./verify" by default - -Paths can be relative or absolute. - -Alternatively, the options can be passed as a config file for convenience: - -testharness \-\-config testsprite2_sample.config - -For a sample, take a look at the *.config files in this repository. - -We can also pass a config file and override certain options as necessary: -testharness \-\-config testsprite2_sample.config \-\-num-variations 10 - -Note: You may find it convenient to copy the SUT executable along with any -resources to the test harness directory. Also note that testsprite2 and its -resources (icon.bmp) are automatically copied when using the Visual Studio -solution. - -\subsection usageexamples_subsec Usage examples: - -Passing a custom arguments string: -testharness \-\-sutapp testsprite2 \-\-sutargs "\-\-cyclecolor \-\-blend mod -\-\-iterations 2" \-\-action-config xyz.actions - -Using the random variator: -testharness \-\-sutapp testsprite2 \-\-variator random \-\-num-variations 5 -\-\-parameter-config xyz.parameters \-\-action-config xyz.actions - -\subsection config_subsec Config Files -Config files are an alternate way to pass parameters to the test harness. We -describe the paramters in a config file and pass that to the test harness using -the \-\-config option. The config file consists of lines of the form "x=y" where -x is an option and y is it's value. For boolean options, we simply give the name -of the option to indicate that it is to be passed to the testharness. - -The hash '#' character can be used to start a comment from that point to the end -of the line. - -\section paramconfig_sec The SUT Parameters File -To generate variations we need to describe the parameters the will be passed to -the SUT. This description is given in a parameters file. Each line of the parameters -file (except the blank lines) represents one command line option with five -comma separated fields: -name, type, values, required, categories - -\li \c name is the name of the option, e.g., \c \-\-cyclecolor. -\li \c type can have one of three values - integer, boolean and enum. -\li \c values - for integer options this is the valid range of values the option - can take, i.e., [min max]. For enum options this is a list of strings that - the option can take, e.g., [val1 val2 val3]. For boolean options this field - is ignored. -\li \c required - true if the option is required, false otherwise. -\li \c categories - a list of categories that the option belongs to. For example, - [video mouse audio] - -Just like with config files, hash characters can be used to start comments. - -\subsection additionalnotes_subsec Additional Notes - -\li If you want to have an option that always takes a certain value, use an enum - with only one value. -\li Currently there isn't any way to turn an option off, i.e., all options will - be included in the command line options string that is generated using the - config. If you don't want an option to be passed to the SUT, remove it from - the config file or comment it out. - -\section variators_sec Variators -Variators are the mechanism by which we generate strings of command line arguments -to test the SUT with. A variator is quite simply an iterator that iterates through -different variations of command line options. There are two variators supported at -the moment: -\li \b Exhaustive - Generate all possible combinations of command line arguments - that are valid. -\li \b Random - Generate a random variation each time the variator is called. - -As an example, let's try a simple .parameters file:\n - -\-\-blend, enum, [add mod], false, [] \n -\-\-fullscreen, boolean, [], false, [] - - -The exhaustive variator would generate the following four variations:\n - -\-\-blend add \n -\-\-blend mod \n -\-\-blend add \-\-fullscreen \n -\-\-blend mod \-\-fullscreen \n - - -The random variator would simply generate a random variation like the following:\n -\-\-blend mod - -\section actionconfig_sec The Actions File -Once the SUT process has been launched, automated testing happens using a mechanism -called actions. A list of actions is read from a file and each action is performed -on the SUT process sequentially. Each line in the actions file describes an action. -The format for an action is hh:mm:ss ACTION_NAME additional parameters. -There are five actions supported at the moment: -\li \b SCREENSHOT - Takes a screenshot of each window owned by the SUT process. The - images are saved as \c [hash]_[i].bmp where \c [hash] is the 32 character long - hexadecimal MD5 hash of the arguments string that was passed to the SUT while - launching it and \c i is the window number. i = 1 is an exceptional case - where the \c _[i] is dropped and the filename is simply \c [hash].bmp\n - Note: The screenshots are only of the window's client area. -\li \b VERIFY - Verifies the screenshots taken by the last SCREENSHOT action by - comparing them against a verification image. Each \c [hash]_i.bmp image output - by the SCREENSHOT action is compared against a \c [hash].bmp image in the - verify-dir. -\li \b QUIT - Gracefully quits the SUT process. On Windows this means sending a - WM_CLOSE message to each window owned by the SUT process. On Linux it means - sending a SIGQUIT signal to the SUT process. -\li \b KILL - Forcefully kills the SUT process. This is useful when the SUT process - doesn't respond to the QUIT action. -\li LAUNCH [/path/to/executable] [args] - Runs an executable with \c [args] - as the arguments string. - -Just like with config files, hash characters can be used to start comments. - -\section contint_sec Continuous Integration (CI) -One of the goals of the project was to create a test harness that integrates -with CI systems to provide automated visual and interactive testing to SDL. - -At the moment the test harness can be run in two modes that are useful for CI: -\li Crash testing mode - launch the SUT with every variation and all parameters, - report to the CI if there's a crash -\li Visual testing mode - launch and visually verify the SUT for a smaller subset - of the parameters - -Look at the launch_harness.sh/launch_harness.cmd for an example scripts that run the -test harness for all variations with all parameters and report an error on a crash. -The script uses the testsprite2_crashtest config, so remember to copy those files -over to the test harness executable directory along with the script. - -\section todo_sec TODOs -\li Allow specifying a clipping box along with the VERIFY action, i.e., hh:mm:ss - VERIFY x, y, w, h -\li Add support for spaces between the equals sign in test harness config files -\li Implement the SCREENSHOT action on Linux -\li Add a pairwise variator -\li Add actions to inject keyboard/mouse events -\li Add actions to manipulate the SUT window, e.g., minimize, restore, resize -\li Add support to load and save screenshots as .pngs instead of .bmps - -\section issues_sec Known Issues -\li The QUIT action does not work on a testsprite2 process with multiple windows. - This appears to be an issue with testsprite2. -\li The SCREENSHOT action doesn't capture the testsprite2 window correctly if the - --fullscreen option is supplied. It works with --fullscreen-desktop, however. - -\section moreinfo_sec More Information - -Author Contact Info:\n -Apoorv Upreti \c \ - -Other useful links: -- Project Repository: https://bitbucket.org/nerdap/sdlvisualtest -- Project Wiki: https://github.com/nerdap/autotestsprite2/wiki -- Project Blog: http://nerdap.github.io -- Verification images for testsprite2_blendmodes: https://www.dropbox.com/s/nm02aem76m812ng/testsprite2_blendmodes.zip -- Verification images for testsprite2_geometry: https://www.dropbox.com/s/csypwryopaslpaf/testsprite2_geometry.zip -*/ diff --git a/visualtest/acinclude.m4 b/visualtest/acinclude.m4 deleted file mode 100644 index 3dd4058ea..000000000 --- a/visualtest/acinclude.m4 +++ /dev/null @@ -1,337 +0,0 @@ -# Configure paths for SDL -# Sam Lantinga 9/21/99 -# stolen from Manish Singh -# stolen back from Frank Belew -# stolen from Manish Singh -# Shamelessly stolen from Owen Taylor - -# serial 2 - -dnl AM_PATH_SDL3([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) -dnl Test for SDL, and define SDL_CFLAGS and SDL_LIBS -dnl -AC_DEFUN([AM_PATH_SDL3], -[dnl -dnl Get the cflags and libraries from the sdl3-config script -dnl -AC_ARG_WITH(sdl-prefix,[ --with-sdl-prefix=PFX Prefix where SDL is installed (optional)], - sdl_prefix="$withval", sdl_prefix="") -AC_ARG_WITH(sdl-exec-prefix,[ --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)], - sdl_exec_prefix="$withval", sdl_exec_prefix="") -AC_ARG_ENABLE(sdltest, [ --disable-sdltest Do not try to compile and run a test SDL program], - , enable_sdltest=yes) - - min_sdl_version=ifelse([$1], ,3.0.0,$1) - - if test "x$sdl_prefix$sdl_exec_prefix" = x ; then - PKG_CHECK_MODULES([SDL], [sdl3 >= $min_sdl_version], - [sdl_pc=yes], - [sdl_pc=no]) - else - sdl_pc=no - if test x$sdl_exec_prefix != x ; then - sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix" - if test x${SDL3_CONFIG+set} != xset ; then - SDL3_CONFIG=$sdl_exec_prefix/bin/sdl3-config - fi - fi - if test x$sdl_prefix != x ; then - sdl_config_args="$sdl_config_args --prefix=$sdl_prefix" - if test x${SDL3_CONFIG+set} != xset ; then - SDL3_CONFIG=$sdl_prefix/bin/sdl3-config - fi - fi - fi - - if test "x$sdl_pc" = xyes ; then - no_sdl="" - SDL3_CONFIG="pkg-config sdl3" - else - as_save_PATH="$PATH" - if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then - PATH="$prefix/bin:$prefix/usr/bin:$PATH" - fi - AC_PATH_PROG(SDL3_CONFIG, sdl3-config, no, [$PATH]) - PATH="$as_save_PATH" - AC_MSG_CHECKING(for SDL - version >= $min_sdl_version) - no_sdl="" - - if test "$SDL3_CONFIG" = "no" ; then - no_sdl=yes - else - SDL_CFLAGS=`$SDL3_CONFIG $sdl_config_args --cflags` - SDL_LIBS=`$SDL3_CONFIG $sdl_config_args --libs` - - sdl_major_version=`$SDL3_CONFIG $sdl_config_args --version | \ - sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` - sdl_minor_version=`$SDL3_CONFIG $sdl_config_args --version | \ - sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` - sdl_micro_version=`$SDL3_CONFIG $sdl_config_args --version | \ - sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` - if test "x$enable_sdltest" = "xyes" ; then - ac_save_CFLAGS="$CFLAGS" - ac_save_CXXFLAGS="$CXXFLAGS" - ac_save_LIBS="$LIBS" - CFLAGS="$CFLAGS $SDL_CFLAGS" - CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" - LIBS="$LIBS $SDL_LIBS" -dnl -dnl Now check if the installed SDL is sufficiently new. (Also sanity -dnl checks the results of sdl3-config to some extent -dnl - rm -f conf.sdltest - AC_RUN_IFELSE([AC_LANG_SOURCE([[ -#include -#include -#include "SDL.h" - -int main (int argc, char *argv[]) -{ - int major, minor, micro; - FILE *fp = fopen("conf.sdltest", "w"); - - if (fp) fclose(fp); - - if (sscanf("$min_sdl_version", "%d.%d.%d", &major, &minor, µ) != 3) { - printf("%s, bad version string\n", "$min_sdl_version"); - exit(1); - } - - if (($sdl_major_version > major) || - (($sdl_major_version == major) && ($sdl_minor_version > minor)) || - (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) - { - return 0; - } - else - { - printf("\n*** 'sdl3-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); - printf("*** of SDL required is %d.%d.%d. If sdl3-config is correct, then it is\n", major, minor, micro); - printf("*** best to upgrade to the required version.\n"); - printf("*** If sdl3-config was wrong, set the environment variable SDL3_CONFIG\n"); - printf("*** to point to the correct copy of sdl3-config, and remove the file\n"); - printf("*** config.cache before re-running configure\n"); - return 1; - } -} - -]])], [], [no_sdl=yes], [echo $ac_n "cross compiling; assumed OK... $ac_c"]) - CFLAGS="$ac_save_CFLAGS" - CXXFLAGS="$ac_save_CXXFLAGS" - LIBS="$ac_save_LIBS" - fi - fi - if test "x$no_sdl" = x ; then - AC_MSG_RESULT(yes) - else - AC_MSG_RESULT(no) - fi - fi - if test "x$no_sdl" = x ; then - ifelse([$2], , :, [$2]) - else - if test "$SDL3_CONFIG" = "no" ; then - echo "*** The sdl3-config script installed by SDL could not be found" - echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" - echo "*** your path, or set the SDL3_CONFIG environment variable to the" - echo "*** full path to sdl3-config." - else - if test -f conf.sdltest ; then - : - else - echo "*** Could not run SDL test program, checking why..." - CFLAGS="$CFLAGS $SDL_CFLAGS" - CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" - LIBS="$LIBS $SDL_LIBS" - AC_LINK_IFELSE([AC_LANG_PROGRAM([[ -#include -#include "SDL.h" - -int main(int argc, char *argv[]) -{ return 0; } -#undef main -#define main K_and_R_C_main -]], [[ return 0; ]])], - [ echo "*** The test program compiled, but did not run. This usually means" - echo "*** that the run-time linker is not finding SDL or finding the wrong" - echo "*** version of SDL. If it is not finding SDL, you'll need to set your" - echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" - echo "*** to the installed location Also, make sure you have run ldconfig if that" - echo "*** is required on your system" - echo "***" - echo "*** If you have an old version installed, it is best to remove it, although" - echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"], - [ echo "*** The test program failed to compile or link. See the file config.log for the" - echo "*** exact error that occured. This usually means SDL was incorrectly installed" - echo "*** or that you have moved SDL since it was installed. In the latter case, you" - echo "*** may want to edit the sdl3-config script: $SDL3_CONFIG" ]) - CFLAGS="$ac_save_CFLAGS" - CXXFLAGS="$ac_save_CXXFLAGS" - LIBS="$ac_save_LIBS" - fi - fi - SDL_CFLAGS="" - SDL_LIBS="" - ifelse([$3], , :, [$3]) - fi - AC_SUBST(SDL_CFLAGS) - AC_SUBST(SDL_LIBS) - rm -f conf.sdltest -]) -# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- -# serial 1 (pkg-config-0.24) -# -# Copyright © 2004 Scott James Remnant . -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# PKG_PROG_PKG_CONFIG([MIN-VERSION]) -# ---------------------------------- -AC_DEFUN([PKG_PROG_PKG_CONFIG], -[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) -m4_pattern_allow([^PKG_CONFIG(_PATH|_LIBDIR)?$]) -AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) -AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) -AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) - -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then - AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) -fi -if test -n "$PKG_CONFIG"; then - _pkg_min_version=m4_default([$1], [0.9.0]) - AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) - PKG_CONFIG="" - fi -fi[]dnl -])# PKG_PROG_PKG_CONFIG - -# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) -# -# Check to see whether a particular set of modules exists. Similar -# to PKG_CHECK_MODULES(), but does not set variables or print errors. -# -# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) -# only at the first occurence in configure.ac, so if the first place -# it's called might be skipped (such as if it is within an "if", you -# have to call PKG_CHECK_EXISTS manually -# -------------------------------------------------------------- -AC_DEFUN([PKG_CHECK_EXISTS], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl -if test -n "$PKG_CONFIG" && \ - AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then - m4_default([$2], [:]) -m4_ifvaln([$3], [else - $3])dnl -fi]) - -# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) -# --------------------------------------------- -m4_define([_PKG_CONFIG], -[if test -n "$$1"; then - pkg_cv_[]$1="$$1" - elif test -n "$PKG_CONFIG"; then - PKG_CHECK_EXISTS([$3], - [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], - [pkg_failed=yes]) - else - pkg_failed=untried -fi[]dnl -])# _PKG_CONFIG - -# _PKG_SHORT_ERRORS_SUPPORTED -# ----------------------------- -AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi[]dnl -])# _PKG_SHORT_ERRORS_SUPPORTED - - -# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], -# [ACTION-IF-NOT-FOUND]) -# -# -# Note that if there is a possibility the first call to -# PKG_CHECK_MODULES might not happen, you should be sure to include an -# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac -# -# -# -------------------------------------------------------------- -AC_DEFUN([PKG_CHECK_MODULES], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl -AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl -AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl - -pkg_failed=no -AC_MSG_CHECKING([for $2]) - -_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) -_PKG_CONFIG([$1][_LIBS], [libs], [$2]) - -m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS -and $1[]_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details.]) - -if test $pkg_failed = yes; then - AC_MSG_RESULT([no]) - _PKG_SHORT_ERRORS_SUPPORTED - if test $_pkg_short_errors_supported = yes; then - $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` - else - $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD - - m4_default([$4], [AC_MSG_ERROR( -[Package requirements ($2) were not met: - -$$1_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. - -_PKG_TEXT])[]dnl - ]) -elif test $pkg_failed = untried; then - AC_MSG_RESULT([no]) - m4_default([$4], [AC_MSG_FAILURE( -[The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. - -_PKG_TEXT - -To get pkg-config, see .])[]dnl - ]) -else - $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS - $1[]_LIBS=$pkg_cv_[]$1[]_LIBS - AC_MSG_RESULT([yes]) - $3 -fi[]dnl -])# PKG_CHECK_MODULES diff --git a/visualtest/autogen.sh b/visualtest/autogen.sh deleted file mode 100755 index 988d41760..000000000 --- a/visualtest/autogen.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -cp acinclude.m4 aclocal.m4 - -if test "$AUTOCONF"x = x; then - AUTOCONF=autoconf -fi - -$AUTOCONF || exit 1 -rm aclocal.m4 -rm -rf autom4te.cache diff --git a/visualtest/configs/testsprite2_blendmodes/testsprite2_blendmodes.actions b/visualtest/configs/testsprite2_blendmodes/testsprite2_blendmodes.actions deleted file mode 100644 index ef54e86b4..000000000 --- a/visualtest/configs/testsprite2_blendmodes/testsprite2_blendmodes.actions +++ /dev/null @@ -1,3 +0,0 @@ -00:00:03 SCREENSHOT -00:00:06 VERIFY -00:00:09 QUIT \ No newline at end of file diff --git a/visualtest/configs/testsprite2_blendmodes/testsprite2_blendmodes.config b/visualtest/configs/testsprite2_blendmodes/testsprite2_blendmodes.config deleted file mode 100644 index 0d707bcbc..000000000 --- a/visualtest/configs/testsprite2_blendmodes/testsprite2_blendmodes.config +++ /dev/null @@ -1,5 +0,0 @@ -parameter-config=testsprite2_blendmodes.parameters -variator=exhaustive -sutapp=testsprite2 -timeout=00:00:15 -action-config=testsprite2_blendmodes.actions \ No newline at end of file diff --git a/visualtest/configs/testsprite2_blendmodes/testsprite2_blendmodes.parameters b/visualtest/configs/testsprite2_blendmodes/testsprite2_blendmodes.parameters deleted file mode 100644 index a5df29c8c..000000000 --- a/visualtest/configs/testsprite2_blendmodes/testsprite2_blendmodes.parameters +++ /dev/null @@ -1,5 +0,0 @@ -# parameter name, type, value range, required, categories ---blend, enum, [none blend add mod], false, [] ---cyclecolor, boolean, [], false, [] ---cyclealpha, boolean, [], false, [] ---iterations, integer, [1000 1000], true, [] \ No newline at end of file diff --git a/visualtest/configs/testsprite2_crashtest/testsprite2_crashtest.actions b/visualtest/configs/testsprite2_crashtest/testsprite2_crashtest.actions deleted file mode 100644 index 75af9d75d..000000000 --- a/visualtest/configs/testsprite2_crashtest/testsprite2_crashtest.actions +++ /dev/null @@ -1 +0,0 @@ -00:00:02 QUIT \ No newline at end of file diff --git a/visualtest/configs/testsprite2_crashtest/testsprite2_crashtest.config b/visualtest/configs/testsprite2_crashtest/testsprite2_crashtest.config deleted file mode 100644 index c8f07ca9f..000000000 --- a/visualtest/configs/testsprite2_crashtest/testsprite2_crashtest.config +++ /dev/null @@ -1,5 +0,0 @@ -parameter-config=testsprite2_crashtest.parameters -variator=exhaustive -sutapp=testsprite2 -timeout=00:00:10 -action-config=testsprite2_crashtest.actions \ No newline at end of file diff --git a/visualtest/configs/testsprite2_crashtest/testsprite2_crashtest.parameters b/visualtest/configs/testsprite2_crashtest/testsprite2_crashtest.parameters deleted file mode 100644 index e89ce60ab..000000000 --- a/visualtest/configs/testsprite2_crashtest/testsprite2_crashtest.parameters +++ /dev/null @@ -1,24 +0,0 @@ -# parameter name, type, value range, required, categories ---display, integer, [1 5], false, [] ---fullscreen, boolean, [], false, [] ---fullscreen-desktop, boolean, [], false, [] ---title, enum, [vartest bartest footest], false, [] ---icon, enum, [icon.bmp], false, [] ---center, boolean, [], false, [] ---position, enum, [300,300], false, [] ---geometry, enum, [500x500], false, [] ---min-geometry, enum, [100x100 200x200], false, [] ---max-geometry, enum, [600x600 700x700], false, [] ---logical, enum, [500x500 550x450], false, [] ---scale, integer, [1 5], false, [] ---depth, integer, [1 5], false, [] ---refresh, integer, [1 5], false, [] ---vsync, boolean, [], false, [] ---noframe, boolean, [], false, [] ---resize, boolean, [], false, [] ---minimize, boolean, [], false, [] ---maximize, boolean, [], false, [] ---grab, boolean, [], false, [mouse] ---blend, enum, [none blend add mod], false, [] ---cyclecolor, boolean, [], false, [] ---cyclealpha, boolean, [], false, [] \ No newline at end of file diff --git a/visualtest/configs/testsprite2_fullscreen/testsprite2_fullscreen.actions b/visualtest/configs/testsprite2_fullscreen/testsprite2_fullscreen.actions deleted file mode 100644 index ef54e86b4..000000000 --- a/visualtest/configs/testsprite2_fullscreen/testsprite2_fullscreen.actions +++ /dev/null @@ -1,3 +0,0 @@ -00:00:03 SCREENSHOT -00:00:06 VERIFY -00:00:09 QUIT \ No newline at end of file diff --git a/visualtest/configs/testsprite2_fullscreen/testsprite2_fullscreen.config b/visualtest/configs/testsprite2_fullscreen/testsprite2_fullscreen.config deleted file mode 100644 index 361020ac0..000000000 --- a/visualtest/configs/testsprite2_fullscreen/testsprite2_fullscreen.config +++ /dev/null @@ -1,5 +0,0 @@ -parameter-config=testsprite2_fullscreen.parameters -variator=exhaustive -sutapp=testsprite2 -timeout=00:00:15 -action-config=testsprite2_fullscreen.actions \ No newline at end of file diff --git a/visualtest/configs/testsprite2_fullscreen/testsprite2_fullscreen.parameters b/visualtest/configs/testsprite2_fullscreen/testsprite2_fullscreen.parameters deleted file mode 100644 index 8da19673e..000000000 --- a/visualtest/configs/testsprite2_fullscreen/testsprite2_fullscreen.parameters +++ /dev/null @@ -1,5 +0,0 @@ -# parameter name, type, value range, required, categories ---blend, enum, [none blend add mod], false, [] ---fullscreen, boolean, [], false, [] ---fullscreen-desktop, boolean, [], false, [] ---iterations, integer, [1000 1000], true, [] \ No newline at end of file diff --git a/visualtest/configs/testsprite2_geometry/testsprite2_geometry.actions b/visualtest/configs/testsprite2_geometry/testsprite2_geometry.actions deleted file mode 100644 index ef54e86b4..000000000 --- a/visualtest/configs/testsprite2_geometry/testsprite2_geometry.actions +++ /dev/null @@ -1,3 +0,0 @@ -00:00:03 SCREENSHOT -00:00:06 VERIFY -00:00:09 QUIT \ No newline at end of file diff --git a/visualtest/configs/testsprite2_geometry/testsprite2_geometry.config b/visualtest/configs/testsprite2_geometry/testsprite2_geometry.config deleted file mode 100644 index f3cda9ac1..000000000 --- a/visualtest/configs/testsprite2_geometry/testsprite2_geometry.config +++ /dev/null @@ -1,5 +0,0 @@ -parameter-config=testsprite2_geometry.parameters -variator=exhaustive -sutapp=testsprite2 -timeout=00:00:15 -action-config=testsprite2_geometry.actions \ No newline at end of file diff --git a/visualtest/configs/testsprite2_geometry/testsprite2_geometry.parameters b/visualtest/configs/testsprite2_geometry/testsprite2_geometry.parameters deleted file mode 100644 index c1ac8ef37..000000000 --- a/visualtest/configs/testsprite2_geometry/testsprite2_geometry.parameters +++ /dev/null @@ -1,5 +0,0 @@ -# parameter name, type, value range, required, categories ---geometry, enum, [500x500 600x600], false, [] ---logical, enum, [300x500 550x450], false, [] ---scale, integer, [1 5], false, [] ---iterations, integer, [1000 1000], true, [] \ No newline at end of file diff --git a/visualtest/configure b/visualtest/configure deleted file mode 100755 index b9576830a..000000000 --- a/visualtest/configure +++ /dev/null @@ -1,4442 +0,0 @@ -#! /bin/sh -# Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69. -# -# -# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. -# -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. -## -------------------- ## -## M4sh Initialization. ## -## -------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in #( - *posix*) : - set -o posix ;; #( - *) : - ;; -esac -fi - - -as_nl=' -' -export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in #( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - PATH_SEPARATOR=: - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { - (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || - PATH_SEPARATOR=';' - } -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -as_myself= -case $0 in #(( - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break - done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - exit 1 -fi - -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -# Use a proper internal environment variable to ensure we don't fall - # into an infinite loop, continuously re-executing ourselves. - if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then - _as_can_reexec=no; export _as_can_reexec; - # We cannot yet assume a decent shell, so we have to provide a -# neutralization value for shells without unset; and this also -# works around shells that cannot unset nonexistent variables. -# Preserve -v and -x to the replacement shell. -BASH_ENV=/dev/null -ENV=/dev/null -(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV -case $- in # (((( - *v*x* | *x*v* ) as_opts=-vx ;; - *v* ) as_opts=-v ;; - *x* ) as_opts=-x ;; - * ) as_opts= ;; -esac -exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} -# Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 -as_fn_exit 255 - fi - # We don't want this to propagate to other subprocesses. - { _as_can_reexec=; unset _as_can_reexec;} -if test "x$CONFIG_SHELL" = x; then - as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which - # is contrary to our usage. Disable this feature. - alias -g '\${1+\"\$@\"}'='\"\$@\"' - setopt NO_GLOB_SUBST -else - case \`(set -o) 2>/dev/null\` in #( - *posix*) : - set -o posix ;; #( - *) : - ;; -esac -fi -" - as_required="as_fn_return () { (exit \$1); } -as_fn_success () { as_fn_return 0; } -as_fn_failure () { as_fn_return 1; } -as_fn_ret_success () { return 0; } -as_fn_ret_failure () { return 1; } - -exitcode=0 -as_fn_success || { exitcode=1; echo as_fn_success failed.; } -as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } -as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } -as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } -if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : - -else - exitcode=1; echo positional parameters were not saved. -fi -test x\$exitcode = x0 || exit 1 -test -x / || exit 1" - as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO - as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO - eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && - test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" - if (eval "$as_required") 2>/dev/null; then : - as_have_required=yes -else - as_have_required=no -fi - if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : - -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -as_found=false -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - as_found=: - case $as_dir in #( - /*) - for as_base in sh bash ksh sh5; do - # Try only shells that exist, to save several forks. - as_shell=$as_dir/$as_base - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : - CONFIG_SHELL=$as_shell as_have_required=yes - if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : - break 2 -fi -fi - done;; - esac - as_found=false -done -$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : - CONFIG_SHELL=$SHELL as_have_required=yes -fi; } -IFS=$as_save_IFS - - - if test "x$CONFIG_SHELL" != x; then : - export CONFIG_SHELL - # We cannot yet assume a decent shell, so we have to provide a -# neutralization value for shells without unset; and this also -# works around shells that cannot unset nonexistent variables. -# Preserve -v and -x to the replacement shell. -BASH_ENV=/dev/null -ENV=/dev/null -(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV -case $- in # (((( - *v*x* | *x*v* ) as_opts=-vx ;; - *v* ) as_opts=-v ;; - *x* ) as_opts=-x ;; - * ) as_opts= ;; -esac -exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} -# Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 -exit 255 -fi - - if test x$as_have_required = xno; then : - $as_echo "$0: This script requires a shell more modern than all" - $as_echo "$0: the shells that I found on your system." - if test x${ZSH_VERSION+set} = xset ; then - $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" - $as_echo "$0: be upgraded to zsh 4.3.4 or later." - else - $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, -$0: including any error possibly output before this -$0: message. Then install a modern shell, or manually run -$0: the script under such a shell if you do have one." - fi - exit 1 -fi -fi -fi -SHELL=${CONFIG_SHELL-/bin/sh} -export SHELL -# Unset more variables known to interfere with behavior of common tools. -CLICOLOR_FORCE= GREP_OPTIONS= -unset CLICOLOR_FORCE GREP_OPTIONS - -## --------------------- ## -## M4sh Shell Functions. ## -## --------------------- ## -# as_fn_unset VAR -# --------------- -# Portably unset VAR. -as_fn_unset () -{ - { eval $1=; unset $1;} -} -as_unset=as_fn_unset - -# as_fn_set_status STATUS -# ----------------------- -# Set $? to STATUS, without forking. -as_fn_set_status () -{ - return $1 -} # as_fn_set_status - -# as_fn_exit STATUS -# ----------------- -# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. -as_fn_exit () -{ - set +e - as_fn_set_status $1 - exit $1 -} # as_fn_exit - -# as_fn_mkdir_p -# ------------- -# Create "$as_dir" as a directory, including parents if necessary. -as_fn_mkdir_p () -{ - - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || eval $as_mkdir_p || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" - - -} # as_fn_mkdir_p - -# as_fn_executable_p FILE -# ----------------------- -# Test if FILE is an executable regular file. -as_fn_executable_p () -{ - test -f "$1" && test -x "$1" -} # as_fn_executable_p -# as_fn_append VAR VALUE -# ---------------------- -# Append the text in VALUE to the end of the definition contained in VAR. Take -# advantage of any shell optimizations that allow amortized linear growth over -# repeated appends, instead of the typical quadratic growth present in naive -# implementations. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : - eval 'as_fn_append () - { - eval $1+=\$2 - }' -else - as_fn_append () - { - eval $1=\$$1\$2 - } -fi # as_fn_append - -# as_fn_arith ARG... -# ------------------ -# Perform arithmetic evaluation on the ARGs, and store the result in the -# global $as_val. Take advantage of shells that can avoid forks. The arguments -# must be portable across $(()) and expr. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : - eval 'as_fn_arith () - { - as_val=$(( $* )) - }' -else - as_fn_arith () - { - as_val=`expr "$@" || test $? -eq 1` - } -fi # as_fn_arith - - -# as_fn_error STATUS ERROR [LINENO LOG_FD] -# ---------------------------------------- -# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are -# provided, also output the error to LOG_FD, referencing LINENO. Then exit the -# script with STATUS, using 1 if that was 0. -as_fn_error () -{ - as_status=$1; test $as_status -eq 0 && as_status=1 - if test "$4"; then - as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 - fi - $as_echo "$as_me: error: $2" >&2 - as_fn_exit $as_status -} # as_fn_error - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - - - as_lineno_1=$LINENO as_lineno_1a=$LINENO - as_lineno_2=$LINENO as_lineno_2a=$LINENO - eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && - test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { - # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } - - # If we had to re-execute with $CONFIG_SHELL, we're ensured to have - # already done that, so ensure we don't try to do so again and fall - # in an infinite loop. This has already happened in practice. - _as_can_reexec=no; export _as_can_reexec - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in #((((( --n*) - case `echo 'xy\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - xy) ECHO_C='\c';; - *) echo `echo ksh88 bug on AIX 6.1` > /dev/null - ECHO_T=' ';; - esac;; -*) - ECHO_N='-n';; -esac - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir 2>/dev/null -fi -if (echo >conf$$.file) 2>/dev/null; then - if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -pR' - elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln - else - as_ln_s='cp -pR' - fi -else - as_ln_s='cp -pR' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p='mkdir -p "$as_dir"' -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -as_test_x='test -x' -as_executable_p=as_fn_executable_p - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -test -n "$DJDIR" || exec 7<&0 &1 - -# Name of the host. -# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, -# so uname gets run too. -ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` - -# -# Initializations. -# -ac_default_prefix=/usr/local -ac_clean_files= -ac_config_libobj_dir=. -LIBOBJS= -cross_compiling=no -subdirs= -MFLAGS= -MAKEFLAGS= - -# Identity of this package. -PACKAGE_NAME= -PACKAGE_TARNAME= -PACKAGE_VERSION= -PACKAGE_STRING= -PACKAGE_BUGREPORT= -PACKAGE_URL= - -ac_unique_file="unittest/testquit.c" -ac_subst_vars='LTLIBOBJS -LIBOBJS -LIBUNWIND_LIBS -LIBUNWIND_CFLAGS -SDL3_CONFIG -SDL_LIBS -SDL_CFLAGS -PKG_CONFIG_LIBDIR -PKG_CONFIG_PATH -PKG_CONFIG -EXE -OBJEXT -EXEEXT -ac_ct_CC -CPPFLAGS -LDFLAGS -CFLAGS -CC -host_os -host_vendor -host_cpu -host -build_os -build_vendor -build_cpu -build -target_alias -host_alias -build_alias -LIBS -ECHO_T -ECHO_N -ECHO_C -DEFS -mandir -localedir -libdir -psdir -pdfdir -dvidir -htmldir -infodir -docdir -oldincludedir -includedir -localstatedir -sharedstatedir -sysconfdir -datadir -datarootdir -libexecdir -sbindir -bindir -program_transform_name -prefix -exec_prefix -PACKAGE_URL -PACKAGE_BUGREPORT -PACKAGE_STRING -PACKAGE_VERSION -PACKAGE_TARNAME -PACKAGE_NAME -PATH_SEPARATOR -SHELL' -ac_subst_files='' -ac_user_opts=' -enable_option_checking -with_sdl_prefix -with_sdl_exec_prefix -enable_sdltest -' - ac_precious_vars='build_alias -host_alias -target_alias -CC -CFLAGS -LDFLAGS -LIBS -CPPFLAGS -PKG_CONFIG -PKG_CONFIG_PATH -PKG_CONFIG_LIBDIR -SDL_CFLAGS -SDL_LIBS -LIBUNWIND_CFLAGS -LIBUNWIND_LIBS' - - -# Initialize some variables set by options. -ac_init_help= -ac_init_version=false -ac_unrecognized_opts= -ac_unrecognized_sep= -# The variables have the same names as the options, with -# dashes changed to underlines. -cache_file=/dev/null -exec_prefix=NONE -no_create= -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -verbose= -x_includes=NONE -x_libraries=NONE - -# Installation directory options. -# These are left unexpanded so users can "make install exec_prefix=/foo" -# and all the variables that are supposed to be based on exec_prefix -# by default will actually change. -# Use braces instead of parens because sh, perl, etc. also accept them. -# (The list follows the same order as the GNU Coding Standards.) -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datarootdir='${prefix}/share' -datadir='${datarootdir}' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -includedir='${prefix}/include' -oldincludedir='/usr/include' -docdir='${datarootdir}/doc/${PACKAGE}' -infodir='${datarootdir}/info' -htmldir='${docdir}' -dvidir='${docdir}' -pdfdir='${docdir}' -psdir='${docdir}' -libdir='${exec_prefix}/lib' -localedir='${datarootdir}/locale' -mandir='${datarootdir}/man' - -ac_prev= -ac_dashdash= -for ac_option -do - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval $ac_prev=\$ac_option - ac_prev= - continue - fi - - case $ac_option in - *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; - *=) ac_optarg= ;; - *) ac_optarg=yes ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case $ac_dashdash$ac_option in - --) - ac_dashdash=yes ;; - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir=$ac_optarg ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build_alias ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build_alias=$ac_optarg ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file=$ac_optarg ;; - - --config-cache | -C) - cache_file=config.cache ;; - - -datadir | --datadir | --datadi | --datad) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=*) - datadir=$ac_optarg ;; - - -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ - | --dataroo | --dataro | --datar) - ac_prev=datarootdir ;; - -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ - | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) - datarootdir=$ac_optarg ;; - - -disable-* | --disable-*) - ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: $ac_useropt" - ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` - case $ac_user_opts in - *" -"enable_$ac_useropt" -"*) ;; - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" - ac_unrecognized_sep=', ';; - esac - eval enable_$ac_useropt=no ;; - - -docdir | --docdir | --docdi | --doc | --do) - ac_prev=docdir ;; - -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) - docdir=$ac_optarg ;; - - -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) - ac_prev=dvidir ;; - -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) - dvidir=$ac_optarg ;; - - -enable-* | --enable-*) - ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: $ac_useropt" - ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` - case $ac_user_opts in - *" -"enable_$ac_useropt" -"*) ;; - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" - ac_unrecognized_sep=', ';; - esac - eval enable_$ac_useropt=\$ac_optarg ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix=$ac_optarg ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he | -h) - ac_init_help=long ;; - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) - ac_init_help=recursive ;; - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) - ac_init_help=short ;; - - -host | --host | --hos | --ho) - ac_prev=host_alias ;; - -host=* | --host=* | --hos=* | --ho=*) - host_alias=$ac_optarg ;; - - -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) - ac_prev=htmldir ;; - -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ - | --ht=*) - htmldir=$ac_optarg ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir=$ac_optarg ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir=$ac_optarg ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir=$ac_optarg ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir=$ac_optarg ;; - - -localedir | --localedir | --localedi | --localed | --locale) - ac_prev=localedir ;; - -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) - localedir=$ac_optarg ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst | --locals) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) - localstatedir=$ac_optarg ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir=$ac_optarg ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c | -n) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir=$ac_optarg ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix=$ac_optarg ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix=$ac_optarg ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name=$ac_optarg ;; - - -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) - ac_prev=pdfdir ;; - -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) - pdfdir=$ac_optarg ;; - - -psdir | --psdir | --psdi | --psd | --ps) - ac_prev=psdir ;; - -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) - psdir=$ac_optarg ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir=$ac_optarg ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir=$ac_optarg ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site=$ac_optarg ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir=$ac_optarg ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir=$ac_optarg ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target_alias ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target_alias=$ac_optarg ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers | -V) - ac_init_version=: ;; - - -with-* | --with-*) - ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: $ac_useropt" - ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` - case $ac_user_opts in - *" -"with_$ac_useropt" -"*) ;; - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" - ac_unrecognized_sep=', ';; - esac - eval with_$ac_useropt=\$ac_optarg ;; - - -without-* | --without-*) - ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: $ac_useropt" - ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` - case $ac_user_opts in - *" -"with_$ac_useropt" -"*) ;; - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" - ac_unrecognized_sep=', ';; - esac - eval with_$ac_useropt=no ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes=$ac_optarg ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries=$ac_optarg ;; - - -*) as_fn_error $? "unrecognized option: \`$ac_option' -Try \`$0 --help' for more information" - ;; - - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` - # Reject names that are not valid shell variable names. - case $ac_envvar in #( - '' | [0-9]* | *[!_$as_cr_alnum]* ) - as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; - esac - eval $ac_envvar=\$ac_optarg - export $ac_envvar ;; - - *) - # FIXME: should be removed in autoconf 3.0. - $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" - ;; - - esac -done - -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - as_fn_error $? "missing argument to $ac_option" -fi - -if test -n "$ac_unrecognized_opts"; then - case $enable_option_checking in - no) ;; - fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; - *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; - esac -fi - -# Check all directory arguments for consistency. -for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ - datadir sysconfdir sharedstatedir localstatedir includedir \ - oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir -do - eval ac_val=\$$ac_var - # Remove trailing slashes. - case $ac_val in - */ ) - ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` - eval $ac_var=\$ac_val;; - esac - # Be sure to have absolute directory names. - case $ac_val in - [\\/$]* | ?:[\\/]* ) continue;; - NONE | '' ) case $ac_var in *prefix ) continue;; esac;; - esac - as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" -done - -# There might be people who depend on the old broken behavior: `$host' -# used to hold the argument of --host etc. -# FIXME: To remove some day. -build=$build_alias -host=$host_alias -target=$target_alias - -# FIXME: To remove some day. -if test "x$host_alias" != x; then - if test "x$build_alias" = x; then - cross_compiling=maybe - elif test "x$build_alias" != "x$host_alias"; then - cross_compiling=yes - fi -fi - -ac_tool_prefix= -test -n "$host_alias" && ac_tool_prefix=$host_alias- - -test "$silent" = yes && exec 6>/dev/null - - -ac_pwd=`pwd` && test -n "$ac_pwd" && -ac_ls_di=`ls -di .` && -ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || - as_fn_error $? "working directory cannot be determined" -test "X$ac_ls_di" = "X$ac_pwd_ls_di" || - as_fn_error $? "pwd does not report name of working directory" - - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then the parent directory. - ac_confdir=`$as_dirname -- "$as_myself" || -$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_myself" : 'X\(//\)[^/]' \| \ - X"$as_myself" : 'X\(//\)$' \| \ - X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_myself" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - srcdir=$ac_confdir - if test ! -r "$srcdir/$ac_unique_file"; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r "$srcdir/$ac_unique_file"; then - test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." - as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" -fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" -ac_abs_confdir=`( - cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" - pwd)` -# When building in place, set srcdir=. -if test "$ac_abs_confdir" = "$ac_pwd"; then - srcdir=. -fi -# Remove unnecessary trailing slashes from srcdir. -# Double slashes in file names in object file debugging info -# mess up M-x gdb in Emacs. -case $srcdir in -*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; -esac -for ac_var in $ac_precious_vars; do - eval ac_env_${ac_var}_set=\${${ac_var}+set} - eval ac_env_${ac_var}_value=\$${ac_var} - eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} - eval ac_cv_env_${ac_var}_value=\$${ac_var} -done - -# -# Report the --help message. -# -if test "$ac_init_help" = "long"; then - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat <<_ACEOF -\`configure' configures this package to adapt to many kinds of systems. - -Usage: $0 [OPTION]... [VAR=VALUE]... - -To assign environment variables (e.g., CC, CFLAGS...), specify them as -VAR=VALUE. See below for descriptions of some of the useful variables. - -Defaults for the options are specified in brackets. - -Configuration: - -h, --help display this help and exit - --help=short display options specific to this package - --help=recursive display the short help of all the included packages - -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking ...' messages - --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' - -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] - -Installation directories: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] - -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. - -For better control, use the options below. - -Fine tuning of the installation directories: - --bindir=DIR user executables [EPREFIX/bin] - --sbindir=DIR system admin executables [EPREFIX/sbin] - --libexecdir=DIR program executables [EPREFIX/libexec] - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] - --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --libdir=DIR object code libraries [EPREFIX/lib] - --includedir=DIR C header files [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc [/usr/include] - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] - --datadir=DIR read-only architecture-independent data [DATAROOTDIR] - --infodir=DIR info documentation [DATAROOTDIR/info] - --localedir=DIR locale-dependent data [DATAROOTDIR/locale] - --mandir=DIR man documentation [DATAROOTDIR/man] - --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] - --htmldir=DIR html documentation [DOCDIR] - --dvidir=DIR dvi documentation [DOCDIR] - --pdfdir=DIR pdf documentation [DOCDIR] - --psdir=DIR ps documentation [DOCDIR] -_ACEOF - - cat <<\_ACEOF - -System types: - --build=BUILD configure for building on BUILD [guessed] - --host=HOST cross-compile to build programs to run on HOST [BUILD] -_ACEOF -fi - -if test -n "$ac_init_help"; then - - cat <<\_ACEOF - -Optional Features: - --disable-option-checking ignore unrecognized --enable/--with options - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --disable-sdltest Do not try to compile and run a test SDL program - -Optional Packages: - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-sdl-prefix=PFX Prefix where SDL is installed (optional) - --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) - -Some influential environment variables: - CC C compiler command - CFLAGS C compiler flags - LDFLAGS linker flags, e.g. -L if you have libraries in a - nonstandard directory - LIBS libraries to pass to the linker, e.g. -l - CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if - you have headers in a nonstandard directory - PKG_CONFIG path to pkg-config utility - PKG_CONFIG_PATH - directories to add to pkg-config's search path - PKG_CONFIG_LIBDIR - path overriding pkg-config's built-in search path - SDL_CFLAGS C compiler flags for SDL, overriding pkg-config - SDL_LIBS linker flags for SDL, overriding pkg-config - LIBUNWIND_CFLAGS - C compiler flags for LIBUNWIND, overriding pkg-config - LIBUNWIND_LIBS - linker flags for LIBUNWIND, overriding pkg-config - -Use these variables to override the choices made by `configure' or to help -it to find libraries and programs with nonstandard names/locations. - -Report bugs to the package provider. -_ACEOF -ac_status=$? -fi - -if test "$ac_init_help" = "recursive"; then - # If there are subdirs, report their specific --help. - for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d "$ac_dir" || - { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || - continue - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - cd "$ac_dir" || { ac_status=$?; continue; } - # Check for guested configure. - if test -f "$ac_srcdir/configure.gnu"; then - echo && - $SHELL "$ac_srcdir/configure.gnu" --help=recursive - elif test -f "$ac_srcdir/configure"; then - echo && - $SHELL "$ac_srcdir/configure" --help=recursive - else - $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 - fi || ac_status=$? - cd "$ac_pwd" || { ac_status=$?; break; } - done -fi - -test -n "$ac_init_help" && exit $ac_status -if $ac_init_version; then - cat <<\_ACEOF -configure -generated by GNU Autoconf 2.69 - -Copyright (C) 2012 Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. -_ACEOF - exit -fi - -## ------------------------ ## -## Autoconf initialization. ## -## ------------------------ ## - -# ac_fn_c_try_compile LINENO -# -------------------------- -# Try to compile conftest.$ac_ext, and return whether this succeeded. -ac_fn_c_try_compile () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext - if { { ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_compile") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then : - ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_compile - -# ac_fn_c_try_run LINENO -# ---------------------- -# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes -# that executables *can* be run. -ac_fn_c_try_run () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' - { { case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; }; then : - ac_retval=0 -else - $as_echo "$as_me: program exited with status $ac_status" >&5 - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=$ac_status -fi - rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_run - -# ac_fn_c_try_link LINENO -# ----------------------- -# Try to link conftest.$ac_ext, and return whether this succeeded. -ac_fn_c_try_link () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext conftest$ac_exeext - if { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - test -x conftest$ac_exeext - }; then : - ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information - # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would - # interfere with the next link command; also delete a directory that is - # left behind by Apple's compiler. We do this before executing the actions. - rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_link -cat >config.log <<_ACEOF -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. - -It was created by $as_me, which was -generated by GNU Autoconf 2.69. Invocation command line was - - $ $0 $@ - -_ACEOF -exec 5>>config.log -{ -cat <<_ASUNAME -## --------- ## -## Platform. ## -## --------- ## - -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -_ASUNAME - -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - $as_echo "PATH: $as_dir" - done -IFS=$as_save_IFS - -} >&5 - -cat >&5 <<_ACEOF - - -## ----------- ## -## Core tests. ## -## ----------- ## - -_ACEOF - - -# Keep a trace of the command line. -# Strip out --no-create and --no-recursion so they do not pile up. -# Strip out --silent because we don't want to record it for future runs. -# Also quote any args containing shell meta-characters. -# Make two passes to allow for proper duplicate-argument suppression. -ac_configure_args= -ac_configure_args0= -ac_configure_args1= -ac_must_keep_next=false -for ac_pass in 1 2 -do - for ac_arg - do - case $ac_arg in - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - continue ;; - *\'*) - ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - case $ac_pass in - 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; - 2) - as_fn_append ac_configure_args1 " '$ac_arg'" - if test $ac_must_keep_next = true; then - ac_must_keep_next=false # Got value, back to normal. - else - case $ac_arg in - *=* | --config-cache | -C | -disable-* | --disable-* \ - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ - | -with-* | --with-* | -without-* | --without-* | --x) - case "$ac_configure_args0 " in - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; - esac - ;; - -* ) ac_must_keep_next=true ;; - esac - fi - as_fn_append ac_configure_args " '$ac_arg'" - ;; - esac - done -done -{ ac_configure_args0=; unset ac_configure_args0;} -{ ac_configure_args1=; unset ac_configure_args1;} - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -# WARNING: Use '\'' to represent an apostrophe within the trap. -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - { - echo - - $as_echo "## ---------------- ## -## Cache variables. ## -## ---------------- ##" - echo - # The following way of writing the cache mishandles newlines in values, -( - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( - *) { eval $ac_var=; unset $ac_var;} ;; - esac ;; - esac - done - (set) 2>&1 | - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - sed -n \ - "s/'\''/'\''\\\\'\'''\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" - ;; #( - *) - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) - echo - - $as_echo "## ----------------- ## -## Output variables. ## -## ----------------- ##" - echo - for ac_var in $ac_subst_vars - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - $as_echo "$ac_var='\''$ac_val'\''" - done | sort - echo - - if test -n "$ac_subst_files"; then - $as_echo "## ------------------- ## -## File substitutions. ## -## ------------------- ##" - echo - for ac_var in $ac_subst_files - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - $as_echo "$ac_var='\''$ac_val'\''" - done | sort - echo - fi - - if test -s confdefs.h; then - $as_echo "## ----------- ## -## confdefs.h. ## -## ----------- ##" - echo - cat confdefs.h - echo - fi - test "$ac_signal" != 0 && - $as_echo "$as_me: caught signal $ac_signal" - $as_echo "$as_me: exit $exit_status" - } >&5 - rm -f core *.core core.conftest.* && - rm -f -r conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status -' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal -done -ac_signal=0 - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -f -r conftest* confdefs.h - -$as_echo "/* confdefs.h */" > confdefs.h - -# Predefined preprocessor variables. - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_URL "$PACKAGE_URL" -_ACEOF - - -# Let the site file select an alternate cache file if it wants to. -# Prefer an explicitly selected file to automatically selected ones. -ac_site_file1=NONE -ac_site_file2=NONE -if test -n "$CONFIG_SITE"; then - # We do not want a PATH search for config.site. - case $CONFIG_SITE in #(( - -*) ac_site_file1=./$CONFIG_SITE;; - */*) ac_site_file1=$CONFIG_SITE;; - *) ac_site_file1=./$CONFIG_SITE;; - esac -elif test "x$prefix" != xNONE; then - ac_site_file1=$prefix/share/config.site - ac_site_file2=$prefix/etc/config.site -else - ac_site_file1=$ac_default_prefix/share/config.site - ac_site_file2=$ac_default_prefix/etc/config.site -fi -for ac_site_file in "$ac_site_file1" "$ac_site_file2" -do - test "x$ac_site_file" = xNONE && continue - if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 -$as_echo "$as_me: loading site script $ac_site_file" >&6;} - sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" \ - || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "failed to load site script $ac_site_file -See \`config.log' for more details" "$LINENO" 5; } - fi -done - -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special files - # actually), so we avoid doing that. DJGPP emulates it as a regular file. - if test /dev/null != "$cache_file" && test -f "$cache_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 -$as_echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . "$cache_file";; - *) . "./$cache_file";; - esac - fi -else - { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 -$as_echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi - -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 -$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - # differences in whitespace do not lead to failure. - ac_old_val_w=`echo x $ac_old_val` - ac_new_val_w=`echo x $ac_new_val` - if test "$ac_old_val_w" != "$ac_new_val_w"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 -$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - ac_cache_corrupted=: - else - { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 -$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} - eval $ac_var=\$ac_old_val - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 -$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 -$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) as_fn_append ac_configure_args " '$ac_arg'" ;; - esac - fi -done -if $ac_cache_corrupted; then - { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 -$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} - as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 -fi -## -------------------- ## -## Main body of script. ## -## -------------------- ## - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - - -ac_aux_dir= -for ac_dir in ../build-scripts "$srcdir"/../build-scripts; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../build-scripts \"$srcdir\"/../build-scripts" "$LINENO" 5 -fi - -# These three variables are undocumented and unsupported, -# and are intended to be withdrawn in a future Autoconf release. -# They can cause serious problems if a builder's source tree is in a directory -# whose full name contains unusual characters. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. - - -# Make sure we can run config.sub. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 -$as_echo_n "checking build system type... " >&6; } -if ${ac_cv_build+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_build_alias=$build_alias -test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` -test "x$ac_build_alias" = x && - as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 -$as_echo "$ac_cv_build" >&6; } -case $ac_cv_build in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 -$as_echo_n "checking host system type... " >&6; } -if ${ac_cv_host+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "x$host_alias" = x; then - ac_cv_host=$ac_cv_build -else - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 -$as_echo "$ac_cv_host" >&6; } -case $ac_cv_host in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="gcc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - fi -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl.exe - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl.exe -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$ac_ct_CC" && break -done - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - -fi - - -test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "no acceptable C compiler found in \$PATH -See \`config.log' for more details" "$LINENO" 5; } - -# Provide some information about the compiler. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 -set X $ac_compile -ac_compiler=$2 -for ac_option in --version -v -V -qversion; do - { { ac_try="$ac_compiler $ac_option >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_compiler $ac_option >&5") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - sed '10a\ -... rest of stderr output deleted ... - 10q' conftest.err >conftest.er1 - cat conftest.er1 >&5 - fi - rm -f conftest.er1 conftest.err - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } -done - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" -# Try to create an executable without -o first, disregard a.out. -# It will help us diagnose broken compilers, and finding out an intuition -# of exeext. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 -$as_echo_n "checking whether the C compiler works... " >&6; } -ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` - -# The possible output files: -ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" - -ac_rmfiles= -for ac_file in $ac_files -do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; - * ) ac_rmfiles="$ac_rmfiles $ac_file";; - esac -done -rm -f $ac_rmfiles - -if { { ac_try="$ac_link_default" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link_default") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' -# in a Makefile. We should not override ac_cv_exeext if it was cached, -# so that the user can short-circuit this test for compilers unknown to -# Autoconf. -for ac_file in $ac_files '' -do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) - ;; - [ab].out ) - # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; - then :; else - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - fi - # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' - # argument, so we may need to know it at that point already. - # Even if this section looks crufty: it has the advantage of - # actually working. - break;; - * ) - break;; - esac -done -test "$ac_cv_exeext" = no && ac_cv_exeext= - -else - ac_file='' -fi -if test -z "$ac_file"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 77 "C compiler cannot create executables -See \`config.log' for more details" "$LINENO" 5; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 -$as_echo_n "checking for C compiler default output file name... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 -$as_echo "$ac_file" >&6; } -ac_exeext=$ac_cv_exeext - -rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out -ac_clean_files=$ac_clean_files_save -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 -$as_echo_n "checking for suffix of executables... " >&6; } -if { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. -for ac_file in conftest.exe conftest conftest.*; do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - break;; - * ) break;; - esac -done -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details" "$LINENO" 5; } -fi -rm -f conftest conftest$ac_cv_exeext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 -$as_echo "$ac_cv_exeext" >&6; } - -rm -f conftest.$ac_ext -EXEEXT=$ac_cv_exeext -ac_exeext=$EXEEXT -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -FILE *f = fopen ("conftest.out", "w"); - return ferror (f) || fclose (f) != 0; - - ; - return 0; -} -_ACEOF -ac_clean_files="$ac_clean_files conftest.out" -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 -$as_echo_n "checking whether we are cross compiling... " >&6; } -if test "$cross_compiling" != yes; then - { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - if { ac_try='./conftest$ac_cv_exeext' - { { case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details" "$LINENO" 5; } - fi - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 -$as_echo "$cross_compiling" >&6; } - -rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out -ac_clean_files=$ac_clean_files_save -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 -$as_echo_n "checking for suffix of object files... " >&6; } -if ${ac_cv_objext+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -if { { ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_compile") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : - for ac_file in conftest.o conftest.obj conftest.*; do - test -f "$ac_file" || continue; - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot compute suffix of object files: cannot compile -See \`config.log' for more details" "$LINENO" 5; } -fi -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 -$as_echo "$ac_cv_objext" >&6; } -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 -$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } -if ${ac_cv_c_compiler_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_compiler_gnu=yes -else - ac_compiler_gnu=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 -$as_echo "$ac_cv_c_compiler_gnu" >&6; } -if test $ac_compiler_gnu = yes; then - GCC=yes -else - GCC= -fi -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 -$as_echo_n "checking whether $CC accepts -g... " >&6; } -if ${ac_cv_prog_cc_g+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_save_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - ac_cv_prog_cc_g=no - CFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_g=yes -else - CFLAGS="" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -else - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_g=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 -$as_echo "$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 -$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } -if ${ac_cv_prog_cc_c89+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -struct stat; -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_c89=$ac_arg -fi -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -$as_echo "none needed" >&6; } ;; - xno) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -$as_echo "unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 -$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; -esac -if test "x$ac_cv_prog_cc_c89" != xno; then : - -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -case "$host" in - *-*-cygwin* | *-*-mingw*) - EXE=".exe" - EXTRALIB="-lshlwapi" - ;; - *) - EXE="" - EXTRALIB="" - ;; -esac - - -SDL_VERSION=2.0.0 - - - - - - -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. -set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PKG_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -PKG_CONFIG=$ac_cv_path_PKG_CONFIG -if test -n "$PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 -$as_echo "$PKG_CONFIG" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_PKG_CONFIG"; then - ac_pt_PKG_CONFIG=$PKG_CONFIG - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $ac_pt_PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG -if test -n "$ac_pt_PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 -$as_echo "$ac_pt_PKG_CONFIG" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_pt_PKG_CONFIG" = x; then - PKG_CONFIG="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - PKG_CONFIG=$ac_pt_PKG_CONFIG - fi -else - PKG_CONFIG="$ac_cv_path_PKG_CONFIG" -fi - -fi -if test -n "$PKG_CONFIG"; then - _pkg_min_version=0.9.0 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 -$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - PKG_CONFIG="" - fi -fi - - -# Check whether --with-sdl-prefix was given. -if test "${with_sdl_prefix+set}" = set; then : - withval=$with_sdl_prefix; sdl_prefix="$withval" -else - sdl_prefix="" -fi - - -# Check whether --with-sdl-exec-prefix was given. -if test "${with_sdl_exec_prefix+set}" = set; then : - withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval" -else - sdl_exec_prefix="" -fi - -# Check whether --enable-sdltest was given. -if test "${enable_sdltest+set}" = set; then : - enableval=$enable_sdltest; -else - enable_sdltest=yes -fi - - - min_sdl_version=$SDL_VERSION - - if test "x$sdl_prefix$sdl_exec_prefix" = x ; then - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl3 >= $min_sdl_version" >&5 -$as_echo_n "checking for sdl3 >= $min_sdl_version... " >&6; } - -if test -n "$SDL_CFLAGS"; then - pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl3 >= \$min_sdl_version\""; } >&5 - ($PKG_CONFIG --exists --print-errors "sdl3 >= $min_sdl_version") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl3 >= $min_sdl_version" 2>/dev/null` -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$SDL_LIBS"; then - pkg_cv_SDL_LIBS="$SDL_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl3 >= \$min_sdl_version\""; } >&5 - ($PKG_CONFIG --exists --print-errors "sdl3 >= $min_sdl_version") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl3 >= $min_sdl_version" 2>/dev/null` -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl3 >= $min_sdl_version" 2>&1` - else - SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl3 >= $min_sdl_version" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$SDL_PKG_ERRORS" >&5 - - sdl_pc=no -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - sdl_pc=no -else - SDL_CFLAGS=$pkg_cv_SDL_CFLAGS - SDL_LIBS=$pkg_cv_SDL_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - sdl_pc=yes -fi - else - sdl_pc=no - if test x$sdl_exec_prefix != x ; then - sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix" - if test x${SDL3_CONFIG+set} != xset ; then - SDL3_CONFIG=$sdl_exec_prefix/bin/sdl3-config - fi - fi - if test x$sdl_prefix != x ; then - sdl_config_args="$sdl_config_args --prefix=$sdl_prefix" - if test x${SDL3_CONFIG+set} != xset ; then - SDL3_CONFIG=$sdl_prefix/bin/sdl3-config - fi - fi - fi - - if test "x$sdl_pc" = xyes ; then - no_sdl="" - SDL3_CONFIG="pkg-config sdl3" - else - as_save_PATH="$PATH" - if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then - PATH="$prefix/bin:$prefix/usr/bin:$PATH" - fi - # Extract the first word of "sdl3-config", so it can be a program name with args. -set dummy sdl3-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_SDL3_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $SDL3_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_SDL3_CONFIG="$SDL3_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_SDL3_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - test -z "$ac_cv_path_SDL3_CONFIG" && ac_cv_path_SDL3_CONFIG="no" - ;; -esac -fi -SDL3_CONFIG=$ac_cv_path_SDL3_CONFIG -if test -n "$SDL3_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL3_CONFIG" >&5 -$as_echo "$SDL3_CONFIG" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - PATH="$as_save_PATH" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5 -$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; } - no_sdl="" - - if test "$SDL3_CONFIG" = "no" ; then - no_sdl=yes - else - SDL_CFLAGS=`$SDL3_CONFIG $sdl_config_args --cflags` - SDL_LIBS=`$SDL3_CONFIG $sdl_config_args --libs` - - sdl_major_version=`$SDL3_CONFIG $sdl_config_args --version | \ - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` - sdl_minor_version=`$SDL3_CONFIG $sdl_config_args --version | \ - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` - sdl_micro_version=`$SDL3_CONFIG $sdl_config_args --version | \ - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` - if test "x$enable_sdltest" = "xyes" ; then - ac_save_CFLAGS="$CFLAGS" - ac_save_CXXFLAGS="$CXXFLAGS" - ac_save_LIBS="$LIBS" - CFLAGS="$CFLAGS $SDL_CFLAGS" - CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" - LIBS="$LIBS $SDL_LIBS" - rm -f conf.sdltest - if test "$cross_compiling" = yes; then : - echo $ac_n "cross compiling; assumed OK... $ac_c" -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include -#include -#include "SDL.h" - -int main (int argc, char *argv[]) -{ - int major, minor, micro; - FILE *fp = fopen("conf.sdltest", "w"); - - if (fp) fclose(fp); - - if (sscanf("$min_sdl_version", "%d.%d.%d", &major, &minor, µ) != 3) { - printf("%s, bad version string\n", "$min_sdl_version"); - exit(1); - } - - if (($sdl_major_version > major) || - (($sdl_major_version == major) && ($sdl_minor_version > minor)) || - (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) - { - return 0; - } - else - { - printf("\n*** 'sdl3-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); - printf("*** of SDL required is %d.%d.%d. If sdl3-config is correct, then it is\n", major, minor, micro); - printf("*** best to upgrade to the required version.\n"); - printf("*** If sdl3-config was wrong, set the environment variable SDL3_CONFIG\n"); - printf("*** to point to the correct copy of sdl3-config, and remove the file\n"); - printf("*** config.cache before re-running configure\n"); - return 1; - } -} - - -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - -else - no_sdl=yes -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - - CFLAGS="$ac_save_CFLAGS" - CXXFLAGS="$ac_save_CXXFLAGS" - LIBS="$ac_save_LIBS" - fi - fi - if test "x$no_sdl" = x ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - fi - fi - if test "x$no_sdl" = x ; then - : - else - if test "$SDL3_CONFIG" = "no" ; then - echo "*** The sdl3-config script installed by SDL could not be found" - echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" - echo "*** your path, or set the SDL3_CONFIG environment variable to the" - echo "*** full path to sdl3-config." - else - if test -f conf.sdltest ; then - : - else - echo "*** Could not run SDL test program, checking why..." - CFLAGS="$CFLAGS $SDL_CFLAGS" - CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" - LIBS="$LIBS $SDL_LIBS" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include -#include "SDL.h" - -int main(int argc, char *argv[]) -{ return 0; } -#undef main -#define main K_and_R_C_main - -int -main () -{ - return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - echo "*** The test program compiled, but did not run. This usually means" - echo "*** that the run-time linker is not finding SDL or finding the wrong" - echo "*** version of SDL. If it is not finding SDL, you'll need to set your" - echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" - echo "*** to the installed location Also, make sure you have run ldconfig if that" - echo "*** is required on your system" - echo "***" - echo "*** If you have an old version installed, it is best to remove it, although" - echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" -else - echo "*** The test program failed to compile or link. See the file config.log for the" - echo "*** exact error that occured. This usually means SDL was incorrectly installed" - echo "*** or that you have moved SDL since it was installed. In the latter case, you" - echo "*** may want to edit the sdl3-config script: $SDL3_CONFIG" -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - CFLAGS="$ac_save_CFLAGS" - CXXFLAGS="$ac_save_CXXFLAGS" - LIBS="$ac_save_LIBS" - fi - fi - SDL_CFLAGS="" - SDL_LIBS="" - as_fn_error $? "*** SDL version $SDL_VERSION not found!" "$LINENO" 5 - - fi - - - rm -f conf.sdltest - -CFLAGS="$CFLAGS $SDL_CFLAGS" -LIBS="$LIBS -lSDL3_test $SDL_LIBS $EXTRALIB" - - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunwind" >&5 -$as_echo_n "checking for libunwind... " >&6; } - -if test -n "$LIBUNWIND_CFLAGS"; then - pkg_cv_LIBUNWIND_CFLAGS="$LIBUNWIND_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_LIBUNWIND_CFLAGS=`$PKG_CONFIG --cflags "libunwind" 2>/dev/null` -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$LIBUNWIND_LIBS"; then - pkg_cv_LIBUNWIND_LIBS="$LIBUNWIND_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_LIBUNWIND_LIBS=`$PKG_CONFIG --libs "libunwind" 2>/dev/null` -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libunwind" 2>&1` - else - LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --print-errors "libunwind" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$LIBUNWIND_PKG_ERRORS" >&5 - - have_libunwind=no -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - have_libunwind=no -else - LIBUNWIND_CFLAGS=$pkg_cv_LIBUNWIND_CFLAGS - LIBUNWIND_LIBS=$pkg_cv_LIBUNWIND_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - have_libunwind=yes -fi -if test x$have_libunwind = xyes ; then - LIBS="$LIBS $LIBUNWIND_LIBS" -fi - -ac_config_files="$ac_config_files Makefile" - -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, we kill variables containing newlines. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -( - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( - *) { eval $ac_var=; unset $ac_var;} ;; - esac ;; - esac - done - - (set) 2>&1 | - case $as_nl`(ac_space=' '; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes: double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \. - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; #( - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) | - sed ' - /^ac_cv_env_/b end - t clear - :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - :end' >>confcache -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else - if test -w "$cache_file"; then - if test "x$cache_file" != "x/dev/null"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 -$as_echo "$as_me: updating cache $cache_file" >&6;} - if test ! -f "$cache_file" || test -h "$cache_file"; then - cat confcache >"$cache_file" - else - case $cache_file in #( - */* | ?:*) - mv -f confcache "$cache_file"$$ && - mv -f "$cache_file"$$ "$cache_file" ;; #( - *) - mv -f confcache "$cache_file" ;; - esac - fi - fi - else - { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 -$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} - fi -fi -rm -f confcache - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -# -# If the first sed substitution is executed (which looks for macros that -# take arguments), then branch to the quote section. Otherwise, -# look for a macro that doesn't take arguments. -ac_script=' -:mline -/\\$/{ - N - s,\\\n,, - b mline -} -t clear -:clear -s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g -t quote -s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g -t quote -b any -:quote -s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g -s/\[/\\&/g -s/\]/\\&/g -s/\$/$$/g -H -:any -${ - g - s/^\n// - s/\n/ /g - p -} -' -DEFS=`sed -n "$ac_script" confdefs.h` - - -ac_libobjs= -ac_ltlibobjs= -U= -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue - # 1. Remove the extension, and $U if already installed. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`$as_echo "$ac_i" | sed "$ac_script"` - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR - # will be set to the directory where LIBOBJS objects are built. - as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" - as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' -done -LIBOBJS=$ac_libobjs - -LTLIBOBJS=$ac_ltlibobjs - - - -: "${CONFIG_STATUS=./config.status}" -ac_write_fail=0 -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 -$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} -as_write_fail=0 -cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 -#! $SHELL -# Generated by $as_me. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. - -debug=false -ac_cs_recheck=false -ac_cs_silent=false - -SHELL=\${CONFIG_SHELL-$SHELL} -export SHELL -_ASEOF -cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 -## -------------------- ## -## M4sh Initialization. ## -## -------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in #( - *posix*) : - set -o posix ;; #( - *) : - ;; -esac -fi - - -as_nl=' -' -export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in #( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - PATH_SEPARATOR=: - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { - (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || - PATH_SEPARATOR=';' - } -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -as_myself= -case $0 in #(( - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break - done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - exit 1 -fi - -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - - -# as_fn_error STATUS ERROR [LINENO LOG_FD] -# ---------------------------------------- -# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are -# provided, also output the error to LOG_FD, referencing LINENO. Then exit the -# script with STATUS, using 1 if that was 0. -as_fn_error () -{ - as_status=$1; test $as_status -eq 0 && as_status=1 - if test "$4"; then - as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 - fi - $as_echo "$as_me: error: $2" >&2 - as_fn_exit $as_status -} # as_fn_error - - -# as_fn_set_status STATUS -# ----------------------- -# Set $? to STATUS, without forking. -as_fn_set_status () -{ - return $1 -} # as_fn_set_status - -# as_fn_exit STATUS -# ----------------- -# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. -as_fn_exit () -{ - set +e - as_fn_set_status $1 - exit $1 -} # as_fn_exit - -# as_fn_unset VAR -# --------------- -# Portably unset VAR. -as_fn_unset () -{ - { eval $1=; unset $1;} -} -as_unset=as_fn_unset -# as_fn_append VAR VALUE -# ---------------------- -# Append the text in VALUE to the end of the definition contained in VAR. Take -# advantage of any shell optimizations that allow amortized linear growth over -# repeated appends, instead of the typical quadratic growth present in naive -# implementations. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : - eval 'as_fn_append () - { - eval $1+=\$2 - }' -else - as_fn_append () - { - eval $1=\$$1\$2 - } -fi # as_fn_append - -# as_fn_arith ARG... -# ------------------ -# Perform arithmetic evaluation on the ARGs, and store the result in the -# global $as_val. Take advantage of shells that can avoid forks. The arguments -# must be portable across $(()) and expr. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : - eval 'as_fn_arith () - { - as_val=$(( $* )) - }' -else - as_fn_arith () - { - as_val=`expr "$@" || test $? -eq 1` - } -fi # as_fn_arith - - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in #((((( --n*) - case `echo 'xy\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - xy) ECHO_C='\c';; - *) echo `echo ksh88 bug on AIX 6.1` > /dev/null - ECHO_T=' ';; - esac;; -*) - ECHO_N='-n';; -esac - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir 2>/dev/null -fi -if (echo >conf$$.file) 2>/dev/null; then - if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -pR' - elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln - else - as_ln_s='cp -pR' - fi -else - as_ln_s='cp -pR' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - - -# as_fn_mkdir_p -# ------------- -# Create "$as_dir" as a directory, including parents if necessary. -as_fn_mkdir_p () -{ - - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || eval $as_mkdir_p || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" - - -} # as_fn_mkdir_p -if mkdir -p . 2>/dev/null; then - as_mkdir_p='mkdir -p "$as_dir"' -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - - -# as_fn_executable_p FILE -# ----------------------- -# Test if FILE is an executable regular file. -as_fn_executable_p () -{ - test -f "$1" && test -x "$1" -} # as_fn_executable_p -as_test_x='test -x' -as_executable_p=as_fn_executable_p - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -exec 6>&1 -## ----------------------------------- ## -## Main body of $CONFIG_STATUS script. ## -## ----------------------------------- ## -_ASEOF -test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -# Save the log message, to keep $0 and so on meaningful, and to -# report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. -ac_log=" -This file was extended by $as_me, which was -generated by GNU Autoconf 2.69. Invocation command line was - - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - $ $0 $@ - -on `(hostname || uname -n) 2>/dev/null | sed 1q` -" - -_ACEOF - -case $ac_config_files in *" -"*) set x $ac_config_files; shift; ac_config_files=$*;; -esac - - - -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -# Files that config.status was made for. -config_files="$ac_config_files" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -ac_cs_usage="\ -\`$as_me' instantiates files and other configuration actions -from templates according to the current configuration. Unless the files -and actions are specified as TAGs, all are instantiated by default. - -Usage: $0 [OPTION]... [TAG]... - - -h, --help print this help, then exit - -V, --version print version number and configuration settings, then exit - --config print configuration, then exit - -q, --quiet, --silent - do not print progress messages - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE - -Configuration files: -$config_files - -Report bugs to the package provider." - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" -ac_cs_version="\\ -config.status -configured by $0, generated by GNU Autoconf 2.69, - with options \\"\$ac_cs_config\\" - -Copyright (C) 2012 Free Software Foundation, Inc. -This config.status script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it." - -ac_pwd='$ac_pwd' -srcdir='$srcdir' -test -n "\$AWK" || AWK=awk -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -# The default lists apply if the user does not specify any file. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=?*) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` - ac_shift=: - ;; - --*=) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg= - ac_shift=: - ;; - *) - ac_option=$1 - ac_optarg=$2 - ac_shift=shift - ;; - esac - - case $ac_option in - # Handling of the options. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - ac_cs_recheck=: ;; - --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - $as_echo "$ac_cs_version"; exit ;; - --config | --confi | --conf | --con | --co | --c ) - $as_echo "$ac_cs_config"; exit ;; - --debug | --debu | --deb | --de | --d | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - $ac_shift - case $ac_optarg in - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; - '') as_fn_error $? "missing file argument" ;; - esac - as_fn_append CONFIG_FILES " '$ac_optarg'" - ac_need_defaults=false;; - --he | --h | --help | --hel | -h ) - $as_echo "$ac_cs_usage"; exit ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil | --si | --s) - ac_cs_silent=: ;; - - # This is an error. - -*) as_fn_error $? "unrecognized option: \`$1' -Try \`$0 --help' for more information." ;; - - *) as_fn_append ac_config_targets " $1" - ac_need_defaults=false ;; - - esac - shift -done - -ac_configure_extra_args= - -if $ac_cs_silent; then - exec 6>/dev/null - ac_configure_extra_args="$ac_configure_extra_args --silent" -fi - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -if \$ac_cs_recheck; then - set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion - shift - \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 - CONFIG_SHELL='$SHELL' - export CONFIG_SHELL - exec "\$@" -fi - -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -exec 5>>config.log -{ - echo - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -## Running $as_me. ## -_ASBOX - $as_echo "$ac_log" -} >&5 - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 - -# Handling of arguments. -for ac_config_target in $ac_config_targets -do - case $ac_config_target in - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; - - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; - esac -done - - -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files -fi - -# Have a temporary directory for convenience. Make it in the build tree -# simply because there is no reason against having it here, and in addition, -# creating and moving files from /tmp can sometimes cause problems. -# Hook for its removal unless debugging. -# Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. -$debug || -{ - tmp= ac_tmp= - trap 'exit_status=$? - : "${ac_tmp:=$tmp}" - { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status -' 0 - trap 'as_fn_exit 1' 1 2 13 15 -} -# Create a (secure) tmp directory for tmp files. - -{ - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && - test -d "$tmp" -} || -{ - tmp=./conf$$-$RANDOM - (umask 077 && mkdir "$tmp") -} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 -ac_tmp=$tmp - -# Set up the scripts for CONFIG_FILES section. -# No need to generate them if there are no CONFIG_FILES. -# This happens for instance with `./config.status config.h'. -if test -n "$CONFIG_FILES"; then - - -ac_cr=`echo X | tr X '\015'` -# On cygwin, bash can eat \r inside `` if the user requested igncr. -# But we know of no other shell where ac_cr would be empty at this -# point, so we can use a bashism as a fallback. -if test "x$ac_cr" = x; then - eval ac_cr=\$\'\\r\' -fi -ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` -if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then - ac_cs_awk_cr='\\r' -else - ac_cs_awk_cr=$ac_cr -fi - -echo 'BEGIN {' >"$ac_tmp/subs1.awk" && -_ACEOF - - -{ - echo "cat >conf$$subs.awk <<_ACEOF" && - echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && - echo "_ACEOF" -} >conf$$subs.sh || - as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 -ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - . ./conf$$subs.sh || - as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 - - ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` - if test $ac_delim_n = $ac_delim_num; then - break - elif $ac_last_try; then - as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done -rm -f conf$$subs.sh - -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && -_ACEOF -sed -n ' -h -s/^/S["/; s/!.*/"]=/ -p -g -s/^[^!]*!// -:repl -t repl -s/'"$ac_delim"'$// -t delim -:nl -h -s/\(.\{148\}\)..*/\1/ -t more1 -s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ -p -n -b repl -:more1 -s/["\\]/\\&/g; s/^/"/; s/$/"\\/ -p -g -s/.\{148\}// -t nl -:delim -h -s/\(.\{148\}\)..*/\1/ -t more2 -s/["\\]/\\&/g; s/^/"/; s/$/"/ -p -b -:more2 -s/["\\]/\\&/g; s/^/"/; s/$/"\\/ -p -g -s/.\{148\}// -t delim -' >$CONFIG_STATUS || ac_write_fail=1 -rm -f conf$$subs.awk -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -_ACAWK -cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && - for (key in S) S_is_set[key] = 1 - FS = "" - -} -{ - line = $ 0 - nfields = split(line, field, "@") - substed = 0 - len = length(field[1]) - for (i = 2; i < nfields; i++) { - key = field[i] - keylen = length(key) - if (S_is_set[key]) { - value = S[key] - line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) - len += length(value) + length(field[++i]) - substed = 1 - } else - len += 1 + keylen - } - - print line -} - -_ACAWK -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then - sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" -else - cat -fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ - || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 -_ACEOF - -# VPATH may cause trouble with some makes, so we remove sole $(srcdir), -# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ -h -s/// -s/^/:/ -s/[ ]*$/:/ -s/:\$(srcdir):/:/g -s/:\${srcdir}:/:/g -s/:@srcdir@:/:/g -s/^:*// -s/:*$// -x -s/\(=[ ]*\).*/\1/ -G -s/\n// -s/^[^=]*=[ ]*$// -}' -fi - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -fi # test -n "$CONFIG_FILES" - - -eval set X " :F $CONFIG_FILES " -shift -for ac_tag -do - case $ac_tag in - :[FHLC]) ac_mode=$ac_tag; continue;; - esac - case $ac_mode$ac_tag in - :[FHL]*:*);; - :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; - :[FH]-) ac_tag=-:-;; - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; - esac - ac_save_IFS=$IFS - IFS=: - set x $ac_tag - IFS=$ac_save_IFS - shift - ac_file=$1 - shift - - case $ac_mode in - :L) ac_source=$1;; - :[FH]) - ac_file_inputs= - for ac_f - do - case $ac_f in - -) ac_f="$ac_tmp/stdin";; - *) # Look for the file first in the build tree, then in the source tree - # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. - test -f "$ac_f" || - case $ac_f in - [\\/$]*) false;; - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; - esac || - as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; - esac - case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac - as_fn_append ac_file_inputs " '$ac_f'" - done - - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - configure_input='Generated from '` - $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' - `' by configure.' - if test x"$ac_file" != x-; then - configure_input="$ac_file. $configure_input" - { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 -$as_echo "$as_me: creating $ac_file" >&6;} - fi - # Neutralize special characters interpreted by sed in replacement strings. - case $configure_input in #( - *\&* | *\|* | *\\* ) - ac_sed_conf_input=`$as_echo "$configure_input" | - sed 's/[\\\\&|]/\\\\&/g'`;; #( - *) ac_sed_conf_input=$configure_input;; - esac - - case $ac_tag in - *:-:* | *:-) cat >"$ac_tmp/stdin" \ - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; - esac - ;; - esac - - ac_dir=`$as_dirname -- "$ac_file" || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - as_dir="$ac_dir"; as_fn_mkdir_p - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - - case $ac_mode in - :F) - # - # CONFIG_FILE - # - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -# If the template does not know about datarootdir, expand it. -# FIXME: This hack should be removed a few years after 2.60. -ac_datarootdir_hack=; ac_datarootdir_seen= -ac_sed_dataroot=' -/datarootdir/ { - p - q -} -/@datadir@/p -/@docdir@/p -/@infodir@/p -/@localedir@/p -/@mandir@/p' -case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in -*datarootdir*) ac_datarootdir_seen=yes;; -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 - ac_datarootdir_hack=' - s&@datadir@&$datadir&g - s&@docdir@&$docdir&g - s&@infodir@&$infodir&g - s&@localedir@&$localedir&g - s&@mandir@&$mandir&g - s&\\\${datarootdir}&$datarootdir&g' ;; -esac -_ACEOF - -# Neutralize VPATH when `$srcdir' = `.'. -# Shell code in configure.ac might set extrasub. -# FIXME: do we really want to maintain this feature? -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -ac_sed_extra="$ac_vpsub -$extrasub -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -:t -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s|@configure_input@|$ac_sed_conf_input|;t t -s&@top_builddir@&$ac_top_builddir_sub&;t t -s&@top_build_prefix@&$ac_top_build_prefix&;t t -s&@srcdir@&$ac_srcdir&;t t -s&@abs_srcdir@&$ac_abs_srcdir&;t t -s&@top_srcdir@&$ac_top_srcdir&;t t -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t -s&@builddir@&$ac_builddir&;t t -s&@abs_builddir@&$ac_abs_builddir&;t t -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t -$ac_datarootdir_hack -" -eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ - >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 - -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && - { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ - "$ac_tmp/out"`; test -z "$ac_out"; } && - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined" >&5 -$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined" >&2;} - - rm -f "$ac_tmp/stdin" - case $ac_file in - -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; - *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; - esac \ - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 - ;; - - - - esac - -done # for ac_tag - - -as_fn_exit 0 -_ACEOF -ac_clean_files=$ac_clean_files_save - -test $ac_write_fail = 0 || - as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 - - -# configure is writing to config.log, and then calls config.status. -# config.status does its own redirection, appending to config.log. -# Unfortunately, on DOS this fails, as config.log is still kept open -# by configure, so config.status won't be able to write to it; its -# output is simply discarded. So we exec the FD to /dev/null, -# effectively closing config.log, so it can be properly (re)opened and -# appended to by config.status. When coming back to configure, we -# need to make the FD available again. -if test "$no_create" != yes; then - ac_cs_success=: - ac_config_status_args= - test "$silent" = yes && - ac_config_status_args="$ac_config_status_args --quiet" - exec 5>/dev/null - $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false - exec 5>>config.log - # Use ||, not &&, to avoid exiting from the if with $? = 1, which - # would make configure fail if this is the last instruction. - $ac_cs_success || as_fn_exit 1 -fi -if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 -$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} -fi - diff --git a/visualtest/configure.ac b/visualtest/configure.ac deleted file mode 100644 index d36d89103..000000000 --- a/visualtest/configure.ac +++ /dev/null @@ -1,41 +0,0 @@ -dnl Process this file with autoconf to produce a configure script. -AC_INIT -AC_CONFIG_SRCDIR([unittest/testquit.c]) - -dnl Detect the canonical build and host environments -AC_CONFIG_AUX_DIR([../build-scripts]) -AC_CANONICAL_HOST - -dnl Check for tools -AC_PROG_CC - -dnl Figure out which math or extra library to use -case "$host" in - *-*-cygwin* | *-*-mingw*) - EXE=".exe" - EXTRALIB="-lshlwapi" - ;; - *) - EXE="" - EXTRALIB="" - ;; -esac -AC_SUBST(EXE) - -dnl Check for SDL -SDL_VERSION=3.0.0 -AM_PATH_SDL3($SDL_VERSION, - :, - AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) -) -CFLAGS="$CFLAGS $SDL_CFLAGS" -LIBS="$LIBS -lSDL3_test $SDL_LIBS $EXTRALIB" - -PKG_CHECK_MODULES(LIBUNWIND, libunwind, have_libunwind=yes, have_libunwind=no) -if test x$have_libunwind = xyes ; then - LIBS="$LIBS $LIBUNWIND_LIBS" -fi - -dnl Finally create all the generated files -AC_CONFIG_FILES([Makefile]) -AC_OUTPUT diff --git a/visualtest/docs/Doxyfile b/visualtest/docs/Doxyfile deleted file mode 100644 index 08caeb491..000000000 --- a/visualtest/docs/Doxyfile +++ /dev/null @@ -1,1936 +0,0 @@ -# Doxyfile 1.8.4 - -# This file describes the settings to be used by the documentation system -# doxygen (www.doxygen.org) for a project -# -# All text after a hash (#) is considered a comment and will be ignored -# The format is: -# TAG = value [value, ...] -# For lists items can also be appended using: -# TAG += value [value, ...] -# Values that contain spaces should be placed between quotes (" ") - -#--------------------------------------------------------------------------- -# Project related configuration options -#--------------------------------------------------------------------------- - -# This tag specifies the encoding used for all characters in the config file -# that follow. The default is UTF-8 which is also the encoding used for all -# text before the first occurrence of this tag. Doxygen uses libiconv (or the -# iconv built into libc) for the transcoding. See -# http://www.gnu.org/software/libiconv for the list of possible encodings. - -DOXYFILE_ENCODING = UTF-8 - -# The PROJECT_NAME tag is a single word (or sequence of words) that should -# identify the project. Note that if you do not use Doxywizard you need -# to put quotes around the project name if it contains spaces. - -PROJECT_NAME = "SDL Visual Test" - -# The PROJECT_NUMBER tag can be used to enter a project or revision number. -# This could be handy for archiving the generated documentation or -# if some version control system is used. - -PROJECT_NUMBER = - -# Using the PROJECT_BRIEF tag one can provide an optional one line description -# for a project that appears at the top of each page and should give viewer -# a quick idea about the purpose of the project. Keep the description short. - -PROJECT_BRIEF = - -# With the PROJECT_LOGO tag one can specify an logo or icon that is -# included in the documentation. The maximum height of the logo should not -# exceed 55 pixels and the maximum width should not exceed 200 pixels. -# Doxygen will copy the logo to the output directory. - -PROJECT_LOGO = - -# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) -# base path where the generated documentation will be put. -# If a relative path is entered, it will be relative to the location -# where doxygen was started. If left blank the current directory will be used. - -OUTPUT_DIRECTORY = . - -# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create -# 4096 sub-directories (in 2 levels) under the output directory of each output -# format and will distribute the generated files over these directories. -# Enabling this option can be useful when feeding doxygen a huge amount of -# source files, where putting all generated files in the same directory would -# otherwise cause performance problems for the file system. - -CREATE_SUBDIRS = NO - -# The OUTPUT_LANGUAGE tag is used to specify the language in which all -# documentation generated by doxygen is written. Doxygen will use this -# information to generate all constant output in the proper language. -# The default language is English, other supported languages are: -# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, -# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, -# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English -# messages), Korean, Korean-en, Latvian, Lithuanian, Norwegian, Macedonian, -# Persian, Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrillic, -# Slovak, Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. - -OUTPUT_LANGUAGE = English - -# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will -# include brief member descriptions after the members that are listed in -# the file and class documentation (similar to JavaDoc). -# Set to NO to disable this. - -BRIEF_MEMBER_DESC = YES - -# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend -# the brief description of a member or function before the detailed description. -# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the -# brief descriptions will be completely suppressed. - -REPEAT_BRIEF = YES - -# This tag implements a quasi-intelligent brief description abbreviator -# that is used to form the text in various listings. Each string -# in this list, if found as the leading text of the brief description, will be -# stripped from the text and the result after processing the whole list, is -# used as the annotated text. Otherwise, the brief description is used as-is. -# If left blank, the following values are used ("$name" is automatically -# replaced with the name of the entity): "The $name class" "The $name widget" -# "The $name file" "is" "provides" "specifies" "contains" -# "represents" "a" "an" "the" - -ABBREVIATE_BRIEF = "The $name class" \ - "The $name widget" \ - "The $name file" \ - is \ - provides \ - specifies \ - contains \ - represents \ - a \ - an \ - the - -# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then -# Doxygen will generate a detailed section even if there is only a brief -# description. - -ALWAYS_DETAILED_SEC = NO - -# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all -# inherited members of a class in the documentation of that class as if those -# members were ordinary class members. Constructors, destructors and assignment -# operators of the base classes will not be shown. - -INLINE_INHERITED_MEMB = NO - -# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full -# path before files name in the file list and in the header files. If set -# to NO the shortest path that makes the file name unique will be used. - -FULL_PATH_NAMES = YES - -# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag -# can be used to strip a user-defined part of the path. Stripping is -# only done if one of the specified strings matches the left-hand part of -# the path. The tag can be used to show relative paths in the file list. -# If left blank the directory from which doxygen is run is used as the -# path to strip. Note that you specify absolute paths here, but also -# relative paths, which will be relative from the directory where doxygen is -# started. - -STRIP_FROM_PATH = - -# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of -# the path mentioned in the documentation of a class, which tells -# the reader which header file to include in order to use a class. -# If left blank only the name of the header file containing the class -# definition is used. Otherwise one should specify the include paths that -# are normally passed to the compiler using the -I flag. - -STRIP_FROM_INC_PATH = - -# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter -# (but less readable) file names. This can be useful if your file system -# doesn't support long names like on DOS, Mac, or CD-ROM. - -SHORT_NAMES = NO - -# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen -# will interpret the first line (until the first dot) of a JavaDoc-style -# comment as the brief description. If set to NO, the JavaDoc -# comments will behave just like regular Qt-style comments -# (thus requiring an explicit @brief command for a brief description.) - -JAVADOC_AUTOBRIEF = NO - -# If the QT_AUTOBRIEF tag is set to YES then Doxygen will -# interpret the first line (until the first dot) of a Qt-style -# comment as the brief description. If set to NO, the comments -# will behave just like regular Qt-style comments (thus requiring -# an explicit \brief command for a brief description.) - -QT_AUTOBRIEF = NO - -# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen -# treat a multi-line C++ special comment block (i.e. a block of //! or /// -# comments) as a brief description. This used to be the default behaviour. -# The new default is to treat a multi-line C++ comment block as a detailed -# description. Set this tag to YES if you prefer the old behaviour instead. - -MULTILINE_CPP_IS_BRIEF = NO - -# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented -# member inherits the documentation from any documented member that it -# re-implements. - -INHERIT_DOCS = YES - -# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce -# a new page for each member. If set to NO, the documentation of a member will -# be part of the file/class/namespace that contains it. - -SEPARATE_MEMBER_PAGES = NO - -# The TAB_SIZE tag can be used to set the number of spaces in a tab. -# Doxygen uses this value to replace tabs by spaces in code fragments. - -TAB_SIZE = 4 - -# This tag can be used to specify a number of aliases that acts -# as commands in the documentation. An alias has the form "name=value". -# For example adding "sideeffect=\par Side Effects:\n" will allow you to -# put the command \sideeffect (or @sideeffect) in the documentation, which -# will result in a user-defined paragraph with heading "Side Effects:". -# You can put \n's in the value part of an alias to insert newlines. - -ALIASES = - -# This tag can be used to specify a number of word-keyword mappings (TCL only). -# A mapping has the form "name=value". For example adding -# "class=itcl::class" will allow you to use the command class in the -# itcl::class meaning. - -TCL_SUBST = - -# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C -# sources only. Doxygen will then generate output that is more tailored for C. -# For instance, some of the names that are used will be different. The list -# of all members will be omitted, etc. - -OPTIMIZE_OUTPUT_FOR_C = YES - -# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java -# sources only. Doxygen will then generate output that is more tailored for -# Java. For instance, namespaces will be presented as packages, qualified -# scopes will look different, etc. - -OPTIMIZE_OUTPUT_JAVA = NO - -# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran -# sources only. Doxygen will then generate output that is more tailored for -# Fortran. - -OPTIMIZE_FOR_FORTRAN = NO - -# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL -# sources. Doxygen will then generate output that is tailored for -# VHDL. - -OPTIMIZE_OUTPUT_VHDL = NO - -# Doxygen selects the parser to use depending on the extension of the files it -# parses. With this tag you can assign which parser to use for a given -# extension. Doxygen has a built-in mapping, but you can override or extend it -# using this tag. The format is ext=language, where ext is a file extension, -# and language is one of the parsers supported by doxygen: IDL, Java, -# Javascript, CSharp, C, C++, D, PHP, Objective-C, Python, Fortran, VHDL, C, -# C++. For instance to make doxygen treat .inc files as Fortran files (default -# is PHP), and .f files as C (default is Fortran), use: inc=Fortran f=C. Note -# that for custom extensions you also need to set FILE_PATTERNS otherwise the -# files are not read by doxygen. - -EXTENSION_MAPPING = - -# If MARKDOWN_SUPPORT is enabled (the default) then doxygen pre-processes all -# comments according to the Markdown format, which allows for more readable -# documentation. See http://daringfireball.net/projects/markdown/ for details. -# The output of markdown processing is further processed by doxygen, so you -# can mix doxygen, HTML, and XML commands with Markdown formatting. -# Disable only in case of backward compatibilities issues. - -MARKDOWN_SUPPORT = YES - -# When enabled doxygen tries to link words that correspond to documented -# classes, or namespaces to their corresponding documentation. Such a link can -# be prevented in individual cases by by putting a % sign in front of the word -# or globally by setting AUTOLINK_SUPPORT to NO. - -AUTOLINK_SUPPORT = YES - -# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want -# to include (a tag file for) the STL sources as input, then you should -# set this tag to YES in order to let doxygen match functions declarations and -# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. -# func(std::string) {}). This also makes the inheritance and collaboration -# diagrams that involve STL classes more complete and accurate. - -BUILTIN_STL_SUPPORT = NO - -# If you use Microsoft's C++/CLI language, you should set this option to YES to -# enable parsing support. - -CPP_CLI_SUPPORT = NO - -# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. -# Doxygen will parse them like normal C++ but will assume all classes use public -# instead of private inheritance when no explicit protection keyword is present. - -SIP_SUPPORT = NO - -# For Microsoft's IDL there are propget and propput attributes to indicate -# getter and setter methods for a property. Setting this option to YES (the -# default) will make doxygen replace the get and set methods by a property in -# the documentation. This will only work if the methods are indeed getting or -# setting a simple type. If this is not the case, or you want to show the -# methods anyway, you should set this option to NO. - -IDL_PROPERTY_SUPPORT = YES - -# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC -# tag is set to YES, then doxygen will reuse the documentation of the first -# member in the group (if any) for the other members of the group. By default -# all members of a group must be documented explicitly. - -DISTRIBUTE_GROUP_DOC = NO - -# Set the SUBGROUPING tag to YES (the default) to allow class member groups of -# the same type (for instance a group of public functions) to be put as a -# subgroup of that type (e.g. under the Public Functions section). Set it to -# NO to prevent subgrouping. Alternatively, this can be done per class using -# the \nosubgrouping command. - -SUBGROUPING = YES - -# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and -# unions are shown inside the group in which they are included (e.g. using -# @ingroup) instead of on a separate page (for HTML and Man pages) or -# section (for LaTeX and RTF). - -INLINE_GROUPED_CLASSES = NO - -# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and -# unions with only public data fields or simple typedef fields will be shown -# inline in the documentation of the scope in which they are defined (i.e. file, -# namespace, or group documentation), provided this scope is documented. If set -# to NO (the default), structs, classes, and unions are shown on a separate -# page (for HTML and Man pages) or section (for LaTeX and RTF). - -INLINE_SIMPLE_STRUCTS = NO - -# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum -# is documented as struct, union, or enum with the name of the typedef. So -# typedef struct TypeS {} TypeT, will appear in the documentation as a struct -# with name TypeT. When disabled the typedef will appear as a member of a file, -# namespace, or class. And the struct will be named TypeS. This can typically -# be useful for C code in case the coding convention dictates that all compound -# types are typedef'ed and only the typedef is referenced, never the tag name. - -TYPEDEF_HIDES_STRUCT = NO - -# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This -# cache is used to resolve symbols given their name and scope. Since this can -# be an expensive process and often the same symbol appear multiple times in -# the code, doxygen keeps a cache of pre-resolved symbols. If the cache is too -# small doxygen will become slower. If the cache is too large, memory is wasted. -# The cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid -# range is 0..9, the default is 0, corresponding to a cache size of 2^16 = 65536 -# symbols. - -LOOKUP_CACHE_SIZE = 0 - -#--------------------------------------------------------------------------- -# Build related configuration options -#--------------------------------------------------------------------------- - -# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in -# documentation are documented, even if no documentation was available. -# Private class members and static file members will be hidden unless -# the EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES - -EXTRACT_ALL = NO - -# If the EXTRACT_PRIVATE tag is set to YES all private members of a class -# will be included in the documentation. - -EXTRACT_PRIVATE = NO - -# If the EXTRACT_PACKAGE tag is set to YES all members with package or internal -# scope will be included in the documentation. - -EXTRACT_PACKAGE = NO - -# If the EXTRACT_STATIC tag is set to YES all static members of a file -# will be included in the documentation. - -EXTRACT_STATIC = NO - -# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) -# defined locally in source files will be included in the documentation. -# If set to NO only classes defined in header files are included. - -EXTRACT_LOCAL_CLASSES = YES - -# This flag is only useful for Objective-C code. When set to YES local -# methods, which are defined in the implementation section but not in -# the interface are included in the documentation. -# If set to NO (the default) only methods in the interface are included. - -EXTRACT_LOCAL_METHODS = NO - -# If this flag is set to YES, the members of anonymous namespaces will be -# extracted and appear in the documentation as a namespace called -# 'anonymous_namespace{file}', where file will be replaced with the base -# name of the file that contains the anonymous namespace. By default -# anonymous namespaces are hidden. - -EXTRACT_ANON_NSPACES = NO - -# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all -# undocumented members of documented classes, files or namespaces. -# If set to NO (the default) these members will be included in the -# various overviews, but no documentation section is generated. -# This option has no effect if EXTRACT_ALL is enabled. - -HIDE_UNDOC_MEMBERS = NO - -# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all -# undocumented classes that are normally visible in the class hierarchy. -# If set to NO (the default) these classes will be included in the various -# overviews. This option has no effect if EXTRACT_ALL is enabled. - -HIDE_UNDOC_CLASSES = NO - -# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all -# friend (class|struct|union) declarations. -# If set to NO (the default) these declarations will be included in the -# documentation. - -HIDE_FRIEND_COMPOUNDS = NO - -# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any -# documentation blocks found inside the body of a function. -# If set to NO (the default) these blocks will be appended to the -# function's detailed documentation block. - -HIDE_IN_BODY_DOCS = NO - -# The INTERNAL_DOCS tag determines if documentation -# that is typed after a \internal command is included. If the tag is set -# to NO (the default) then the documentation will be excluded. -# Set it to YES to include the internal documentation. - -INTERNAL_DOCS = NO - -# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate -# file names in lower-case letters. If set to YES upper-case letters are also -# allowed. This is useful if you have classes or files whose names only differ -# in case and if your file system supports case sensitive file names. Windows -# and Mac users are advised to set this option to NO. - -CASE_SENSE_NAMES = NO - -# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen -# will show members with their full class and namespace scopes in the -# documentation. If set to YES the scope will be hidden. - -HIDE_SCOPE_NAMES = YES - -# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen -# will put a list of the files that are included by a file in the documentation -# of that file. - -SHOW_INCLUDE_FILES = YES - -# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen -# will list include files with double quotes in the documentation -# rather than with sharp brackets. - -FORCE_LOCAL_INCLUDES = NO - -# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] -# is inserted in the documentation for inline members. - -INLINE_INFO = YES - -# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen -# will sort the (detailed) documentation of file and class members -# alphabetically by member name. If set to NO the members will appear in -# declaration order. - -SORT_MEMBER_DOCS = YES - -# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the -# brief documentation of file, namespace and class members alphabetically -# by member name. If set to NO (the default) the members will appear in -# declaration order. - -SORT_BRIEF_DOCS = NO - -# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen -# will sort the (brief and detailed) documentation of class members so that -# constructors and destructors are listed first. If set to NO (the default) -# the constructors will appear in the respective orders defined by -# SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. -# This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO -# and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. - -SORT_MEMBERS_CTORS_1ST = NO - -# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the -# hierarchy of group names into alphabetical order. If set to NO (the default) -# the group names will appear in their defined order. - -SORT_GROUP_NAMES = NO - -# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be -# sorted by fully-qualified names, including namespaces. If set to -# NO (the default), the class list will be sorted only by class name, -# not including the namespace part. -# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. -# Note: This option applies only to the class list, not to the -# alphabetical list. - -SORT_BY_SCOPE_NAME = NO - -# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to -# do proper type resolution of all parameters of a function it will reject a -# match between the prototype and the implementation of a member function even -# if there is only one candidate or it is obvious which candidate to choose -# by doing a simple string match. By disabling STRICT_PROTO_MATCHING doxygen -# will still accept a match between prototype and implementation in such cases. - -STRICT_PROTO_MATCHING = NO - -# The GENERATE_TODOLIST tag can be used to enable (YES) or -# disable (NO) the todo list. This list is created by putting \todo -# commands in the documentation. - -GENERATE_TODOLIST = YES - -# The GENERATE_TESTLIST tag can be used to enable (YES) or -# disable (NO) the test list. This list is created by putting \test -# commands in the documentation. - -GENERATE_TESTLIST = YES - -# The GENERATE_BUGLIST tag can be used to enable (YES) or -# disable (NO) the bug list. This list is created by putting \bug -# commands in the documentation. - -GENERATE_BUGLIST = YES - -# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or -# disable (NO) the deprecated list. This list is created by putting -# \deprecated commands in the documentation. - -GENERATE_DEPRECATEDLIST= YES - -# The ENABLED_SECTIONS tag can be used to enable conditional -# documentation sections, marked by \if section-label ... \endif -# and \cond section-label ... \endcond blocks. - -ENABLED_SECTIONS = - -# The MAX_INITIALIZER_LINES tag determines the maximum number of lines -# the initial value of a variable or macro consists of for it to appear in -# the documentation. If the initializer consists of more lines than specified -# here it will be hidden. Use a value of 0 to hide initializers completely. -# The appearance of the initializer of individual variables and macros in the -# documentation can be controlled using \showinitializer or \hideinitializer -# command in the documentation regardless of this setting. - -MAX_INITIALIZER_LINES = 30 - -# Set the SHOW_USED_FILES tag to NO to disable the list of files generated -# at the bottom of the documentation of classes and structs. If set to YES the -# list will mention the files that were used to generate the documentation. - -SHOW_USED_FILES = YES - -# Set the SHOW_FILES tag to NO to disable the generation of the Files page. -# This will remove the Files entry from the Quick Index and from the -# Folder Tree View (if specified). The default is YES. - -SHOW_FILES = YES - -# Set the SHOW_NAMESPACES tag to NO to disable the generation of the -# Namespaces page. This will remove the Namespaces entry from the Quick Index -# and from the Folder Tree View (if specified). The default is YES. - -SHOW_NAMESPACES = YES - -# The FILE_VERSION_FILTER tag can be used to specify a program or script that -# doxygen should invoke to get the current version for each file (typically from -# the version control system). Doxygen will invoke the program by executing (via -# popen()) the command , where is the value of -# the FILE_VERSION_FILTER tag, and is the name of an input file -# provided by doxygen. Whatever the program writes to standard output -# is used as the file version. See the manual for examples. - -FILE_VERSION_FILTER = - -# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed -# by doxygen. The layout file controls the global structure of the generated -# output files in an output format independent way. To create the layout file -# that represents doxygen's defaults, run doxygen with the -l option. -# You can optionally specify a file name after the option, if omitted -# DoxygenLayout.xml will be used as the name of the layout file. - -LAYOUT_FILE = - -# The CITE_BIB_FILES tag can be used to specify one or more bib files -# containing the references data. This must be a list of .bib files. The -# .bib extension is automatically appended if omitted. Using this command -# requires the bibtex tool to be installed. See also -# http://en.wikipedia.org/wiki/BibTeX for more info. For LaTeX the style -# of the bibliography can be controlled using LATEX_BIB_STYLE. To use this -# feature you need bibtex and perl available in the search path. Do not use -# file names with spaces, bibtex cannot handle them. - -CITE_BIB_FILES = - -#--------------------------------------------------------------------------- -# configuration options related to warning and progress messages -#--------------------------------------------------------------------------- - -# The QUIET tag can be used to turn on/off the messages that are generated -# by doxygen. Possible values are YES and NO. If left blank NO is used. - -QUIET = NO - -# The WARNINGS tag can be used to turn on/off the warning messages that are -# generated by doxygen. Possible values are YES and NO. If left blank -# NO is used. - -WARNINGS = YES - -# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings -# for undocumented members. If EXTRACT_ALL is set to YES then this flag will -# automatically be disabled. - -WARN_IF_UNDOCUMENTED = YES - -# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for -# potential errors in the documentation, such as not documenting some -# parameters in a documented function, or documenting parameters that -# don't exist or using markup commands wrongly. - -WARN_IF_DOC_ERROR = YES - -# The WARN_NO_PARAMDOC option can be enabled to get warnings for -# functions that are documented, but have no documentation for their parameters -# or return value. If set to NO (the default) doxygen will only warn about -# wrong or incomplete parameter documentation, but not about the absence of -# documentation. - -WARN_NO_PARAMDOC = NO - -# The WARN_FORMAT tag determines the format of the warning messages that -# doxygen can produce. The string should contain the $file, $line, and $text -# tags, which will be replaced by the file and line number from which the -# warning originated and the warning text. Optionally the format may contain -# $version, which will be replaced by the version of the file (if it could -# be obtained via FILE_VERSION_FILTER) - -WARN_FORMAT = "$file:$line: $text" - -# The WARN_LOGFILE tag can be used to specify a file to which warning -# and error messages should be written. If left blank the output is written -# to stderr. - -WARN_LOGFILE = - -#--------------------------------------------------------------------------- -# configuration options related to the input files -#--------------------------------------------------------------------------- - -# The INPUT tag can be used to specify the files and/or directories that contain -# documented source files. You may enter file names like "myfile.cpp" or -# directories like "/usr/src/myproject". Separate the files or directories -# with spaces. - -INPUT = ../ - -# This tag can be used to specify the character encoding of the source files -# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is -# also the default input encoding. Doxygen uses libiconv (or the iconv built -# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for -# the list of possible encodings. - -INPUT_ENCODING = UTF-8 - -# If the value of the INPUT tag contains directories, you can use the -# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp -# and *.h) to filter out the source-files in the directories. If left -# blank the following patterns are tested: -# *.c *.cc *.cxx *.cpp *.c++ *.d *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh -# *.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py -# *.f90 *.f *.for *.vhd *.vhdl - -FILE_PATTERNS = *.c \ - *.cc \ - *.cxx \ - *.cpp \ - *.c++ \ - *.d \ - *.java \ - *.ii \ - *.ixx \ - *.ipp \ - *.i++ \ - *.inl \ - *.h \ - *.hh \ - *.hxx \ - *.hpp \ - *.h++ \ - *.idl \ - *.odl \ - *.cs \ - *.php \ - *.php3 \ - *.inc \ - *.m \ - *.markdown \ - *.md \ - *.mm \ - *.dox \ - *.py \ - *.f90 \ - *.f \ - *.for \ - *.vhd \ - *.vhdl \ - README.txt - -# The RECURSIVE tag can be used to turn specify whether or not subdirectories -# should be searched for input files as well. Possible values are YES and NO. -# If left blank NO is used. - -RECURSIVE = YES - -# The EXCLUDE tag can be used to specify files and/or directories that should be -# excluded from the INPUT source files. This way you can easily exclude a -# subdirectory from a directory tree whose root is specified with the INPUT tag. -# Note that relative paths are relative to the directory from which doxygen is -# run. - -EXCLUDE = - -# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or -# directories that are symbolic links (a Unix file system feature) are excluded -# from the input. - -EXCLUDE_SYMLINKS = NO - -# If the value of the INPUT tag contains directories, you can use the -# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude -# certain files from those directories. Note that the wildcards are matched -# against the file with absolute path, so to exclude all test directories -# for example use the pattern */test/* - -EXCLUDE_PATTERNS = - -# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names -# (namespaces, classes, functions, etc.) that should be excluded from the -# output. The symbol name can be a fully qualified name, a word, or if the -# wildcard * is used, a substring. Examples: ANamespace, AClass, -# AClass::ANamespace, ANamespace::*Test - -EXCLUDE_SYMBOLS = - -# The EXAMPLE_PATH tag can be used to specify one or more files or -# directories that contain example code fragments that are included (see -# the \include command). - -EXAMPLE_PATH = - -# If the value of the EXAMPLE_PATH tag contains directories, you can use the -# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp -# and *.h) to filter out the source-files in the directories. If left -# blank all files are included. - -EXAMPLE_PATTERNS = * - -# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be -# searched for input files to be used with the \include or \dontinclude -# commands irrespective of the value of the RECURSIVE tag. -# Possible values are YES and NO. If left blank NO is used. - -EXAMPLE_RECURSIVE = NO - -# The IMAGE_PATH tag can be used to specify one or more files or -# directories that contain image that are included in the documentation (see -# the \image command). - -IMAGE_PATH = - -# The INPUT_FILTER tag can be used to specify a program that doxygen should -# invoke to filter for each input file. Doxygen will invoke the filter program -# by executing (via popen()) the command , where -# is the value of the INPUT_FILTER tag, and is the name of an -# input file. Doxygen will then use the output that the filter program writes -# to standard output. If FILTER_PATTERNS is specified, this tag will be ignored. -# Note that the filter must not add or remove lines; it is applied before the -# code is scanned, but not when the output code is generated. If lines are added -# or removed, the anchors will not be placed correctly. - -INPUT_FILTER = - -# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern -# basis. Doxygen will compare the file name with each pattern and apply the -# filter if there is a match. The filters are a list of the form: -# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further -# info on how filters are used. If FILTER_PATTERNS is empty or if -# non of the patterns match the file name, INPUT_FILTER is applied. - -FILTER_PATTERNS = - -# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using -# INPUT_FILTER) will be used to filter the input files when producing source -# files to browse (i.e. when SOURCE_BROWSER is set to YES). - -FILTER_SOURCE_FILES = NO - -# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file -# pattern. A pattern will override the setting for FILTER_PATTERN (if any) -# and it is also possible to disable source filtering for a specific pattern -# using *.ext= (so without naming a filter). This option only has effect when -# FILTER_SOURCE_FILES is enabled. - -FILTER_SOURCE_PATTERNS = - -# If the USE_MD_FILE_AS_MAINPAGE tag refers to the name of a markdown file that -# is part of the input, its contents will be placed on the main page -# (index.html). This can be useful if you have a project on for instance GitHub -# and want reuse the introduction page also for the doxygen output. - -USE_MDFILE_AS_MAINPAGE = - -#--------------------------------------------------------------------------- -# configuration options related to source browsing -#--------------------------------------------------------------------------- - -# If the SOURCE_BROWSER tag is set to YES then a list of source files will -# be generated. Documented entities will be cross-referenced with these sources. -# Note: To get rid of all source code in the generated output, make sure also -# VERBATIM_HEADERS is set to NO. - -SOURCE_BROWSER = NO - -# Setting the INLINE_SOURCES tag to YES will include the body -# of functions and classes directly in the documentation. - -INLINE_SOURCES = NO - -# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct -# doxygen to hide any special comment blocks from generated source code -# fragments. Normal C, C++ and Fortran comments will always remain visible. - -STRIP_CODE_COMMENTS = YES - -# If the REFERENCED_BY_RELATION tag is set to YES -# then for each documented function all documented -# functions referencing it will be listed. - -REFERENCED_BY_RELATION = NO - -# If the REFERENCES_RELATION tag is set to YES -# then for each documented function all documented entities -# called/used by that function will be listed. - -REFERENCES_RELATION = NO - -# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) -# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from -# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will -# link to the source code. Otherwise they will link to the documentation. - -REFERENCES_LINK_SOURCE = YES - -# If the USE_HTAGS tag is set to YES then the references to source code -# will point to the HTML generated by the htags(1) tool instead of doxygen -# built-in source browser. The htags tool is part of GNU's global source -# tagging system (see http://www.gnu.org/software/global/global.html). You -# will need version 4.8.6 or higher. - -USE_HTAGS = NO - -# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen -# will generate a verbatim copy of the header file for each class for -# which an include is specified. Set to NO to disable this. - -VERBATIM_HEADERS = YES - -# If CLANG_ASSISTED_PARSING is set to YES, then doxygen will use the clang parser -# for more acurate parsing at the cost of reduced performance. This can be -# particularly helpful with template rich C++ code for which doxygen's built-in -# parser lacks the necessairy type information. - -CLANG_ASSISTED_PARSING = NO - -# If clang assisted parsing is enabled you can provide the compiler with command -# line options that you would normally use when invoking the compiler. Note that -# the include paths will already be set by doxygen for the files and directories -# specified at INPUT and INCLUDE_PATH. - -CLANG_OPTIONS = - -#--------------------------------------------------------------------------- -# configuration options related to the alphabetical class index -#--------------------------------------------------------------------------- - -# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index -# of all compounds will be generated. Enable this if the project -# contains a lot of classes, structs, unions or interfaces. - -ALPHABETICAL_INDEX = YES - -# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then -# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns -# in which this list will be split (can be a number in the range [1..20]) - -COLS_IN_ALPHA_INDEX = 5 - -# In case all classes in a project start with a common prefix, all -# classes will be put under the same header in the alphabetical index. -# The IGNORE_PREFIX tag can be used to specify one or more prefixes that -# should be ignored while generating the index headers. - -IGNORE_PREFIX = - -#--------------------------------------------------------------------------- -# configuration options related to the HTML output -#--------------------------------------------------------------------------- - -# If the GENERATE_HTML tag is set to YES (the default) Doxygen will -# generate HTML output. - -GENERATE_HTML = YES - -# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `html' will be used as the default path. - -HTML_OUTPUT = html - -# The HTML_FILE_EXTENSION tag can be used to specify the file extension for -# each generated HTML page (for example: .htm,.php,.asp). If it is left blank -# doxygen will generate files with .html extension. - -HTML_FILE_EXTENSION = .html - -# The HTML_HEADER tag can be used to specify a personal HTML header for -# each generated HTML page. If it is left blank doxygen will generate a -# standard header. Note that when using a custom header you are responsible -# for the proper inclusion of any scripts and style sheets that doxygen -# needs, which is dependent on the configuration options used. -# It is advised to generate a default header using "doxygen -w html -# header.html footer.html stylesheet.css YourConfigFile" and then modify -# that header. Note that the header is subject to change so you typically -# have to redo this when upgrading to a newer version of doxygen or when -# changing the value of configuration settings such as GENERATE_TREEVIEW! - -HTML_HEADER = - -# The HTML_FOOTER tag can be used to specify a personal HTML footer for -# each generated HTML page. If it is left blank doxygen will generate a -# standard footer. - -HTML_FOOTER = - -# The HTML_STYLESHEET tag can be used to specify a user-defined cascading -# style sheet that is used by each HTML page. It can be used to -# fine-tune the look of the HTML output. If left blank doxygen will -# generate a default style sheet. Note that it is recommended to use -# HTML_EXTRA_STYLESHEET instead of this one, as it is more robust and this -# tag will in the future become obsolete. - -HTML_STYLESHEET = - -# The HTML_EXTRA_STYLESHEET tag can be used to specify an additional -# user-defined cascading style sheet that is included after the standard -# style sheets created by doxygen. Using this option one can overrule -# certain style aspects. This is preferred over using HTML_STYLESHEET -# since it does not replace the standard style sheet and is therefor more -# robust against future updates. Doxygen will copy the style sheet file to -# the output directory. - -HTML_EXTRA_STYLESHEET = - -# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or -# other source files which should be copied to the HTML output directory. Note -# that these files will be copied to the base HTML output directory. Use the -# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these -# files. In the HTML_STYLESHEET file, use the file name only. Also note that -# the files will be copied as-is; there are no commands or markers available. - -HTML_EXTRA_FILES = - -# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. -# Doxygen will adjust the colors in the style sheet and background images -# according to this color. Hue is specified as an angle on a colorwheel, -# see http://en.wikipedia.org/wiki/Hue for more information. -# For instance the value 0 represents red, 60 is yellow, 120 is green, -# 180 is cyan, 240 is blue, 300 purple, and 360 is red again. -# The allowed range is 0 to 359. - -HTML_COLORSTYLE_HUE = 220 - -# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of -# the colors in the HTML output. For a value of 0 the output will use -# grayscales only. A value of 255 will produce the most vivid colors. - -HTML_COLORSTYLE_SAT = 100 - -# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to -# the luminance component of the colors in the HTML output. Values below -# 100 gradually make the output lighter, whereas values above 100 make -# the output darker. The value divided by 100 is the actual gamma applied, -# so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2, -# and 100 does not change the gamma. - -HTML_COLORSTYLE_GAMMA = 80 - -# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML -# page will contain the date and time when the page was generated. Setting -# this to NO can help when comparing the output of multiple runs. - -HTML_TIMESTAMP = YES - -# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML -# documentation will contain sections that can be hidden and shown after the -# page has loaded. - -HTML_DYNAMIC_SECTIONS = NO - -# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of -# entries shown in the various tree structured indices initially; the user -# can expand and collapse entries dynamically later on. Doxygen will expand -# the tree to such a level that at most the specified number of entries are -# visible (unless a fully collapsed tree already exceeds this amount). -# So setting the number of entries 1 will produce a full collapsed tree by -# default. 0 is a special value representing an infinite number of entries -# and will result in a full expanded tree by default. - -HTML_INDEX_NUM_ENTRIES = 100 - -# If the GENERATE_DOCSET tag is set to YES, additional index files -# will be generated that can be used as input for Apple's Xcode 3 -# integrated development environment, introduced with OSX 10.5 (Leopard). -# To create a documentation set, doxygen will generate a Makefile in the -# HTML output directory. Running make will produce the docset in that -# directory and running "make install" will install the docset in -# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find -# it at startup. -# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html -# for more information. - -GENERATE_DOCSET = NO - -# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the -# feed. A documentation feed provides an umbrella under which multiple -# documentation sets from a single provider (such as a company or product suite) -# can be grouped. - -DOCSET_FEEDNAME = "Doxygen generated docs" - -# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that -# should uniquely identify the documentation set bundle. This should be a -# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen -# will append .docset to the name. - -DOCSET_BUNDLE_ID = org.doxygen.Project - -# When GENERATE_PUBLISHER_ID tag specifies a string that should uniquely -# identify the documentation publisher. This should be a reverse domain-name -# style string, e.g. com.mycompany.MyDocSet.documentation. - -DOCSET_PUBLISHER_ID = org.doxygen.Publisher - -# The GENERATE_PUBLISHER_NAME tag identifies the documentation publisher. - -DOCSET_PUBLISHER_NAME = Publisher - -# If the GENERATE_HTMLHELP tag is set to YES, additional index files -# will be generated that can be used as input for tools like the -# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) -# of the generated HTML documentation. - -GENERATE_HTMLHELP = NO - -# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can -# be used to specify the file name of the resulting .chm file. You -# can add a path in front of the file if the result should not be -# written to the html output directory. - -CHM_FILE = - -# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can -# be used to specify the location (absolute path including file name) of -# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run -# the HTML help compiler on the generated index.hhp. - -HHC_LOCATION = - -# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag -# controls if a separate .chi index file is generated (YES) or that -# it should be included in the master .chm file (NO). - -GENERATE_CHI = NO - -# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING -# is used to encode HtmlHelp index (hhk), content (hhc) and project file -# content. - -CHM_INDEX_ENCODING = - -# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag -# controls whether a binary table of contents is generated (YES) or a -# normal table of contents (NO) in the .chm file. - -BINARY_TOC = NO - -# The TOC_EXPAND flag can be set to YES to add extra items for group members -# to the contents of the HTML help documentation and to the tree view. - -TOC_EXPAND = NO - -# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and -# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated -# that can be used as input for Qt's qhelpgenerator to generate a -# Qt Compressed Help (.qch) of the generated HTML documentation. - -GENERATE_QHP = NO - -# If the QHG_LOCATION tag is specified, the QCH_FILE tag can -# be used to specify the file name of the resulting .qch file. -# The path specified is relative to the HTML output folder. - -QCH_FILE = - -# The QHP_NAMESPACE tag specifies the namespace to use when generating -# Qt Help Project output. For more information please see -# http://doc.trolltech.com/qthelpproject.html#namespace - -QHP_NAMESPACE = org.doxygen.Project - -# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating -# Qt Help Project output. For more information please see -# http://doc.trolltech.com/qthelpproject.html#virtual-folders - -QHP_VIRTUAL_FOLDER = doc - -# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to -# add. For more information please see -# http://doc.trolltech.com/qthelpproject.html#custom-filters - -QHP_CUST_FILTER_NAME = - -# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the -# custom filter to add. For more information please see -# -# Qt Help Project / Custom Filters. - -QHP_CUST_FILTER_ATTRS = - -# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this -# project's -# filter section matches. -# -# Qt Help Project / Filter Attributes. - -QHP_SECT_FILTER_ATTRS = - -# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can -# be used to specify the location of Qt's qhelpgenerator. -# If non-empty doxygen will try to run qhelpgenerator on the generated -# .qhp file. - -QHG_LOCATION = - -# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files -# will be generated, which together with the HTML files, form an Eclipse help -# plugin. To install this plugin and make it available under the help contents -# menu in Eclipse, the contents of the directory containing the HTML and XML -# files needs to be copied into the plugins directory of eclipse. The name of -# the directory within the plugins directory should be the same as -# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before -# the help appears. - -GENERATE_ECLIPSEHELP = NO - -# A unique identifier for the eclipse help plugin. When installing the plugin -# the directory name containing the HTML and XML files should also have -# this name. - -ECLIPSE_DOC_ID = org.doxygen.Project - -# The DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) -# at top of each HTML page. The value NO (the default) enables the index and -# the value YES disables it. Since the tabs have the same information as the -# navigation tree you can set this option to NO if you already set -# GENERATE_TREEVIEW to YES. - -DISABLE_INDEX = NO - -# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index -# structure should be generated to display hierarchical information. -# If the tag value is set to YES, a side panel will be generated -# containing a tree-like index structure (just like the one that -# is generated for HTML Help). For this to work a browser that supports -# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). -# Windows users are probably better off using the HTML help feature. -# Since the tree basically has the same information as the tab index you -# could consider to set DISABLE_INDEX to NO when enabling this option. - -GENERATE_TREEVIEW = NO - -# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values -# (range [0,1..20]) that doxygen will group on one line in the generated HTML -# documentation. Note that a value of 0 will completely suppress the enum -# values from appearing in the overview section. - -ENUM_VALUES_PER_LINE = 4 - -# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be -# used to set the initial width (in pixels) of the frame in which the tree -# is shown. - -TREEVIEW_WIDTH = 250 - -# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open -# links to external symbols imported via tag files in a separate window. - -EXT_LINKS_IN_WINDOW = NO - -# Use this tag to change the font size of Latex formulas included -# as images in the HTML documentation. The default is 10. Note that -# when you change the font size after a successful doxygen run you need -# to manually remove any form_*.png images from the HTML output directory -# to force them to be regenerated. - -FORMULA_FONTSIZE = 10 - -# Use the FORMULA_TRANPARENT tag to determine whether or not the images -# generated for formulas are transparent PNGs. Transparent PNGs are -# not supported properly for IE 6.0, but are supported on all modern browsers. -# Note that when changing this option you need to delete any form_*.png files -# in the HTML output before the changes have effect. - -FORMULA_TRANSPARENT = YES - -# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax -# (see http://www.mathjax.org) which uses client side Javascript for the -# rendering instead of using prerendered bitmaps. Use this if you do not -# have LaTeX installed or if you want to formulas look prettier in the HTML -# output. When enabled you may also need to install MathJax separately and -# configure the path to it using the MATHJAX_RELPATH option. - -USE_MATHJAX = NO - -# When MathJax is enabled you can set the default output format to be used for -# the MathJax output. Supported types are HTML-CSS, NativeMML (i.e. MathML) and -# SVG. The default value is HTML-CSS, which is slower, but has the best -# compatibility. - -MATHJAX_FORMAT = HTML-CSS - -# When MathJax is enabled you need to specify the location relative to the -# HTML output directory using the MATHJAX_RELPATH option. The destination -# directory should contain the MathJax.js script. For instance, if the mathjax -# directory is located at the same level as the HTML output directory, then -# MATHJAX_RELPATH should be ../mathjax. The default value points to -# the MathJax Content Delivery Network so you can quickly see the result without -# installing MathJax. However, it is strongly recommended to install a local -# copy of MathJax from http://www.mathjax.org before deployment. - -MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest - -# The MATHJAX_EXTENSIONS tag can be used to specify one or MathJax extension -# names that should be enabled during MathJax rendering. - -MATHJAX_EXTENSIONS = - -# The MATHJAX_CODEFILE tag can be used to specify a file with javascript -# pieces of code that will be used on startup of the MathJax code. - -MATHJAX_CODEFILE = - -# When the SEARCHENGINE tag is enabled doxygen will generate a search box -# for the HTML output. The underlying search engine uses javascript -# and DHTML and should work on any modern browser. Note that when using -# HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets -# (GENERATE_DOCSET) there is already a search function so this one should -# typically be disabled. For large projects the javascript based search engine -# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution. - -SEARCHENGINE = YES - -# When the SERVER_BASED_SEARCH tag is enabled the search engine will be -# implemented using a web server instead of a web client using Javascript. -# There are two flavours of web server based search depending on the -# EXTERNAL_SEARCH setting. When disabled, doxygen will generate a PHP script for -# searching and an index file used by the script. When EXTERNAL_SEARCH is -# enabled the indexing and searching needs to be provided by external tools. -# See the manual for details. - -SERVER_BASED_SEARCH = NO - -# When EXTERNAL_SEARCH is enabled doxygen will no longer generate the PHP -# script for searching. Instead the search results are written to an XML file -# which needs to be processed by an external indexer. Doxygen will invoke an -# external search engine pointed to by the SEARCHENGINE_URL option to obtain -# the search results. Doxygen ships with an example indexer (doxyindexer) and -# search engine (doxysearch.cgi) which are based on the open source search -# engine library Xapian. See the manual for configuration details. - -EXTERNAL_SEARCH = NO - -# The SEARCHENGINE_URL should point to a search engine hosted by a web server -# which will returned the search results when EXTERNAL_SEARCH is enabled. -# Doxygen ships with an example search engine (doxysearch) which is based on -# the open source search engine library Xapian. See the manual for configuration -# details. - -SEARCHENGINE_URL = - -# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the unindexed -# search data is written to a file for indexing by an external tool. With the -# SEARCHDATA_FILE tag the name of this file can be specified. - -SEARCHDATA_FILE = searchdata.xml - -# When SERVER_BASED_SEARCH AND EXTERNAL_SEARCH are both enabled the -# EXTERNAL_SEARCH_ID tag can be used as an identifier for the project. This is -# useful in combination with EXTRA_SEARCH_MAPPINGS to search through multiple -# projects and redirect the results back to the right project. - -EXTERNAL_SEARCH_ID = - -# The EXTRA_SEARCH_MAPPINGS tag can be used to enable searching through doxygen -# projects other than the one defined by this configuration file, but that are -# all added to the same external search index. Each project needs to have a -# unique id set via EXTERNAL_SEARCH_ID. The search mapping then maps the id -# of to a relative location where the documentation can be found. -# The format is: EXTRA_SEARCH_MAPPINGS = id1=loc1 id2=loc2 ... - -EXTRA_SEARCH_MAPPINGS = - -#--------------------------------------------------------------------------- -# configuration options related to the LaTeX output -#--------------------------------------------------------------------------- - -# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will -# generate Latex output. - -GENERATE_LATEX = YES - -# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `latex' will be used as the default path. - -LATEX_OUTPUT = latex - -# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be -# invoked. If left blank `latex' will be used as the default command name. -# Note that when enabling USE_PDFLATEX this option is only used for -# generating bitmaps for formulas in the HTML output, but not in the -# Makefile that is written to the output directory. - -LATEX_CMD_NAME = latex - -# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to -# generate index for LaTeX. If left blank `makeindex' will be used as the -# default command name. - -MAKEINDEX_CMD_NAME = makeindex - -# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact -# LaTeX documents. This may be useful for small projects and may help to -# save some trees in general. - -COMPACT_LATEX = NO - -# The PAPER_TYPE tag can be used to set the paper type that is used -# by the printer. Possible values are: a4, letter, legal and -# executive. If left blank a4 will be used. - -PAPER_TYPE = a4 - -# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX -# packages that should be included in the LaTeX output. - -EXTRA_PACKAGES = - -# The LATEX_HEADER tag can be used to specify a personal LaTeX header for -# the generated latex document. The header should contain everything until -# the first chapter. If it is left blank doxygen will generate a -# standard header. Notice: only use this tag if you know what you are doing! - -LATEX_HEADER = - -# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for -# the generated latex document. The footer should contain everything after -# the last chapter. If it is left blank doxygen will generate a -# standard footer. Notice: only use this tag if you know what you are doing! - -LATEX_FOOTER = - -# The LATEX_EXTRA_FILES tag can be used to specify one or more extra images -# or other source files which should be copied to the LaTeX output directory. -# Note that the files will be copied as-is; there are no commands or markers -# available. - -LATEX_EXTRA_FILES = - -# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated -# is prepared for conversion to pdf (using ps2pdf). The pdf file will -# contain links (just like the HTML output) instead of page references -# This makes the output suitable for online browsing using a pdf viewer. - -PDF_HYPERLINKS = YES - -# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of -# plain latex in the generated Makefile. Set this option to YES to get a -# higher quality PDF documentation. - -USE_PDFLATEX = YES - -# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. -# command to the generated LaTeX files. This will instruct LaTeX to keep -# running if errors occur, instead of asking the user for help. -# This option is also used when generating formulas in HTML. - -LATEX_BATCHMODE = NO - -# If LATEX_HIDE_INDICES is set to YES then doxygen will not -# include the index chapters (such as File Index, Compound Index, etc.) -# in the output. - -LATEX_HIDE_INDICES = NO - -# If LATEX_SOURCE_CODE is set to YES then doxygen will include -# source code with syntax highlighting in the LaTeX output. -# Note that which sources are shown also depends on other settings -# such as SOURCE_BROWSER. - -LATEX_SOURCE_CODE = NO - -# The LATEX_BIB_STYLE tag can be used to specify the style to use for the -# bibliography, e.g. plainnat, or ieeetr. The default style is "plain". See -# http://en.wikipedia.org/wiki/BibTeX for more info. - -LATEX_BIB_STYLE = plain - -#--------------------------------------------------------------------------- -# configuration options related to the RTF output -#--------------------------------------------------------------------------- - -# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output -# The RTF output is optimized for Word 97 and may not look very pretty with -# other RTF readers or editors. - -GENERATE_RTF = NO - -# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `rtf' will be used as the default path. - -RTF_OUTPUT = rtf - -# If the COMPACT_RTF tag is set to YES Doxygen generates more compact -# RTF documents. This may be useful for small projects and may help to -# save some trees in general. - -COMPACT_RTF = NO - -# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated -# will contain hyperlink fields. The RTF file will -# contain links (just like the HTML output) instead of page references. -# This makes the output suitable for online browsing using WORD or other -# programs which support those fields. -# Note: wordpad (write) and others do not support links. - -RTF_HYPERLINKS = NO - -# Load style sheet definitions from file. Syntax is similar to doxygen's -# config file, i.e. a series of assignments. You only have to provide -# replacements, missing definitions are set to their default value. - -RTF_STYLESHEET_FILE = - -# Set optional variables used in the generation of an rtf document. -# Syntax is similar to doxygen's config file. - -RTF_EXTENSIONS_FILE = - -#--------------------------------------------------------------------------- -# configuration options related to the man page output -#--------------------------------------------------------------------------- - -# If the GENERATE_MAN tag is set to YES (the default) Doxygen will -# generate man pages - -GENERATE_MAN = NO - -# The MAN_OUTPUT tag is used to specify where the man pages will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `man' will be used as the default path. - -MAN_OUTPUT = man - -# The MAN_EXTENSION tag determines the extension that is added to -# the generated man pages (default is the subroutine's section .3) - -MAN_EXTENSION = .3 - -# If the MAN_LINKS tag is set to YES and Doxygen generates man output, -# then it will generate one additional man file for each entity -# documented in the real man page(s). These additional files -# only source the real man page, but without them the man command -# would be unable to find the correct page. The default is NO. - -MAN_LINKS = NO - -#--------------------------------------------------------------------------- -# configuration options related to the XML output -#--------------------------------------------------------------------------- - -# If the GENERATE_XML tag is set to YES Doxygen will -# generate an XML file that captures the structure of -# the code including all documentation. - -GENERATE_XML = NO - -# The XML_OUTPUT tag is used to specify where the XML pages will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `xml' will be used as the default path. - -XML_OUTPUT = xml - -# The XML_SCHEMA tag can be used to specify an XML schema, -# which can be used by a validating XML parser to check the -# syntax of the XML files. - -XML_SCHEMA = - -# The XML_DTD tag can be used to specify an XML DTD, -# which can be used by a validating XML parser to check the -# syntax of the XML files. - -XML_DTD = - -# If the XML_PROGRAMLISTING tag is set to YES Doxygen will -# dump the program listings (including syntax highlighting -# and cross-referencing information) to the XML output. Note that -# enabling this will significantly increase the size of the XML output. - -XML_PROGRAMLISTING = YES - -#--------------------------------------------------------------------------- -# configuration options related to the DOCBOOK output -#--------------------------------------------------------------------------- - -# If the GENERATE_DOCBOOK tag is set to YES Doxygen will generate DOCBOOK files -# that can be used to generate PDF. - -GENERATE_DOCBOOK = NO - -# The DOCBOOK_OUTPUT tag is used to specify where the DOCBOOK pages will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be put in -# front of it. If left blank docbook will be used as the default path. - -DOCBOOK_OUTPUT = docbook - -#--------------------------------------------------------------------------- -# configuration options for the AutoGen Definitions output -#--------------------------------------------------------------------------- - -# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will -# generate an AutoGen Definitions (see autogen.sf.net) file -# that captures the structure of the code including all -# documentation. Note that this feature is still experimental -# and incomplete at the moment. - -GENERATE_AUTOGEN_DEF = NO - -#--------------------------------------------------------------------------- -# configuration options related to the Perl module output -#--------------------------------------------------------------------------- - -# If the GENERATE_PERLMOD tag is set to YES Doxygen will -# generate a Perl module file that captures the structure of -# the code including all documentation. Note that this -# feature is still experimental and incomplete at the -# moment. - -GENERATE_PERLMOD = NO - -# If the PERLMOD_LATEX tag is set to YES Doxygen will generate -# the necessary Makefile rules, Perl scripts and LaTeX code to be able -# to generate PDF and DVI output from the Perl module output. - -PERLMOD_LATEX = NO - -# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be -# nicely formatted so it can be parsed by a human reader. This is useful -# if you want to understand what is going on. On the other hand, if this -# tag is set to NO the size of the Perl module output will be much smaller -# and Perl will parse it just the same. - -PERLMOD_PRETTY = YES - -# The names of the make variables in the generated doxyrules.make file -# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. -# This is useful so different doxyrules.make files included by the same -# Makefile don't overwrite each other's variables. - -PERLMOD_MAKEVAR_PREFIX = - -#--------------------------------------------------------------------------- -# Configuration options related to the preprocessor -#--------------------------------------------------------------------------- - -# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will -# evaluate all C-preprocessor directives found in the sources and include -# files. - -ENABLE_PREPROCESSING = YES - -# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro -# names in the source code. If set to NO (the default) only conditional -# compilation will be performed. Macro expansion can be done in a controlled -# way by setting EXPAND_ONLY_PREDEF to YES. - -MACRO_EXPANSION = NO - -# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES -# then the macro expansion is limited to the macros specified with the -# PREDEFINED and EXPAND_AS_DEFINED tags. - -EXPAND_ONLY_PREDEF = NO - -# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files -# pointed to by INCLUDE_PATH will be searched when a #include is found. - -SEARCH_INCLUDES = YES - -# The INCLUDE_PATH tag can be used to specify one or more directories that -# contain include files that are not input files but should be processed by -# the preprocessor. - -INCLUDE_PATH = - -# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard -# patterns (like *.h and *.hpp) to filter out the header-files in the -# directories. If left blank, the patterns specified with FILE_PATTERNS will -# be used. - -INCLUDE_FILE_PATTERNS = - -# The PREDEFINED tag can be used to specify one or more macro names that -# are defined before the preprocessor is started (similar to the -D option of -# gcc). The argument of the tag is a list of macros of the form: name -# or name=definition (no spaces). If the definition and the = are -# omitted =1 is assumed. To prevent a macro definition from being -# undefined via #undef or recursively expanded use the := operator -# instead of the = operator. - -PREDEFINED = - -# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then -# this tag can be used to specify a list of macro names that should be expanded. -# The macro definition that is found in the sources will be used. -# Use the PREDEFINED tag if you want to use a different macro definition that -# overrules the definition found in the source code. - -EXPAND_AS_DEFINED = - -# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then -# doxygen's preprocessor will remove all references to function-like macros -# that are alone on a line, have an all uppercase name, and do not end with a -# semicolon, because these will confuse the parser if not removed. - -SKIP_FUNCTION_MACROS = YES - -#--------------------------------------------------------------------------- -# Configuration::additions related to external references -#--------------------------------------------------------------------------- - -# The TAGFILES option can be used to specify one or more tagfiles. For each -# tag file the location of the external documentation should be added. The -# format of a tag file without this location is as follows: -# TAGFILES = file1 file2 ... -# Adding location for the tag files is done as follows: -# TAGFILES = file1=loc1 "file2 = loc2" ... -# where "loc1" and "loc2" can be relative or absolute paths -# or URLs. Note that each tag file must have a unique name (where the name does -# NOT include the path). If a tag file is not located in the directory in which -# doxygen is run, you must also specify the path to the tagfile here. - -TAGFILES = - -# When a file name is specified after GENERATE_TAGFILE, doxygen will create -# a tag file that is based on the input files it reads. - -GENERATE_TAGFILE = - -# If the ALLEXTERNALS tag is set to YES all external classes will be listed -# in the class index. If set to NO only the inherited external classes -# will be listed. - -ALLEXTERNALS = NO - -# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed -# in the modules index. If set to NO, only the current project's groups will -# be listed. - -EXTERNAL_GROUPS = YES - -# If the EXTERNAL_PAGES tag is set to YES all external pages will be listed -# in the related pages index. If set to NO, only the current project's -# pages will be listed. - -EXTERNAL_PAGES = YES - -# The PERL_PATH should be the absolute path and name of the perl script -# interpreter (i.e. the result of `which perl'). - -PERL_PATH = /usr/bin/perl - -#--------------------------------------------------------------------------- -# Configuration options related to the dot tool -#--------------------------------------------------------------------------- - -# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will -# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base -# or super classes. Setting the tag to NO turns the diagrams off. Note that -# this option also works with HAVE_DOT disabled, but it is recommended to -# install and use dot, since it yields more powerful graphs. - -CLASS_DIAGRAMS = YES - -# You can define message sequence charts within doxygen comments using the \msc -# command. Doxygen will then run the mscgen tool (see -# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the -# documentation. The MSCGEN_PATH tag allows you to specify the directory where -# the mscgen tool resides. If left empty the tool is assumed to be found in the -# default search path. - -MSCGEN_PATH = - -# If set to YES, the inheritance and collaboration graphs will hide -# inheritance and usage relations if the target is undocumented -# or is not a class. - -HIDE_UNDOC_RELATIONS = YES - -# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is -# available from the path. This tool is part of Graphviz, a graph visualization -# toolkit from AT&T and Lucent Bell Labs. The other options in this section -# have no effect if this option is set to NO (the default) - -HAVE_DOT = NO - -# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is -# allowed to run in parallel. When set to 0 (the default) doxygen will -# base this on the number of processors available in the system. You can set it -# explicitly to a value larger than 0 to get control over the balance -# between CPU load and processing speed. - -DOT_NUM_THREADS = 0 - -# By default doxygen will use the Helvetica font for all dot files that -# doxygen generates. When you want a differently looking font you can specify -# the font name using DOT_FONTNAME. You need to make sure dot is able to find -# the font, which can be done by putting it in a standard location or by setting -# the DOTFONTPATH environment variable or by setting DOT_FONTPATH to the -# directory containing the font. - -DOT_FONTNAME = Helvetica - -# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. -# The default size is 10pt. - -DOT_FONTSIZE = 10 - -# By default doxygen will tell dot to use the Helvetica font. -# If you specify a different font using DOT_FONTNAME you can use DOT_FONTPATH to -# set the path where dot can find it. - -DOT_FONTPATH = - -# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen -# will generate a graph for each documented class showing the direct and -# indirect inheritance relations. Setting this tag to YES will force the -# CLASS_DIAGRAMS tag to NO. - -CLASS_GRAPH = YES - -# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen -# will generate a graph for each documented class showing the direct and -# indirect implementation dependencies (inheritance, containment, and -# class references variables) of the class with other documented classes. - -COLLABORATION_GRAPH = YES - -# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen -# will generate a graph for groups, showing the direct groups dependencies - -GROUP_GRAPHS = YES - -# If the UML_LOOK tag is set to YES doxygen will generate inheritance and -# collaboration diagrams in a style similar to the OMG's Unified Modeling -# Language. - -UML_LOOK = NO - -# If the UML_LOOK tag is enabled, the fields and methods are shown inside -# the class node. If there are many fields or methods and many nodes the -# graph may become too big to be useful. The UML_LIMIT_NUM_FIELDS -# threshold limits the number of items for each type to make the size more -# manageable. Set this to 0 for no limit. Note that the threshold may be -# exceeded by 50% before the limit is enforced. - -UML_LIMIT_NUM_FIELDS = 10 - -# If set to YES, the inheritance and collaboration graphs will show the -# relations between templates and their instances. - -TEMPLATE_RELATIONS = NO - -# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT -# tags are set to YES then doxygen will generate a graph for each documented -# file showing the direct and indirect include dependencies of the file with -# other documented files. - -INCLUDE_GRAPH = YES - -# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and -# HAVE_DOT tags are set to YES then doxygen will generate a graph for each -# documented header file showing the documented files that directly or -# indirectly include this file. - -INCLUDED_BY_GRAPH = YES - -# If the CALL_GRAPH and HAVE_DOT options are set to YES then -# doxygen will generate a call dependency graph for every global function -# or class method. Note that enabling this option will significantly increase -# the time of a run. So in most cases it will be better to enable call graphs -# for selected functions only using the \callgraph command. - -CALL_GRAPH = NO - -# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then -# doxygen will generate a caller dependency graph for every global function -# or class method. Note that enabling this option will significantly increase -# the time of a run. So in most cases it will be better to enable caller -# graphs for selected functions only using the \callergraph command. - -CALLER_GRAPH = NO - -# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen -# will generate a graphical hierarchy of all classes instead of a textual one. - -GRAPHICAL_HIERARCHY = YES - -# If the DIRECTORY_GRAPH and HAVE_DOT tags are set to YES -# then doxygen will show the dependencies a directory has on other directories -# in a graphical way. The dependency relations are determined by the #include -# relations between the files in the directories. - -DIRECTORY_GRAPH = YES - -# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images -# generated by dot. Possible values are svg, png, jpg, or gif. -# If left blank png will be used. If you choose svg you need to set -# HTML_FILE_EXTENSION to xhtml in order to make the SVG files -# visible in IE 9+ (other browsers do not have this requirement). - -DOT_IMAGE_FORMAT = png - -# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to -# enable generation of interactive SVG images that allow zooming and panning. -# Note that this requires a modern browser other than Internet Explorer. -# Tested and working are Firefox, Chrome, Safari, and Opera. For IE 9+ you -# need to set HTML_FILE_EXTENSION to xhtml in order to make the SVG files -# visible. Older versions of IE do not have SVG support. - -INTERACTIVE_SVG = NO - -# The tag DOT_PATH can be used to specify the path where the dot tool can be -# found. If left blank, it is assumed the dot tool can be found in the path. - -DOT_PATH = - -# The DOTFILE_DIRS tag can be used to specify one or more directories that -# contain dot files that are included in the documentation (see the -# \dotfile command). - -DOTFILE_DIRS = - -# The MSCFILE_DIRS tag can be used to specify one or more directories that -# contain msc files that are included in the documentation (see the -# \mscfile command). - -MSCFILE_DIRS = - -# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of -# nodes that will be shown in the graph. If the number of nodes in a graph -# becomes larger than this value, doxygen will truncate the graph, which is -# visualized by representing a node as a red box. Note that doxygen if the -# number of direct children of the root node in a graph is already larger than -# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note -# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. - -DOT_GRAPH_MAX_NODES = 50 - -# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the -# graphs generated by dot. A depth value of 3 means that only nodes reachable -# from the root by following a path via at most 3 edges will be shown. Nodes -# that lay further from the root node will be omitted. Note that setting this -# option to 1 or 2 may greatly reduce the computation time needed for large -# code bases. Also note that the size of a graph can be further restricted by -# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. - -MAX_DOT_GRAPH_DEPTH = 0 - -# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent -# background. This is disabled by default, because dot on Windows does not -# seem to support this out of the box. Warning: Depending on the platform used, -# enabling this option may lead to badly anti-aliased labels on the edges of -# a graph (i.e. they become hard to read). - -DOT_TRANSPARENT = NO - -# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output -# files in one run (i.e. multiple -o and -T options on the command line). This -# makes dot run faster, but since only newer versions of dot (>1.8.10) -# support this, this feature is disabled by default. - -DOT_MULTI_TARGETS = NO - -# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will -# generate a legend page explaining the meaning of the various boxes and -# arrows in the dot generated graphs. - -GENERATE_LEGEND = YES - -# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will -# remove the intermediate dot files that are used to generate -# the various graphs. - -DOT_CLEANUP = YES diff --git a/visualtest/include/SDL_visualtest_action_configparser.h b/visualtest/include/SDL_visualtest_action_configparser.h deleted file mode 100644 index 40481f379..000000000 --- a/visualtest/include/SDL_visualtest_action_configparser.h +++ /dev/null @@ -1,149 +0,0 @@ -/* See LICENSE.txt for the full license governing this code. */ -/** - * \file SDL_visualtest_action_configparser.h - * - * Header file for the parser for action config files. - */ - -#ifndef SDL_visualtest_action_configparser_h_ -#define SDL_visualtest_action_configparser_h_ - -/** The maximum length of one line in the actions file */ -#define MAX_ACTION_LINE_LENGTH 300 - -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif - -/** - * Type of the action. - */ -typedef enum -{ - /*! Launch an application with some given arguments */ - SDL_ACTION_LAUNCH = 0, - /*! Kill the SUT process */ - SDL_ACTION_KILL, - /*! Quit (Gracefully exit) the SUT process */ - SDL_ACTION_QUIT, - /*! Take a screenshot of the SUT window */ - SDL_ACTION_SCREENSHOT, - /*! Verify a previously taken screenshot */ - SDL_ACTION_VERIFY -} SDLVisualTest_ActionType; - -/** - * Struct that defines an action that will be performed on the SUT process at - * a specific time. - */ -typedef struct SDLVisualTest_Action -{ - /*! The type of action to be performed */ - SDLVisualTest_ActionType type; - /*! The time, in milliseconds from the launch of the SUT, when the action - will be performed */ - int time; - /*! Any additional information needed to perform the action. */ - union - { - /*! The path and arguments to the process to be launched */ - struct - { - char* path; - char* args; - } process; - } extra; -} SDLVisualTest_Action; - -/** - * Struct for a node in the action queue. - */ -typedef struct SDLVisualTest_ActionNode -{ - /*! The action in this node */ - SDLVisualTest_Action action; - /*! Pointer to the next element in the queue */ - struct SDLVisualTest_ActionNode* next; -} SDLVisualTest_ActionNode; - -/** - * Queue structure for actions loaded from the actions config file. - */ -typedef struct SDLVisualTest_ActionQueue -{ - /*! Pointer to the front of the queue */ - SDLVisualTest_ActionNode* front; - /*! Pointer to the rear of the queue */ - SDLVisualTest_ActionNode* rear; - /*! Number of nodes in the queue */ - int size; -} SDLVisualTest_ActionQueue; - -/** - * Add an action pointed to by \c action to the rear of the action queue pointed - * to by \c queue. - * - * \return 1 on success, 0 on failure. - */ -int SDLVisualTest_EnqueueAction(SDLVisualTest_ActionQueue* queue, - SDLVisualTest_Action action); - -/** - * Remove an action from the front of the action queue pointed to by \c queue. - * - * \return 1 on success, 0 on failure. - */ -int SDLVisualTest_DequeueAction(SDLVisualTest_ActionQueue* queue); - -/** - * Initialize the action queue pointed to by \c queue. - */ -void SDLVisualTest_InitActionQueue(SDLVisualTest_ActionQueue* queue); - -/** - * Get the action at the front of the action queue pointed to by \c queue. - * The returned action pointer may become invalid after subsequent dequeues. - * - * \return pointer to the action on success, NULL on failure. - */ -SDLVisualTest_Action* SDLVisualTest_GetQueueFront(SDLVisualTest_ActionQueue* queue); - -/** - * Check if the queue pointed to by \c queue is empty or not. - * - * \return 1 if the queue is empty, 0 otherwise. - */ -int SDLVisualTest_IsActionQueueEmpty(SDLVisualTest_ActionQueue* queue); - -/** - * Dequeues all the elements in the queque pointed to by \c queue. - */ -void SDLVisualTest_EmptyActionQueue(SDLVisualTest_ActionQueue* queue); - -/** - * Inserts an action \c action into the queue pointed to by \c queue such that - * the times of actions in the queue increase as we move from the front to the - * rear. - * - * \return 1 on success, 0 on failure. - */ -int SDLVisualTest_InsertIntoActionQueue(SDLVisualTest_ActionQueue* queue, - SDLVisualTest_Action action); - -/** - * Parses an action config file with path \c file and populates an action queue - * pointed to by \c queue with actions. - * - * \return 1 on success, 0 on failure. - */ -int SDLVisualTest_ParseActionConfig(const char* file, SDLVisualTest_ActionQueue* queue); - -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} -#endif - -#endif /* SDL_visualtest_action_configparser_h_ */ - -/* vi: set ts=4 sw=4 expandtab: */ diff --git a/visualtest/include/SDL_visualtest_exhaustive_variator.h b/visualtest/include/SDL_visualtest_exhaustive_variator.h deleted file mode 100644 index 4637ce29e..000000000 --- a/visualtest/include/SDL_visualtest_exhaustive_variator.h +++ /dev/null @@ -1,64 +0,0 @@ -/* See LICENSE.txt for the full license governing this code. */ -/** - * \file SDL_visualtest_exhaustive_variator.h - * - * Header for the exhaustive variator. - */ - -#include "SDL_visualtest_harness_argparser.h" -#include "SDL_visualtest_variator_common.h" - -#ifndef SDL_visualtest_exhaustive_variator_h_ -#define SDL_visualtest_exhaustive_variator_h_ - -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif - -/** - * Struct for the variator that exhaustively iterates through all variations of - * command line arguments to the SUT. - */ -typedef struct SDLVisualTest_ExhaustiveVariator -{ - /*! The current variation. */ - SDLVisualTest_Variation variation; - /*! Configuration object for the SUT that the variator is running for. */ - SDLVisualTest_SUTConfig config; - /*! Buffer to store the arguments string built from the variation */ - char buffer[MAX_SUT_ARGS_LEN]; -} SDLVisualTest_ExhaustiveVariator; - -/** - * Initializes the variator. - * - * \return 1 on success, 0 on failure - */ -int SDLVisualTest_InitExhaustiveVariator(SDLVisualTest_ExhaustiveVariator* variator, - SDLVisualTest_SUTConfig* config); - -/** - * Gets the arguments string for the next variation using the variator and updates - * the variator's current variation object to the next variation. - * - * \return The arguments string representing the next variation on success, and - * NULL on failure or if we have iterated through all possible variations. - * In the latter case subsequent calls will start the variations again from - * the very beginning. The pointer returned should not be freed. - */ -char* SDLVisualTest_GetNextExhaustiveVariation(SDLVisualTest_ExhaustiveVariator* variator); - -/** - * Frees any resources associated with the variator. - */ -void SDLVisualTest_FreeExhaustiveVariator(SDLVisualTest_ExhaustiveVariator* variator); - -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} -#endif - -#endif /* SDL_visualtest_exhaustive_variator_h_ */ - -/* vi: set ts=4 sw=4 expandtab: */ diff --git a/visualtest/include/SDL_visualtest_harness_argparser.h b/visualtest/include/SDL_visualtest_harness_argparser.h deleted file mode 100644 index 75420fe2e..000000000 --- a/visualtest/include/SDL_visualtest_harness_argparser.h +++ /dev/null @@ -1,75 +0,0 @@ -/** - * \file SDL_visualtest_harness_argparser.h - * - * Provides functionality to parse command line arguments to the test harness. - */ - -#include -#include "SDL_visualtest_sut_configparser.h" -#include "SDL_visualtest_variator_common.h" -#include "SDL_visualtest_action_configparser.h" - -#ifndef SDL_visualtest_harness_argparser_h_ -#define SDL_visualtest_harness_argparser_h_ - -/** Maximum length of a path string */ -#define MAX_PATH_LEN 300 -/** Maximum length of a string of SUT arguments */ -#define MAX_SUT_ARGS_LEN 600 - -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif - -/** - * Stores the state of the test harness. - */ -typedef struct SDLVisualTest_HarnessState -{ - /*! Path to the System Under Test (SUT) executable */ - char sutapp[MAX_PATH_LEN]; - /*! Command line arguments to be passed to the SUT */ - char sutargs[MAX_SUT_ARGS_LEN]; - /*! Time in milliseconds after which to kill the SUT */ - int timeout; - /*! Configuration object for the SUT */ - SDLVisualTest_SUTConfig sut_config; - /*! What type of variator to use to generate argument strings */ - SDLVisualTest_VariatorType variator_type; - /*! The number of variations to generate */ - int num_variations; - /*! If true, the test harness will just print the different variations - without launching the SUT for each one */ - SDL_bool no_launch; - /*! A queue with actions to be performed while the SUT is running */ - SDLVisualTest_ActionQueue action_queue; - /*! Output directory to save the screenshots */ - char output_dir[MAX_PATH_LEN]; - /*! Path to directory with the verification images */ - char verify_dir[MAX_PATH_LEN]; -} SDLVisualTest_HarnessState; - -/** - * Parse command line paramters to the test harness and populate a state object. - * - * \param argv The array of command line parameters. - * \param state Pointer to the state object to be populated. - * - * \return Non-zero on success, zero on failure. - */ -int SDLVisualTest_ParseHarnessArgs(char** argv, SDLVisualTest_HarnessState* state); - -/** - * Frees any resources associated with the state object pointed to by \c state. - */ -void SDLVisualTest_FreeHarnessState(SDLVisualTest_HarnessState* state); - -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} -#endif - -#endif /* SDL_visualtest_harness_argparser_h_ */ - -/* vi: set ts=4 sw=4 expandtab: */ diff --git a/visualtest/include/SDL_visualtest_mischelper.h b/visualtest/include/SDL_visualtest_mischelper.h deleted file mode 100644 index 5faffa567..000000000 --- a/visualtest/include/SDL_visualtest_mischelper.h +++ /dev/null @@ -1,28 +0,0 @@ -/** - * \file mischelper.c - * - * Header with miscellaneous helper functions. - */ - -#ifndef SDL_visualtest_mischelper_h_ -#define SDL_visualtest_mischelper_h_ - -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif - -/** - * Stores a 32 digit hexadecimal string representing the MD5 hash of the - * string \c str in \c hash. - */ -void SDLVisualTest_HashString(char* str, char hash[33]); - -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} -#endif - -#endif /* SDL_visualtest_mischelper_h_ */ - -/* vi: set ts=4 sw=4 expandtab: */ diff --git a/visualtest/include/SDL_visualtest_parsehelper.h b/visualtest/include/SDL_visualtest_parsehelper.h deleted file mode 100644 index 4558552c1..000000000 --- a/visualtest/include/SDL_visualtest_parsehelper.h +++ /dev/null @@ -1,46 +0,0 @@ -/* See LICENSE.txt for the full license governing this code. */ -/** - * \file SDL_visualtest_parsehelper.h - * - * Header with some helper functions for parsing strings. - */ - -#ifndef SDL_visualtest_parsehelper_h_ -#define SDL_visualtest_parsehelper_h_ - -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif - -/** - * Takes an string of command line arguments and breaks them up into an array - * based on whitespace. - * - * \param args The string of arguments. - * - * \return NULL on failure, an array of strings on success. The last element - * of the array is NULL. The first element of the array is NULL and should - * be set to the path of the executable by the caller. - */ -char** SDLVisualTest_ParseArgsToArgv(char* args); - -/** - * Takes a string and breaks it into tokens by splitting on whitespace. - * - * \param str The string to be split. - * \param max_token_len Length of each element in the array to be returned. - * - * \return NULL on failure; an array of strings with the tokens on success. The - * last element of the array is NULL. - */ -char** SDLVisualTest_Tokenize(char* str, int max_token_len); - -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} -#endif - -#endif /* SDL_visualtest_parsehelper_h_ */ - -/* vi: set ts=4 sw=4 expandtab: */ diff --git a/visualtest/include/SDL_visualtest_process.h b/visualtest/include/SDL_visualtest_process.h deleted file mode 100644 index 26ce5a098..000000000 --- a/visualtest/include/SDL_visualtest_process.h +++ /dev/null @@ -1,112 +0,0 @@ -/* See LICENSE.txt for the full license governing this code. */ -/** - * \file SDL_visualtest_process.h - * - * Provides cross-platfrom process launching and termination functionality. - */ - -#include - -#if defined(__WIN32__) -#include -#include -#elif defined(__LINUX__) -#include -#else -#error "Unsupported platform." -#endif - -#ifndef SDL_visualtest_process_h_ -#define SDL_visualtest_process_h_ - -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif - -/** - * Struct to store a platform specific handle to a process. - */ -typedef struct SDL_ProcessInfo -{ -//#if defined(_WIN32) || defined(__WIN32__) -#if defined(__WIN32__) - PROCESS_INFORMATION pi; -//#elif defined(__linux__) -#elif defined(__LINUX__) - int pid; -#endif -} SDL_ProcessInfo; - -/** - * This structure stores the exit status (value returned by main()) and - * whether the process exited sucessfully or not. - */ -typedef struct SDL_ProcessExitStatus -{ - int exit_success; /*!< Zero if the process exited successfully */ - int exit_status; /*!< The exit status of the process. 8-bit value. */ -} SDL_ProcessExitStatus; - -/** - * Launches a process with the given commandline arguments. - * - * \param file The path to the executable to be launched. - * \param args The command line arguments to be passed to the process. - * \param pinfo Pointer to an SDL_ProcessInfo object to be populated with - * platform specific information about the launched process. - * - * \return Non-zero on success, zero on failure. - */ -int SDL_LaunchProcess(char* file, char* args, SDL_ProcessInfo* pinfo); - -/** - * Checks if a process is running or not. - * - * \param pinfo Pointer to SDL_ProcessInfo object of the process that needs to be - * checked. - * - * \return 1 if the process is still running; zero if it is not and -1 if the - * status could not be retrieved. - */ -int SDL_IsProcessRunning(SDL_ProcessInfo* pinfo); - -/** - * Kills a currently running process. - * - * \param pinfo Pointer to a SDL_ProcessInfo object of the process to be terminated. - * \param ps Pointer to a SDL_ProcessExitStatus object which will be populated - * with the exit status. - * - * \return 1 on success, 0 on failure. - */ -int SDL_KillProcess(SDL_ProcessInfo* pinfo, SDL_ProcessExitStatus* ps); - -/** - * Cleanly exits the process represented by \c pinfo and stores the exit status - * in the exit status object pointed to by \c ps. - * - * \return 1 on success, 0 on failure. - */ -int SDL_QuitProcess(SDL_ProcessInfo* pinfo, SDL_ProcessExitStatus* ps); - -/** - * Gets the exit status of a process. If the exit status is -1, the process is - * still running. - * - * \param pinfo Pointer to a SDL_ProcessInfo object of the process to be checked. - * \param ps Pointer to a SDL_ProcessExitStatus object which will be populated - * with the exit status. - * - * \return 1 on success, 0 on failure. - */ -int SDL_GetProcessExitStatus(SDL_ProcessInfo* pinfo, SDL_ProcessExitStatus* ps); - -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} -#endif - -#endif /* SDL_visualtest_process_h_ */ - -/* vi: set ts=4 sw=4 expandtab: */ diff --git a/visualtest/include/SDL_visualtest_random_variator.h b/visualtest/include/SDL_visualtest_random_variator.h deleted file mode 100644 index 0514ce631..000000000 --- a/visualtest/include/SDL_visualtest_random_variator.h +++ /dev/null @@ -1,61 +0,0 @@ -/* See LICENSE.txt for the full license governing this code. */ -/** - * \file SDL_visualtest_random_variator.h - * - * Header for the random variator. - */ - -#include "SDL_visualtest_harness_argparser.h" -#include "SDL_visualtest_variator_common.h" - -#ifndef SDL_visualtest_random_variator_h_ -#define SDL_visualtest_random_variator_h_ - -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif - -/** - * Struct for the variator that randomly generates variations of command line - * arguments to the SUT. - */ -typedef struct SDLVisualTest_RandomVariator -{ - /*! The current variation. */ - SDLVisualTest_Variation variation; - /*! Configuration object for the SUT that the variator is running for. */ - SDLVisualTest_SUTConfig config; - /*! Buffer to store the arguments string built from the variation */ - char buffer[MAX_SUT_ARGS_LEN]; -} SDLVisualTest_RandomVariator; - -/** - * Initializes the variator. - * - * \return 1 on success, 0 on failure - */ -int SDLVisualTest_InitRandomVariator(SDLVisualTest_RandomVariator* variator, - SDLVisualTest_SUTConfig* config, Uint64 seed); - -/** - * Generates a new random variation. - * - * \return The arguments string representing the random variation on success, and - * NULL on failure. The pointer returned should not be freed. - */ -char* SDLVisualTest_GetNextRandomVariation(SDLVisualTest_RandomVariator* variator); - -/** - * Frees any resources associated with the variator. - */ -void SDLVisualTest_FreeRandomVariator(SDLVisualTest_RandomVariator* variator); - -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} -#endif - -#endif /* SDL_visualtest_random_variator_h_ */ - -/* vi: set ts=4 sw=4 expandtab: */ diff --git a/visualtest/include/SDL_visualtest_rwhelper.h b/visualtest/include/SDL_visualtest_rwhelper.h deleted file mode 100644 index bc3942594..000000000 --- a/visualtest/include/SDL_visualtest_rwhelper.h +++ /dev/null @@ -1,87 +0,0 @@ -/* See LICENSE.txt for the full license governing this code. */ -/** - * \file rwhelper.c - * - * Header file with some helper functions for working with SDL_RWops. - */ - -#include - -#ifndef SDL_visualtest_rwhelper_h_ -#define SDL_visualtest_rwhelper_h_ - -/** Length of the buffer in SDLVisualTest_RWHelperBuffer */ -#define RWOPS_BUFFER_LEN 256 - -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif - -/** - * Struct that is used as a buffer by the RW helper functions. Should be initialized by calling - * SDLVisualTest_RWHelperResetBuffer() before being used. - */ -typedef struct SDLVisualTest_RWHelperBuffer -{ - /*! Character buffer that data is read into */ - char buffer[RWOPS_BUFFER_LEN]; - /*! buffer[buffer_pos] is the next character to be read from the buffer */ - int buffer_pos; - /*! Number of character read into the buffer */ - int buffer_width; -} SDLVisualTest_RWHelperBuffer; - -/** - * Resets the buffer pointed to by \c buffer used by some of the helper functions. - * This function should be called when you're using one of the helper functions - * with a new SDL_RWops object. - */ -void SDLVisualTest_RWHelperResetBuffer(SDLVisualTest_RWHelperBuffer* buffer); - -/** - * Reads a single character using the SDL_RWops object pointed to by \c rw. - * This function reads data in blocks and stores them in the buffer pointed to by - * \c buffer, so other SDL_RWops functions should not be used in conjunction - * with this function. - * - * \return The character that was read. - */ -char SDLVisualTest_RWHelperReadChar(SDL_RWops* rw, - SDLVisualTest_RWHelperBuffer* buffer); - -/** - * Reads characters using the SDL_RWops object pointed to by \c rw into the - * character array pointed to by \c str (of size \c size) until either the - * array is full or a new line is encountered. If \c comment_char is encountered, - * all characters from that position till the end of the line are ignored. The new line - * is not included as part of the buffer. Lines with only whitespace and comments - * are ignored. This function reads data in blocks and stores them in the buffer - * pointed to by \c buffer, so other SDL_RWops functions should not be used in - * conjunction with this function. - * - * \return pointer to the string on success, NULL on failure or EOF. - */ -char* SDLVisualTest_RWHelperReadLine(SDL_RWops* rw, char* str, int size, - SDLVisualTest_RWHelperBuffer* buffer, - char comment_char); - -/** - * Counts the number of lines that are not all whitespace and comments using the - * SDL_RWops object pointed to by \c rw. \c comment_char indicates the character - * used for comments. Uses the buffer pointed to by \c buffer to read data in blocks. - * - * \return Number of lines on success, -1 on failure. - */ -int SDLVisualTest_RWHelperCountNonEmptyLines(SDL_RWops* rw, - SDLVisualTest_RWHelperBuffer* buffer, - char comment_char); - -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} -#endif - -#endif /* SDL_visualtest_rwhelper_h_ */ - -/* vi: set ts=4 sw=4 expandtab: */ diff --git a/visualtest/include/SDL_visualtest_screenshot.h b/visualtest/include/SDL_visualtest_screenshot.h deleted file mode 100644 index 69411e99d..000000000 --- a/visualtest/include/SDL_visualtest_screenshot.h +++ /dev/null @@ -1,52 +0,0 @@ -/* See LICENSE.txt for the full license governing this code. */ -/** - * \file SDL_visualtest_screenshot.h - * - * Header for the screenshot API. - */ - -#include "SDL_visualtest_process.h" - -#ifndef SDL_visualtest_screenshot_h_ -#define SDL_visualtest_screenshot_h_ - -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif - -/** - * Takes a screenshot of each window owned by the process \c pinfo and saves - * it in a file \c prefix-i.png where \c prefix is the full path to the file - * along with a prefix given to each screenshot. - * - * \return 1 on success, 0 on failure. - */ -int SDLVisualTest_ScreenshotProcess(SDL_ProcessInfo* pinfo, char* prefix); - -/** - * Takes a screenshot of the desktop and saves it into the file with path - * \c filename. - * - * \return 1 on success, 0 on failure. - */ -int SDLVisualTest_ScreenshotDesktop(char* filename); - -/** - * Compare a screenshot taken previously with SUT arguments \c args that is - * located in \c test_dir with a verification image that is located in - * \c verify_dir. - * - * \return -1 on failure, 0 if the images were not equal, 1 if the images are equal - * and 2 if the verification image is not present. - */ -int SDLVisualTest_VerifyScreenshots(char* args, char* test_dir, char* verify_dir); - -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} -#endif - -#endif /* SDL_visualtest_screenshot_h_ */ - -/* vi: set ts=4 sw=4 expandtab: */ diff --git a/visualtest/include/SDL_visualtest_sut_configparser.h b/visualtest/include/SDL_visualtest_sut_configparser.h deleted file mode 100644 index 63506f5a0..000000000 --- a/visualtest/include/SDL_visualtest_sut_configparser.h +++ /dev/null @@ -1,105 +0,0 @@ -/* See LICENSE.txt for the full license governing this code. */ -/** - * \file SDL_visualtest_sut_configparser.h - * - * Header for the parser for SUT config files. - */ - -#ifndef SDL_visualtest_sut_configparser_h_ -#define SDL_visualtest_sut_configparser_h_ - -/** Maximum length of the name of an SUT option */ -#define MAX_SUTOPTION_NAME_LEN 100 -/** Maximum length of the name of a category of an SUT option */ -#define MAX_SUTOPTION_CATEGORY_LEN 40 -/** Maximum length of one enum value of an SUT option */ -#define MAX_SUTOPTION_ENUMVAL_LEN 40 -/** Maximum length of a line in the paramters file */ -#define MAX_SUTOPTION_LINE_LENGTH 256 - -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif - -/** - * Describes the different kinds of options to the SUT. - */ -typedef enum { - SDL_SUT_OPTIONTYPE_STRING = 0, - SDL_SUT_OPTIONTYPE_INT, - SDL_SUT_OPTIONTYPE_ENUM, - SDL_SUT_OPTIONTYPE_BOOL -} SDLVisualTest_SUTOptionType; - -/** - * Represents the range of values an integer option can take. - */ -typedef struct SDLVisualTest_SUTIntRange { - /*! Minimum value of the integer option */ - int min; - /*! Maximum value of the integer option */ - int max; -} SDLVisualTest_SUTIntRange; - -/** - * Struct that defines an option to be passed to the SUT. - */ -typedef struct SDLVisualTest_SUTOption { - /*! The name of the option. This is what you would pass in the command line - along with two leading hyphens. */ - char name[MAX_SUTOPTION_NAME_LEN]; - /*! An array of categories that the option belongs to. The last element is - NULL. */ - char** categories; - /*! Type of the option - integer, boolean, etc. */ - SDLVisualTest_SUTOptionType type; - /*! Whether the option is required or not */ - SDL_bool required; - /*! extra data that is required for certain types */ - union { - /*! This field is valid only for integer type options; it defines the - valid range for such an option */ - SDLVisualTest_SUTIntRange range; - /*! This field is valid only for enum type options; it holds the list of values - that the option can take. The last element is NULL */ - char** enum_values; - } data; -} SDLVisualTest_SUTOption; - -/** - * Struct to hold all the options to an SUT application. - */ -typedef struct SDLVisualTest_SUTConfig -{ - /*! Pointer to an array of options */ - SDLVisualTest_SUTOption* options; - /*! Number of options in \c options */ - int num_options; -} SDLVisualTest_SUTConfig; - -/** - * Parses a configuration file that describes the command line options an SUT - * application will take and populates a SUT config object. All lines in the - * config file must be smaller than - * - * \param file Path to the configuration file. - * \param config Pointer to an object that represents an SUT configuration. - * - * \return zero on failure, non-zero on success - */ -int SDLVisualTest_ParseSUTConfig(char* file, SDLVisualTest_SUTConfig* config); - -/** - * Free any resources associated with the config object pointed to by \c config. - */ -void SDLVisualTest_FreeSUTConfig(SDLVisualTest_SUTConfig* config); - -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} -#endif - -#endif /* SDL_visualtest_sut_configparser_h_ */ - -/* vi: set ts=4 sw=4 expandtab: */ diff --git a/visualtest/include/SDL_visualtest_variator_common.h b/visualtest/include/SDL_visualtest_variator_common.h deleted file mode 100644 index 19a5b3782..000000000 --- a/visualtest/include/SDL_visualtest_variator_common.h +++ /dev/null @@ -1,122 +0,0 @@ -/* See LICENSE.txt for the full license governing this code. */ -/** - * \file SDL_visualtest_variator_common.h - * - * Header for common functionality used by variators. - */ - -#include -#include "SDL_visualtest_sut_configparser.h" - -#ifndef SDL_visualtest_variator_common_h_ -#define SDL_visualtest_variator_common_h_ - -/** The number of variations one integer option would generate */ -#define SDL_SUT_INTEGER_OPTION_TEST_STEPS 3 - -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif - -/** enum for indicating the type of variator being used */ -typedef enum SDLVisualTest_VariatorType -{ - SDL_VARIATOR_NONE = 0, - SDL_VARIATOR_EXHAUSTIVE, - SDL_VARIATOR_RANDOM -} SDLVisualTest_VariatorType; - -/** - * One possible value for a command line option to the SUT. - */ -typedef union SDLVisualTest_SUTOptionValue -{ - /*! Value if the option is of type boolean */ - SDL_bool bool_value; - /*! Value if the option is of type integer. If on is true then the option - will be passed to the SUT, otherwise it will be ignored. */ - struct { - int value; - SDL_bool on; - } integer; - /*! Index of the string in the enum_values field of the corresponding - SDLVisualTest_SUTOption object. If on is true the option will passed - to the SUT, otherwise it will be ignored. */ - struct { - int index; - SDL_bool on; - } enumerated; - /*! Value if the option is of type string. If on is true the option will - be passed to the SUT, otherwise it will be ignored. */ - struct { - char* value; - SDL_bool on; - } string; -} SDLVisualTest_SUTOptionValue; - -/** - * Represents a valid combination of parameters that can be passed to the SUT. - * The ordering of the values here is the same as the ordering of the options in - * the SDLVisualTest_SUTConfig object for this variation. - */ -typedef struct SDLVisualTest_Variation -{ - /*! Pointer to array of option values */ - SDLVisualTest_SUTOptionValue* vars; - /*! Number of option values in \c vars */ - int num_vars; -} SDLVisualTest_Variation; - -/** - * "Increments" the value of the option by one and returns the carry. We wrap - * around to the initial value on overflow which makes the carry one. - * For example: "incrementing" an SDL_FALSE option makes it SDL_TRUE with no - * carry, and "incrementing" an SDL_TRUE option makes it SDL_FALSE with carry - * one. For integers, a random value in the valid range for the option is used. - * - * \param var Value of the option - * \param opt Object with metadata about the option - * - * \return 1 if there is a carry for enum and bool type options, 0 otherwise. - * 1 is always returned for integer and string type options. -1 is - * returned on error. - */ -int SDLVisualTest_NextValue(SDLVisualTest_SUTOptionValue* var, - SDLVisualTest_SUTOption* opt); - -/** - * Converts a variation object into a string of command line arguments. - * - * \param variation Variation object to be converted. - * \param config Config object for the SUT. - * \param buffer Pointer to the buffer the arguments string will be copied into. - * \param size Size of the buffer. - * - * \return 1 on success, 0 on failure - */ -int SDLVisualTest_MakeStrFromVariation(SDLVisualTest_Variation* variation, - SDLVisualTest_SUTConfig* config, - char* buffer, int size); - -/** - * Initializes the variation using the following rules: - * - Boolean options are initialized to SDL_FALSE. - * - Integer options are initialized to the minimum valid value they can hold. - * - Enum options are initialized to the first element in the list of values they - * can take. - * - String options are initialized to the name of the option. - * - * \return 1 on success, 0 on failure. - */ -int SDLVisualTest_InitVariation(SDLVisualTest_Variation* variation, - SDLVisualTest_SUTConfig* config); - -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} -#endif - -#endif /* SDL_visualtest_variator_common_h_ */ - -/* vi: set ts=4 sw=4 expandtab: */ diff --git a/visualtest/include/SDL_visualtest_variators.h b/visualtest/include/SDL_visualtest_variators.h deleted file mode 100644 index e14f67d2a..000000000 --- a/visualtest/include/SDL_visualtest_variators.h +++ /dev/null @@ -1,66 +0,0 @@ -/* See LICENSE.txt for the full license governing this code. */ -/** - * \file SDL_visualtest_variators.h - * - * Header for all the variators that vary input parameters to a SUT application. - */ - -#include "SDL_visualtest_exhaustive_variator.h" -#include "SDL_visualtest_random_variator.h" - -#ifndef SDL_visualtest_variators_h_ -#define SDL_visualtest_variators_h_ - -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" { -#endif - -/** - * Struct that acts like a wrapper around the different types of variators - * available. - */ -typedef struct SDLVisualTest_Variator -{ - /*! Type of the variator */ - SDLVisualTest_VariatorType type; - /*! union object that stores the variator */ - union - { - SDLVisualTest_ExhaustiveVariator exhaustive; - SDLVisualTest_RandomVariator random; - } data; -} SDLVisualTest_Variator; - -/** - * Initializes the variator object pointed to by \c variator of type \c type - * with information from the config object pointed to by \c config. - * - * \return 1 on success, 0 on failure - */ -int SDLVisualTest_InitVariator(SDLVisualTest_Variator* variator, - SDLVisualTest_SUTConfig* config, - SDLVisualTest_VariatorType type, - Uint64 seed); - -/** - * Gets the next variation using the variator. - * - * \return The arguments string representing the variation on success, and - * NULL on failure. The pointer returned should not be freed. - */ -char* SDLVisualTest_GetNextVariation(SDLVisualTest_Variator* variator); - -/** - * Frees any resources associated with the variator. - */ -void SDLVisualTest_FreeVariator(SDLVisualTest_Variator* variator); - -/* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} -#endif - -#endif /* SDL_visualtest_variators_h_ */ - -/* vi: set ts=4 sw=4 expandtab: */ diff --git a/visualtest/launch_harness.cmd b/visualtest/launch_harness.cmd deleted file mode 100644 index 93462a9d2..000000000 --- a/visualtest/launch_harness.cmd +++ /dev/null @@ -1,2 +0,0 @@ -start /wait testharness.exe --config testsprite2_crashtest.config > testrun.log 2>&1 -if %ERRORLEVEL% NEQ 0 echo TEST RUN FAILED (see testrun.log) \ No newline at end of file diff --git a/visualtest/launch_harness.sh b/visualtest/launch_harness.sh deleted file mode 100755 index a2d1471c8..000000000 --- a/visualtest/launch_harness.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -./testharness.exe --config testsprite2_crashtest.config > testrun.log 2>&1 -if [ "$?" != "0" ]; then - echo TEST RUN FAILED (see testrun.log) - # report error code to CI -fi \ No newline at end of file diff --git a/visualtest/src/action_configparser.c b/visualtest/src/action_configparser.c deleted file mode 100644 index f3b1afd73..000000000 --- a/visualtest/src/action_configparser.c +++ /dev/null @@ -1,399 +0,0 @@ -/* See LICENSE.txt for the full license governing this code. */ -/** - * \file action_configparser.c - * - * Source file for the parser for action config files. - */ - -#include -#include -#include -#include "SDL_visualtest_action_configparser.h" -#include "SDL_visualtest_rwhelper.h" -#include "SDL_visualtest_parsehelper.h" - -static void -FreeAction(SDLVisualTest_Action* action) -{ - if(!action) - return; - switch(action->type) - { - case SDL_ACTION_LAUNCH: - { - char* path; - char* args; - - path = action->extra.process.path; - args = action->extra.process.args; - - if(path) - SDL_free(path); - if(args) - SDL_free(args); - - action->extra.process.path = NULL; - action->extra.process.args = NULL; - } - break; - - default: - break; - } -} - -int -SDLVisualTest_EnqueueAction(SDLVisualTest_ActionQueue* queue, - SDLVisualTest_Action action) -{ - SDLVisualTest_ActionNode* node; - if(!queue) - { - SDLTest_LogError("queue argument cannot be NULL"); - return 0; - } - - node = (SDLVisualTest_ActionNode*)SDL_malloc( - sizeof(SDLVisualTest_ActionNode)); - if(!node) - { - SDLTest_LogError("SDL_malloc() failed"); - return 0; - } - node->action = action; - node->next = NULL; - queue->size++; - if(!queue->rear) - queue->rear = queue->front = node; - else - { - queue->rear->next = node; - queue->rear = node; - } - return 1; -} - -int -SDLVisualTest_DequeueAction(SDLVisualTest_ActionQueue* queue) -{ - SDLVisualTest_ActionNode* node; - if(!queue) - { - SDLTest_LogError("queue argument cannot be NULL"); - return 0; - } - if(SDLVisualTest_IsActionQueueEmpty(queue)) - { - SDLTest_LogError("cannot dequeue from empty queue"); - return 0; - } - if(queue->front == queue->rear) - { - FreeAction(&queue->front->action); - SDL_free(queue->front); - queue->front = queue->rear = NULL; - } - else - { - node = queue->front; - queue->front = queue->front->next; - FreeAction(&node->action); - SDL_free(node); - } - queue->size--; - return 1; -} - -void -SDLVisualTest_InitActionQueue(SDLVisualTest_ActionQueue* queue) -{ - if(!queue) - { - SDLTest_LogError("queue argument cannot be NULL"); - return; - } - queue->front = NULL; - queue->rear = NULL; - queue->size = 0; -} - -SDLVisualTest_Action* -SDLVisualTest_GetQueueFront(SDLVisualTest_ActionQueue* queue) -{ - if(!queue) - { - SDLTest_LogError("queue argument cannot be NULL"); - return NULL; - } - if(!queue->front) - { - SDLTest_LogError("cannot get front of empty queue"); - return NULL; - } - - return &queue->front->action; -} - -int -SDLVisualTest_IsActionQueueEmpty(SDLVisualTest_ActionQueue* queue) -{ - if(!queue) - { - SDLTest_LogError("queue argument cannot be NULL"); - return 1; - } - - if(queue->size > 0) - return 0; - return 1; -} - -void -SDLVisualTest_EmptyActionQueue(SDLVisualTest_ActionQueue* queue) -{ - if(queue) - { - while(!SDLVisualTest_IsActionQueueEmpty(queue)) - SDLVisualTest_DequeueAction(queue); - } -} - -/* Since the size of the queue is not likely to be larger than 100 elements - we can get away with using insertion sort. */ -static void -SortQueue(SDLVisualTest_ActionQueue* queue) -{ - SDLVisualTest_ActionNode* head; - SDLVisualTest_ActionNode* tail; - - if(!queue || SDLVisualTest_IsActionQueueEmpty(queue)) - return; - - head = queue->front; - for(tail = head; tail && tail->next;) - { - SDLVisualTest_ActionNode* pos; - SDLVisualTest_ActionNode* element = tail->next; - - if(element->action.time < head->action.time) - { - tail->next = tail->next->next; - element->next = head; - head = element; - } - else if(element->action.time >= tail->action.time) - { - tail = tail->next; - } - else - { - for(pos = head; - (pos->next->action.time < element->action.time); - pos = pos->next); - tail->next = tail->next->next; - element->next = pos->next; - pos->next = element; - } - } - - queue->front = head; - queue->rear = tail; -} - -int -SDLVisualTest_InsertIntoActionQueue(SDLVisualTest_ActionQueue* queue, - SDLVisualTest_Action action) -{ - SDLVisualTest_ActionNode* n; - SDLVisualTest_ActionNode* prev; - SDLVisualTest_ActionNode* newnode; - if(!queue) - { - SDLTest_LogError("queue argument cannot be NULL"); - return 0; - } - - if(SDLVisualTest_IsActionQueueEmpty(queue)) - { - if(!SDLVisualTest_EnqueueAction(queue, action)) - { - SDLTest_LogError("SDLVisualTest_EnqueueAction() failed"); - return 0; - } - return 1; - } - - newnode = (SDLVisualTest_ActionNode*)SDL_malloc(sizeof(SDLVisualTest_ActionNode)); - if(!newnode) - { - SDLTest_LogError("SDL_malloc() failed"); - return 0; - } - newnode->action = action; - - queue->size++; - for(n = queue->front, prev = NULL; n; n = n->next) - { - if(action.time < n->action.time) - { - if(prev) - { - prev->next = newnode; - newnode->next = n; - } - else - { - newnode->next = queue->front; - queue->front = newnode; - } - return 1; - } - prev = n; - } - - queue->rear->next = newnode; - newnode->next = NULL; - queue->rear = newnode; - - return 1; -} - -int -SDLVisualTest_ParseActionConfig(const char* file, SDLVisualTest_ActionQueue* queue) -{ - char line[MAX_ACTION_LINE_LENGTH]; - SDLVisualTest_RWHelperBuffer buffer; - char* token_ptr; - int linenum; - SDL_RWops* rw; - - if(!file) - { - SDLTest_LogError("file argument cannot be NULL"); - return 0; - } - if(!queue) - { - SDLTest_LogError("queue argument cannot be NULL"); - return 0; - } - - rw = SDL_RWFromFile(file, "r"); - if(!rw) - { - SDLTest_LogError("SDL_RWFromFile() failed"); - return 0; - } - - SDLVisualTest_RWHelperResetBuffer(&buffer); - SDLVisualTest_InitActionQueue(queue); - linenum = 0; - while(SDLVisualTest_RWHelperReadLine(rw, line, MAX_ACTION_LINE_LENGTH, - &buffer, '#')) - { - SDLVisualTest_Action action; - int hr, min, sec; - - /* parse time */ - token_ptr = strtok(line, " "); - if(!token_ptr || - (SDL_sscanf(token_ptr, "%d:%d:%d", &hr, &min, &sec) != 3)) - { - SDLTest_LogError("Could not parse time token at line: %d", - linenum); - SDLVisualTest_EmptyActionQueue(queue); - SDL_RWclose(rw); - return 0; - } - action.time = (((hr * 60 + min) * 60) + sec) * 1000; - - /* parse type */ - token_ptr = strtok(NULL, " "); - if(SDL_strcasecmp(token_ptr, "launch") == 0) - action.type = SDL_ACTION_LAUNCH; - else if(SDL_strcasecmp(token_ptr, "kill") == 0) - action.type = SDL_ACTION_KILL; - else if(SDL_strcasecmp(token_ptr, "quit") == 0) - action.type = SDL_ACTION_QUIT; - else if(SDL_strcasecmp(token_ptr, "screenshot") == 0) - action.type = SDL_ACTION_SCREENSHOT; - else if(SDL_strcasecmp(token_ptr, "verify") == 0) - action.type = SDL_ACTION_VERIFY; - else - { - SDLTest_LogError("Could not parse type token at line: %d", - linenum); - SDLVisualTest_EmptyActionQueue(queue); - SDL_RWclose(rw); - return 0; - } - - /* parse the extra field */ - if(action.type == SDL_ACTION_LAUNCH) - { - int len; - char* args; - char* path; - token_ptr = strtok(NULL, " "); - len = token_ptr ? SDL_strlen(token_ptr) : 0; - if(len <= 0) - { - SDLTest_LogError("Please specify the process to launch at line: %d", - linenum); - SDLVisualTest_EmptyActionQueue(queue); - SDL_RWclose(rw); - return 0; - } - path = (char*)SDL_malloc(sizeof(char) * (len + 1)); - if(!path) - { - SDLTest_LogError("SDL_malloc() failed"); - SDLVisualTest_EmptyActionQueue(queue); - SDL_RWclose(rw); - return 0; - } - SDL_strlcpy(path, token_ptr, len + 1); - - token_ptr = strtok(NULL, ""); - len = token_ptr ? SDL_strlen(token_ptr) : 0; - if(len > 0) - { - args = (char*)SDL_malloc(sizeof(char) * (len + 1)); - if(!args) - { - SDLTest_LogError("SDL_malloc() failed"); - SDL_free(path); - SDLVisualTest_EmptyActionQueue(queue); - SDL_RWclose(rw); - return 0; - } - SDL_strlcpy(args, token_ptr, len + 1); - } - else - args = NULL; - - action.extra.process.path = path; - action.extra.process.args = args; - } - - /* add the action to the queue */ - if(!SDLVisualTest_EnqueueAction(queue, action)) - { - SDLTest_LogError("SDLVisualTest_EnqueueAction() failed"); - if(action.type == SDL_ACTION_LAUNCH) - { - SDL_free(action.extra.process.path); - if(action.extra.process.args) - SDL_free(action.extra.process.args); - } - SDLVisualTest_EmptyActionQueue(queue); - SDL_RWclose(rw); - return 0; - } - } - /* sort the queue of actions */ - SortQueue(queue); - - SDL_RWclose(rw); - return 1; -} diff --git a/visualtest/src/harness_argparser.c b/visualtest/src/harness_argparser.c deleted file mode 100644 index 8bc57064b..000000000 --- a/visualtest/src/harness_argparser.c +++ /dev/null @@ -1,358 +0,0 @@ -/* See LICENSE.txt for the full license governing this code. */ -/** - * \file harness_argparser.c - * - * Source file for functions to parse arguments to the test harness. - */ - -#include -#include -#include - -#include "SDL_visualtest_harness_argparser.h" -#include "SDL_visualtest_rwhelper.h" - -/** Maximum length of one line in the config file */ -#define MAX_CONFIG_LINE_LEN 400 -/** Default value for the timeout after which the SUT is forcefully killed */ -#define DEFAULT_SUT_TIMEOUT (60 * 1000) - -/* String compare s1 and s2 ignoring leading hyphens */ -static int -StrCaseCmpIgnoreHyphen(const char* s1, const char* s2) -{ - /* treat NULL pointer as empty strings */ - if(!s1) - s1 = ""; - if(!s2) - s2 = ""; - - while(*s1 == '-') - s1++; - while(*s2 == '-') - s2++; - - return SDL_strcasecmp(s1, s2); -} - -/* parser an argument, updates the state object and returns the number of - arguments processed; returns -1 on failure */ -static int -ParseArg(char** argv, int index, SDLVisualTest_HarnessState* state) -{ - if(!argv || !argv[index] || !state) - return 0; - - if(StrCaseCmpIgnoreHyphen("sutapp", argv[index]) == 0) - { - index++; - if(!argv[index]) - { - SDLTest_LogError("Arguments parsing error: Invalid argument for sutapp."); - return -1; - } - SDL_strlcpy(state->sutapp, argv[index], MAX_PATH_LEN); - SDLTest_Log("SUT Application: %s", state->sutapp); - return 2; - } - else if(StrCaseCmpIgnoreHyphen("output-dir", argv[index]) == 0) - { - index++; - if(!argv[index]) - { - SDLTest_LogError("Arguments parsing error: Invalid argument for output-dir."); - return -1; - } - SDL_strlcpy(state->output_dir, argv[index], MAX_PATH_LEN); - SDLTest_Log("Screenshot Output Directory: %s", state->output_dir); - return 2; - } - else if(StrCaseCmpIgnoreHyphen("verify-dir", argv[index]) == 0) - { - index++; - if(!argv[index]) - { - SDLTest_LogError("Arguments parsing error: Invalid argument for verify-dir."); - return -1; - } - SDL_strlcpy(state->verify_dir, argv[index], MAX_PATH_LEN); - SDLTest_Log("Screenshot Verification Directory: %s", state->verify_dir); - return 2; - } - else if(StrCaseCmpIgnoreHyphen("sutargs", argv[index]) == 0) - { - index++; - if(!argv[index]) - { - SDLTest_LogError("Arguments parsing error: Invalid argument for sutargs."); - return -1; - } - SDL_strlcpy(state->sutargs, argv[index], MAX_SUT_ARGS_LEN); - SDLTest_Log("SUT Arguments: %s", state->sutargs); - return 2; - } - else if(StrCaseCmpIgnoreHyphen("timeout", argv[index]) == 0) - { - int hr, min, sec; - index++; - if(!argv[index] || SDL_sscanf(argv[index], "%d:%d:%d", &hr, &min, &sec) != 3) - { - SDLTest_LogError("Arguments parsing error: Invalid argument for timeout."); - return -1; - } - state->timeout = (((hr * 60) + min) * 60 + sec) * 1000; - SDLTest_Log("Maximum Timeout for each SUT run: %d milliseconds", - state->timeout); - return 2; - } - else if(StrCaseCmpIgnoreHyphen("parameter-config", argv[index]) == 0) - { - index++; - if(!argv[index]) - { - SDLTest_LogError("Arguments parsing error: Invalid argument for parameter-config."); - return -1; - } - SDLTest_Log("SUT Parameters file: %s", argv[index]); - SDLVisualTest_FreeSUTConfig(&state->sut_config); - if(!SDLVisualTest_ParseSUTConfig(argv[index], &state->sut_config)) - { - SDLTest_LogError("Failed to parse SUT parameters file"); - return -1; - } - return 2; - } - else if(StrCaseCmpIgnoreHyphen("variator", argv[index]) == 0) - { - index++; - if(!argv[index]) - { - SDLTest_LogError("Arguments parsing error: Invalid argument for variator."); - return -1; - } - SDLTest_Log("Variator: %s", argv[index]); - if(SDL_strcasecmp("exhaustive", argv[index]) == 0) - state->variator_type = SDL_VARIATOR_EXHAUSTIVE; - else if(SDL_strcasecmp("random", argv[index]) == 0) - state->variator_type = SDL_VARIATOR_RANDOM; - else - { - SDLTest_LogError("Arguments parsing error: Invalid variator name."); - return -1; - } - return 2; - } - else if(StrCaseCmpIgnoreHyphen("num-variations", argv[index]) == 0) - { - index++; - if(!argv[index]) - { - SDLTest_LogError("Arguments parsing error: Invalid argument for num-variations."); - return -1; - } - state->num_variations = SDL_atoi(argv[index]); - SDLTest_Log("Number of variations to run: %d", state->num_variations); - if(state->num_variations <= 0) - { - SDLTest_LogError("Arguments parsing error: num-variations must be positive."); - return -1; - } - return 2; - } - else if(StrCaseCmpIgnoreHyphen("no-launch", argv[index]) == 0) - { - state->no_launch = SDL_TRUE; - SDLTest_Log("SUT will not be launched."); - return 1; - } - else if(StrCaseCmpIgnoreHyphen("action-config", argv[index]) == 0) - { - index++; - if(!argv[index]) - { - SDLTest_LogError("Arguments parsing error: invalid argument for action-config"); - return -1; - } - SDLTest_Log("Action Config file: %s", argv[index]); - SDLVisualTest_EmptyActionQueue(&state->action_queue); - if(!SDLVisualTest_ParseActionConfig(argv[index], &state->action_queue)) - { - SDLTest_LogError("SDLVisualTest_ParseActionConfig() failed"); - return -1; - } - return 2; - } - else if(StrCaseCmpIgnoreHyphen("config", argv[index]) == 0) - { - index++; - if(!argv[index]) - { - SDLTest_LogError("Arguments parsing error: invalid argument for config"); - return -1; - } - - /* do nothing, this option has already been handled */ - return 2; - } - return 0; -} - -/* TODO: Trailing/leading spaces and spaces between equals sign not supported. */ -static int -ParseConfig(const char* file, SDLVisualTest_HarnessState* state) -{ - SDL_RWops* rw; - SDLVisualTest_RWHelperBuffer buffer; - char line[MAX_CONFIG_LINE_LEN]; - - rw = SDL_RWFromFile(file, "r"); - if(!rw) - { - SDLTest_LogError("SDL_RWFromFile() failed"); - return 0; - } - - SDLVisualTest_RWHelperResetBuffer(&buffer); - while(SDLVisualTest_RWHelperReadLine(rw, line, MAX_CONFIG_LINE_LEN, - &buffer, '#')) - { - char** argv; - int i, num_params; - - /* count number of parameters and replace the trailing newline with 0 */ - num_params = 1; - for(i = 0; line[i]; i++) - { - if(line[i] == '=') - { - num_params = 2; - break; - } - } - - /* populate argv */ - argv = (char**)SDL_malloc((num_params + 1) * sizeof(char*)); - if(!argv) - { - SDLTest_LogError("SDL_malloc() failed."); - SDL_RWclose(rw); - return 0; - } - - argv[num_params] = NULL; - for(i = 0; i < num_params; i++) - { - argv[i] = strtok(i == 0 ? line : NULL, "="); - } - - if(ParseArg(argv, 0, state) == -1) - { - SDLTest_LogError("ParseArg() failed"); - SDL_free(argv); - SDL_RWclose(rw); - return 0; - } - SDL_free(argv); - } - SDL_RWclose(rw); - - if(!state->sutapp[0]) - return 0; - return 1; -} - -int -SDLVisualTest_ParseHarnessArgs(char** argv, SDLVisualTest_HarnessState* state) -{ - int i; - - SDLTest_Log("Parsing commandline arguments.."); - - if(!argv) - { - SDLTest_LogError("argv is NULL"); - return 0; - } - if(!state) - { - SDLTest_LogError("state is NULL"); - return 0; - } - - /* initialize the state object */ - state->sutargs[0] = '\0'; - state->sutapp[0] = '\0'; - state->output_dir[0] = '\0'; - state->verify_dir[0] = '\0'; - state->timeout = DEFAULT_SUT_TIMEOUT; - SDL_memset(&state->sut_config, 0, sizeof(SDLVisualTest_SUTConfig)); - SDL_memset(&state->action_queue, 0, sizeof(SDLVisualTest_ActionQueue)); - state->variator_type = SDL_VARIATOR_RANDOM; - state->num_variations = -1; - state->no_launch = SDL_FALSE; - - /* parse config file if passed */ - for(i = 0; argv[i]; i++) - { - if(StrCaseCmpIgnoreHyphen("config", argv[i]) == 0) - { - if(!argv[i + 1]) - { - SDLTest_Log("Arguments parsing error: invalid argument for config."); - return 0; - } - if(!ParseConfig(argv[i + 1], state)) - { - SDLTest_LogError("ParseConfig() failed"); - return 0; - } - } - } - - /* parse the arguments */ - for(i = 0; argv[i];) - { - int consumed = ParseArg(argv, i, state); - if(consumed == -1 || consumed == 0) - { - SDLTest_LogError("ParseArg() failed"); - return 0; - } - i += consumed; - } - - if(state->variator_type == SDL_VARIATOR_RANDOM && state->num_variations == -1) - state->num_variations = 1; - - /* check to see if required options have been passed */ - if(!state->sutapp[0]) - { - SDLTest_LogError("sutapp must be passed."); - return 0; - } - if(!state->sutargs[0] && !state->sut_config.options) - { - SDLTest_LogError("Either sutargs or parameter-config must be passed."); - return 0; - } - if(!state->output_dir[0]) - { - SDL_strlcpy(state->output_dir, "./output", MAX_PATH_LEN); - } - if(!state->verify_dir[0]) - { - SDL_strlcpy(state->verify_dir, "./verify", MAX_PATH_LEN); - } - - return 1; -} - -void -SDLVisualTest_FreeHarnessState(SDLVisualTest_HarnessState* state) -{ - if(state) - { - SDLVisualTest_EmptyActionQueue(&state->action_queue); - SDLVisualTest_FreeSUTConfig(&state->sut_config); - } -} diff --git a/visualtest/src/linux/linux_process.c b/visualtest/src/linux/linux_process.c deleted file mode 100644 index b93f3407e..000000000 --- a/visualtest/src/linux/linux_process.c +++ /dev/null @@ -1,208 +0,0 @@ -/* See LICENSE.txt for the full license governing this code. */ -/** - * \file linux_process.c - * - * Source file for the process API on linux. - */ - - -#include -#include - -#include "SDL_visualtest_process.h" -#include "SDL_visualtest_harness_argparser.h" -#include "SDL_visualtest_parsehelper.h" - -#if defined(__LINUX__) -#include -#include -#include -#include - -static void -LogLastError(const char* str) -{ - const char* error = strerror(errno); - if(!str || !error) - return; - SDLTest_LogError("%s: %s", str, error); -} - -int -SDL_LaunchProcess(char* file, char* args, SDL_ProcessInfo* pinfo) -{ - pid_t pid; - char** argv; - - if(!file) - { - SDLTest_LogError("file argument cannot be NULL"); - return 0; - } - if(!pinfo) - { - SDLTest_LogError("pinfo cannot be NULL"); - return 0; - } - pid = fork(); - if(pid == -1) - { - LogLastError("fork() failed"); - return 0; - } - else if(pid == 0) - { - /* parse the arguments string */ - argv = SDLVisualTest_ParseArgsToArgv(args); - argv[0] = file; - execv(file, argv); - LogLastError("execv() failed"); - return 0; - } - else - { - pinfo->pid = pid; - return 1; - } - - /* never executed */ - return 0; -} - -int -SDL_GetProcessExitStatus(SDL_ProcessInfo* pinfo, SDL_ProcessExitStatus* ps) -{ - int success, status; - if(!pinfo) - { - SDLTest_LogError("pinfo argument cannot be NULL"); - return 0; - } - if(!ps) - { - SDLTest_LogError("ps argument cannot be NULL"); - return 0; - } - success = waitpid(pinfo->pid, &status, WNOHANG); - if(success == -1) - { - LogLastError("waitpid() failed"); - return 0; - } - else if(success == 0) - { - ps->exit_status = -1; - ps->exit_success = 1; - } - else - { - ps->exit_success = WIFEXITED(status); - ps->exit_status = WEXITSTATUS(status); - } - return 1; -} - -int -SDL_IsProcessRunning(SDL_ProcessInfo* pinfo) -{ - int success; - - if(!pinfo) - { - SDLTest_LogError("pinfo cannot be NULL"); - return -1; - } - - success = kill(pinfo->pid, 0); - if(success == -1) - { - if(errno == ESRCH) /* process is not running */ - return 0; - else - { - LogLastError("kill() failed"); - return -1; - } - } - return 1; -} - -int -SDL_QuitProcess(SDL_ProcessInfo* pinfo, SDL_ProcessExitStatus* ps) -{ - int success, status; - - if(!pinfo) - { - SDLTest_LogError("pinfo argument cannot be NULL"); - return 0; - } - if(!ps) - { - SDLTest_LogError("ps argument cannot be NULL"); - return 0; - } - - success = kill(pinfo->pid, SIGQUIT); - if(success == -1) - { - LogLastError("kill() failed"); - return 0; - } - - success = waitpid(pinfo->pid, &status, 0); - if(success == -1) - { - LogLastError("waitpid() failed"); - return 0; - } - - ps->exit_success = WIFEXITED(status); - ps->exit_status = WEXITSTATUS(status); - return 1; -} - -int -SDL_KillProcess(SDL_ProcessInfo* pinfo, SDL_ProcessExitStatus* ps) -{ - int success, status; - - if(!pinfo) - { - SDLTest_LogError("pinfo argument cannot be NULL"); - return 0; - } - if(!ps) - { - SDLTest_LogError("ps argument cannot be NULL"); - return 0; - } - - success = kill(pinfo->pid, SIGKILL); - if(success == -1) - { - LogLastError("kill() failed"); - return 0; - } - success = waitpid(pinfo->pid, &status, 0); - if(success == -1) - { - LogLastError("waitpid() failed"); - return 0; - } - - ps->exit_success = WIFEXITED(status); - ps->exit_status = WEXITSTATUS(status); - return 1; -} - -/* each window of the process will have a screenshot taken. The file name will be - prefix-i.png for the i'th window. */ -int -SDLVisualTest_ScreenshotProcess(SDL_ProcessInfo* pinfo, char* prefix) -{ - SDLTest_LogError("Screenshot process not implemented"); - return 0; -} - -#endif diff --git a/visualtest/src/mischelper.c b/visualtest/src/mischelper.c deleted file mode 100644 index 9684af6f6..000000000 --- a/visualtest/src/mischelper.c +++ /dev/null @@ -1,28 +0,0 @@ -/** - * \file mischelper.c - * - * Source file with miscellaneous helper functions. - */ - -#include - -void -SDLVisualTest_HashString(char* str, char hash[33]) -{ - SDLTest_Md5Context md5c; - int i; - - if(!str) - { - SDLTest_LogError("str argument cannot be NULL"); - return; - } - - SDLTest_Md5Init(&md5c); - SDLTest_Md5Update(&md5c, (unsigned char*)str, SDL_strlen(str)); - SDLTest_Md5Final(&md5c); - - /* convert the md5 hash to an array of hexadecimal digits */ - for(i = 0; i < 16; i++) - SDL_snprintf(hash + 2 * i, 33 - 2 * i, "%02x", (int)md5c.digest[i]); -} diff --git a/visualtest/src/parsehelper.c b/visualtest/src/parsehelper.c deleted file mode 100644 index 9d38cb2f2..000000000 --- a/visualtest/src/parsehelper.c +++ /dev/null @@ -1,231 +0,0 @@ -/* See LICENSE.txt for the full license governing this code. */ -/** - * \file parsehelper.c - * - * Source file with some helper functions for parsing strings. - */ - -#include -#include "SDL_visualtest_harness_argparser.h" - -/* this function uses a DFA to count the number of tokens in an agruments string. - state 0 is taken to be the start and end state. State 1 handles a double quoted - argument and state 2 handles unquoted arguments. */ -static int -CountTokens(char* args) -{ - int index, num_tokens; - int state; /* current state of the DFA */ - - if(!args) - return -1; - - index = 0; - state = 0; - num_tokens = 0; - while(args[index]) - { - char ch = args[index]; - switch(state) - { - case 0: - if(ch == '\"') - { - state = 1; - num_tokens++; - } - else if(!SDL_isspace(ch)) - { - state = 2; - num_tokens++; - } - break; - - case 1: - if(ch == '\"') - { - state = 0; - } - break; - - case 2: - if(SDL_isspace(ch)) - { - state = 0; - } - break; - } - index++; - } - return num_tokens; -} - -/* - size of tokens is num_tokens + 1 -- uses the same DFA used in CountTokens() to split args into an array of strings */ -static int -TokenizeHelper(char* str, char** tokens, int num_tokens, int max_token_len) -{ - int index, state, done, st_index, token_index; - - if(!str) - { - SDLTest_LogError("str argument cannot be NULL"); - return 0; - } - if(!tokens) - { - SDLTest_LogError("tokens argument cannot be NULL"); - return 0; - } - if(num_tokens <= 0) - { - SDLTest_LogError("num_tokens argument must be positive"); - return 0; - } - if(max_token_len <= 0) - { - SDLTest_LogError("max_token_len argument must be positive"); - return 0; - } - - /* allocate memory for the tokens */ - tokens[num_tokens] = NULL; - for(index = 0; index < num_tokens; index++) - { - tokens[index] = (char*)SDL_malloc(max_token_len); - if(!tokens[index]) - { - int i; - SDLTest_LogError("SDL_malloc() failed."); - for(i = 0; i < index; i++) - SDL_free(tokens[i]); - return 0; - } - tokens[index][0] = '\0'; - } - - /* copy the tokens into the array */ - st_index = 0; - index = 0; - token_index = 0; - state = 0; - done = 0; - while(!done) - { - char ch = str[index]; - switch(state) - { - case 0: - if(ch == '\"') - { - state = 1; - st_index = index + 1; - } - else if(!ch) - done = 1; - else if(ch && !SDL_isspace(ch)) - { - state = 2; - st_index = index; - } - break; - - case 1: - if(ch == '\"') - { - int i; - state = 0; - for(i = st_index; i < index; i++) - { - tokens[token_index][i - st_index] = str[i]; - } - tokens[token_index][i - st_index] = '\0'; - token_index++; - } - else if(!ch) - { - SDLTest_LogError("Parsing Error!"); - done = 1; - } - break; - - case 2: - if(!ch) - done = 1; - if(SDL_isspace(ch) || !ch) - { - int i; - state = 0; - for(i = st_index; i < index; i++) - { - tokens[token_index][i - st_index] = str[i]; - } - tokens[token_index][i - st_index] = '\0'; - token_index++; - } - break; - } - index++; - } - return 1; -} - -char** -SDLVisualTest_Tokenize(char* str, int max_token_len) -{ - int num_tokens; - char** tokens; - - if(!str) - { - SDLTest_LogError("str argument cannot be NULL"); - return NULL; - } - if(max_token_len <= 0) - { - SDLTest_LogError("max_token_len argument must be positive"); - return NULL; - } - - num_tokens = CountTokens(str); - if(num_tokens == 0) - return NULL; - - tokens = (char**)SDL_malloc(sizeof(char*) * (num_tokens + 1)); - if(!TokenizeHelper(str, tokens, num_tokens, max_token_len)) - { - SDLTest_LogError("TokenizeHelper() failed"); - SDL_free(tokens); - return NULL; - } - return tokens; -} - -char** -SDLVisualTest_ParseArgsToArgv(char* args) -{ - char** argv; - int num_tokens; - - num_tokens = CountTokens(args); - if(num_tokens == 0) - return NULL; - - /* allocate space for arguments */ - argv = (char**)SDL_malloc((num_tokens + 2) * sizeof(char*)); - if(!argv) - { - SDLTest_LogError("SDL_malloc() failed."); - return NULL; - } - - /* tokenize */ - if(!TokenizeHelper(args, argv + 1, num_tokens, MAX_SUT_ARGS_LEN)) - { - SDLTest_LogError("TokenizeHelper() failed"); - SDL_free(argv); - return NULL; - } - argv[0] = NULL; - return argv; -} diff --git a/visualtest/src/rwhelper.c b/visualtest/src/rwhelper.c deleted file mode 100644 index 1ff9190ff..000000000 --- a/visualtest/src/rwhelper.c +++ /dev/null @@ -1,131 +0,0 @@ -/* See LICENSE.txt for the full license governing this code. */ -/** - * \file rwhelper.c - * - * Source file with some helper functions for working with SDL_RWops. - */ - -#include -#include "SDL_visualtest_sut_configparser.h" -#include "SDL_visualtest_rwhelper.h" - -void -SDLVisualTest_RWHelperResetBuffer(SDLVisualTest_RWHelperBuffer* buffer) -{ - if(!buffer) - { - SDLTest_LogError("buffer argument cannot be NULL"); - return; - } - buffer->buffer_pos = 0; - buffer->buffer_width = 0; -} - -char -SDLVisualTest_RWHelperReadChar(SDL_RWops* rw, SDLVisualTest_RWHelperBuffer* buffer) -{ - if(!rw || !buffer) - return 0; - /* if the buffer has been consumed, we fill it up again */ - if(buffer->buffer_pos == buffer->buffer_width) - { - buffer->buffer_width = SDL_RWread(rw, buffer->buffer, 1, RWOPS_BUFFER_LEN); - buffer->buffer_pos = 0; - if(buffer->buffer_width == 0) - return 0; - } - buffer->buffer_pos++; - return buffer->buffer[buffer->buffer_pos - 1]; -} - -/* does not include new lines in the buffer and adds a trailing null character */ -char* -SDLVisualTest_RWHelperReadLine(SDL_RWops* rw, char* str, int size, - SDLVisualTest_RWHelperBuffer* buffer, - char comment_char) -{ - char ch; - int current_pos, done; - if(!rw) - { - SDLTest_LogError("rw argument cannot be NULL"); - return NULL; - } - if(!str) - { - SDLTest_LogError("str argument cannot be NULL"); - return NULL; - } - if(!buffer) - { - SDLTest_LogError("buffer argument cannot be NULL"); - return NULL; - } - if(size <= 0) - { - SDLTest_LogError("size argument should be positive"); - return NULL; - } - - done = 0; - while(!done) - { - /* ignore leading whitespace */ - for(ch = SDLVisualTest_RWHelperReadChar(rw, buffer); ch && SDL_isspace(ch); - ch = SDLVisualTest_RWHelperReadChar(rw, buffer)); - - for(current_pos = 0; - ch && ch != '\n' && ch != '\r' && ch != comment_char; - current_pos++) - { - str[current_pos] = ch; - if(current_pos >= size - 2) - { - current_pos++; - break; - } - ch = SDLVisualTest_RWHelperReadChar(rw, buffer); - } - - done = 1; - if(ch == comment_char) /* discard all characters until the next line */ - { - do - { - ch = SDLVisualTest_RWHelperReadChar(rw, buffer); - }while(ch && ch != '\n' && ch != '\r'); - - if(current_pos == 0) - done = 0; - } - } - if(current_pos == 0) - return NULL; - - str[current_pos] = '\0'; - return str; -} - -/* Lines with all whitespace are ignored */ -int -SDLVisualTest_RWHelperCountNonEmptyLines(SDL_RWops* rw, - SDLVisualTest_RWHelperBuffer* buffer, - char comment_char) -{ - int num_lines = 0; - char str[MAX_SUTOPTION_LINE_LENGTH]; - if(!rw) - { - SDLTest_LogError("rw argument cannot be NULL"); - return -1; - } - if(!buffer) - { - SDLTest_LogError("buffer argument cannot be NULL"); - return -1; - } - while(SDLVisualTest_RWHelperReadLine(rw, str, MAX_SUTOPTION_LINE_LENGTH, - buffer, comment_char)) - num_lines++; - return num_lines; -} diff --git a/visualtest/src/screenshot.c b/visualtest/src/screenshot.c deleted file mode 100644 index be5e4df85..000000000 --- a/visualtest/src/screenshot.c +++ /dev/null @@ -1,136 +0,0 @@ -/* See LICENSE.txt for the full license governing this code. */ -/** - * \file screenshot.c - * - * Source file for the screenshot API. - */ - -#include "SDL_visualtest_mischelper.h" -#include - -int -SDLVisualTest_VerifyScreenshots(char* args, char* test_dir, char* verify_dir) -{ - int i, verify_len, return_code, test_len; - char hash[33]; - char* verify_path; /* path to the bmp file used for verification */ - char* test_path; /* path to the bmp file to be verified */ - SDL_RWops* rw; - SDL_Surface* verifybmp; - - return_code = 1; - - if(!args) - { - SDLTest_LogError("args argument cannot be NULL"); - return_code = -1; - goto verifyscreenshots_cleanup_generic; - } - if(!test_dir) - { - SDLTest_LogError("test_dir argument cannot be NULL"); - return_code = -1; - goto verifyscreenshots_cleanup_generic; - } - if(!verify_dir) - { - SDLTest_LogError("verify_dir argument cannot be NULL"); - return_code = -1; - goto verifyscreenshots_cleanup_generic; - } - - /* generate the MD5 hash */ - SDLVisualTest_HashString(args, hash); - - /* find the verification image */ - /* path_len + hash_len + some number of extra characters */ - verify_len = SDL_strlen(verify_dir) + 32 + 10; - verify_path = (char*)SDL_malloc(verify_len * sizeof(char)); - if(!verify_path) - { - SDLTest_LogError("SDL_malloc() failed"); - return_code = -1; - goto verifyscreenshots_cleanup_generic; - } - SDL_snprintf(verify_path, verify_len - 1, - "%s/%s.bmp", verify_dir, hash); - rw = SDL_RWFromFile(verify_path, "rb"); - if(!rw) - { - SDLTest_Log("Verification image does not exist." - " Please manually verify that the SUT is working correctly."); - return_code = 2; - goto verifyscreenshots_cleanup_verifypath; - } - - /* load the verification image */ - verifybmp = SDL_LoadBMP_RW(rw, 1); - if(!verifybmp) - { - SDLTest_LogError("SDL_LoadBMP_RW() failed"); - return_code = -1; - goto verifyscreenshots_cleanup_verifypath; - } - - /* load the test images and compare with the verification image */ - /* path_len + hash_len + some number of extra characters */ - test_len = SDL_strlen(test_dir) + 32 + 10; - test_path = (char*)SDL_malloc(test_len * sizeof(char)); - if(!test_path) - { - SDLTest_LogError("SDL_malloc() failed"); - return_code = -1; - goto verifyscreenshots_cleanup_verifybmp; - } - - for(i = 1; ; i++) - { - SDL_RWops* testrw; - SDL_Surface* testbmp; - - if(i == 1) - SDL_snprintf(test_path, test_len - 1, "%s/%s.bmp", test_dir, hash); - else - SDL_snprintf(test_path, test_len - 1, "%s/%s_%d.bmp", test_dir, hash, i); - testrw = SDL_RWFromFile(test_path, "rb"); - - /* we keep going until we've iterated through the screenshots each - SUT window */ - if(!testrw) - break; - - /* load the test screenshot */ - testbmp = SDL_LoadBMP_RW(testrw, 1); - if(!testbmp) - { - SDLTest_LogError("SDL_LoadBMP_RW() failed"); - return_code = -1; - goto verifyscreenshots_cleanup_verifybmp; - } - - /* compare with the verification image */ - if(SDLTest_CompareSurfaces(testbmp, verifybmp, 0) != 0) - { - return_code = 0; - SDL_FreeSurface(testbmp); - goto verifyscreenshots_cleanup_verifybmp; - } - - SDL_FreeSurface(testbmp); - } - - if(i == 1) - { - SDLTest_LogError("No verification images found"); - return_code = -1; - } - -verifyscreenshots_cleanup_verifybmp: - SDL_FreeSurface(verifybmp); - -verifyscreenshots_cleanup_verifypath: - SDL_free(verify_path); - -verifyscreenshots_cleanup_generic: - return return_code; -} diff --git a/visualtest/src/sut_configparser.c b/visualtest/src/sut_configparser.c deleted file mode 100644 index fa8c2d4bb..000000000 --- a/visualtest/src/sut_configparser.c +++ /dev/null @@ -1,232 +0,0 @@ -/* See LICENSE.txt for the full license governing this code. */ -/** - * \file sut_configparser.c - * - * Source file for the parser for SUT config files. - */ - -#include -#include -#include -#include -#include "SDL_visualtest_sut_configparser.h" -#include "SDL_visualtest_parsehelper.h" -#include "SDL_visualtest_rwhelper.h" - -int -SDLVisualTest_ParseSUTConfig(char* file, SDLVisualTest_SUTConfig* config) -{ - char line[MAX_SUTOPTION_LINE_LENGTH]; - SDLVisualTest_RWHelperBuffer buffer; - char* token_ptr; - char* token_end; - int num_lines, i, token_len; - SDL_RWops* rw; - - if(!file) - { - SDLTest_LogError("file argument cannot be NULL"); - return 0; - } - if(!config) - { - SDLTest_LogError("config argument cannot be NULL"); - return 0; - } - - /* count the number of lines */ - rw = SDL_RWFromFile(file, "r"); - if(!rw) - { - SDLTest_LogError("SDL_RWFromFile() failed"); - return 0; - } - SDLVisualTest_RWHelperResetBuffer(&buffer); - num_lines = SDLVisualTest_RWHelperCountNonEmptyLines(rw, &buffer, '#'); - if(num_lines == -1) - return 0; - else if(num_lines == 0) - { - config->options = NULL; - config->num_options = 0; - SDL_RWclose(rw); - return 1; - } - - /* allocate memory */ - SDL_RWseek(rw, 0, RW_SEEK_SET); - SDLVisualTest_RWHelperResetBuffer(&buffer); - config->num_options = num_lines; - config->options = (SDLVisualTest_SUTOption*)SDL_malloc(num_lines * - sizeof(SDLVisualTest_SUTOption)); - if(!config->options) - { - SDLTest_LogError("SDL_malloc() failed"); - SDL_RWclose(rw); - return 0; - } - - /* actually parse the options */ - for(i = 0; i < num_lines; i++) - { - if(!SDLVisualTest_RWHelperReadLine(rw, line, MAX_SUTOPTION_LINE_LENGTH, - &buffer, '#')) - { - SDLTest_LogError("SDLVisualTest_RWHelperReadLine() failed"); - SDL_free(config->options); - SDL_RWclose(rw); - return 0; - } - - /* parse name */ - token_ptr = strtok(line, ", "); - if(!token_ptr) - { - SDLTest_LogError("Could not parse line %d", i + 1); - SDL_free(config->options); - SDL_RWclose(rw); - return 0; - } - token_len = SDL_strlen(token_ptr) + 1; - SDL_strlcpy(config->options[i].name, token_ptr, token_len); - - /* parse type */ - token_ptr = strtok(NULL, ", "); - if(!token_ptr) - { - SDLTest_LogError("Could not parse line %d", i + 1); - SDL_free(config->options); - SDL_RWclose(rw); - return 0; - } - if(SDL_strcmp(token_ptr, "string") == 0) - config->options[i].type = SDL_SUT_OPTIONTYPE_STRING; - else if(SDL_strcmp(token_ptr, "integer") == 0) - config->options[i].type = SDL_SUT_OPTIONTYPE_INT; - else if(SDL_strcmp(token_ptr, "enum") == 0) - config->options[i].type = SDL_SUT_OPTIONTYPE_ENUM; - else if(SDL_strcmp(token_ptr, "boolean") == 0) - config->options[i].type = SDL_SUT_OPTIONTYPE_BOOL; - else - { - SDLTest_LogError("Could not parse type token at line %d", i + 1); - SDL_free(config->options); - SDL_RWclose(rw); - return 0; - } - - /* parse values */ - token_ptr = strtok(NULL, "]"); - if(!token_ptr) - { - SDLTest_LogError("Could not parse line %d", i + 1); - SDL_free(config->options); - SDL_RWclose(rw); - return 0; - } - token_ptr = SDL_strchr(token_ptr, '['); - if(!token_ptr) - { - SDLTest_LogError("Could not parse enum token at line %d", i + 1); - SDL_free(config->options); - SDL_RWclose(rw); - return 0; - } - token_ptr++; - if(config->options[i].type == SDL_SUT_OPTIONTYPE_INT) - { - if(SDL_sscanf(token_ptr, "%d %d", &config->options[i].data.range.min, - &config->options[i].data.range.max) != 2) - { - config->options[i].data.range.min = INT_MIN; - config->options[i].data.range.max = INT_MAX; - } - } - else if(config->options[i].type == SDL_SUT_OPTIONTYPE_ENUM) - { - config->options[i].data.enum_values = SDLVisualTest_Tokenize(token_ptr, - MAX_SUTOPTION_ENUMVAL_LEN); - if(!config->options[i].data.enum_values) - { - SDLTest_LogError("Could not parse enum token at line %d", i + 1); - SDL_free(config->options); - SDL_RWclose(rw); - return 0; - } - } - - /* parse required */ - token_ptr = strtok(NULL, ", "); - if(!token_ptr) - { - SDLTest_LogError("Could not parse line %d", i + 1); - SDL_free(config->options); - SDL_RWclose(rw); - return 0; - } - - if(SDL_strcmp(token_ptr, "true") == 0) - config->options[i].required = SDL_TRUE; - else if(SDL_strcmp(token_ptr, "false") == 0) - config->options[i].required = SDL_FALSE; - else - { - SDLTest_LogError("Could not parse required token at line %d", i + 1); - SDL_free(config->options); - SDL_RWclose(rw); - return 0; - } - - /* parse categories */ - token_ptr = strtok(NULL, ","); - if(!token_ptr) - { - SDLTest_LogError("Could not parse line %d", i + 1); - SDL_free(config->options); - SDL_RWclose(rw); - return 0; - } - token_ptr = SDL_strchr(token_ptr, '['); - if(!token_ptr) - { - SDLTest_LogError("Could not parse enum token at line %d", i + 1); - SDL_free(config->options); - SDL_RWclose(rw); - return 0; - } - token_ptr++; - token_end = SDL_strchr(token_ptr, ']'); - *token_end = '\0'; - if(!token_end) - { - SDLTest_LogError("Could not parse enum token at line %d", i + 1); - SDL_free(config->options); - SDL_RWclose(rw); - return 0; - } - config->options[i].categories = SDLVisualTest_Tokenize(token_ptr, - MAX_SUTOPTION_CATEGORY_LEN); - } - SDL_RWclose(rw); - return 1; -} - -void -SDLVisualTest_FreeSUTConfig(SDLVisualTest_SUTConfig* config) -{ - if(config && config->options) - { - SDLVisualTest_SUTOption* option; - for(option = config->options; - option != config->options + config->num_options; option++) - { - if(option->categories) - SDL_free(option->categories); - if(option->type == SDL_SUT_OPTIONTYPE_ENUM && option->data.enum_values) - SDL_free(option->data.enum_values); - } - SDL_free(config->options); - config->options = NULL; - config->num_options = 0; - } -} diff --git a/visualtest/src/testharness.c b/visualtest/src/testharness.c deleted file mode 100644 index db3ca55b2..000000000 --- a/visualtest/src/testharness.c +++ /dev/null @@ -1,532 +0,0 @@ -/* See LICENSE.txt for the full license governing this code. */ -/** - * \file testharness.c - * - * Source file for the test harness. - */ - -#include -#include -#include -#include -#include "SDL_visualtest_harness_argparser.h" -#include "SDL_visualtest_process.h" -#include "SDL_visualtest_variators.h" -#include "SDL_visualtest_screenshot.h" -#include "SDL_visualtest_mischelper.h" - -#if defined(__WIN32__) && !defined(__CYGWIN__) -#include -#elif defined(__WIN32__) && defined(__CYGWIN__) -#include -#elif defined(__LINUX__) -#include -#include -#include -#else -#error "Unsupported platform" -#endif - -/** Code for the user event triggered when a new action is to be executed */ -#define ACTION_TIMER_EVENT 0 -/** Code for the user event triggered when the maximum timeout is reached */ -#define KILL_TIMER_EVENT 1 -/** FPS value used for delays in the action loop */ -#define ACTION_LOOP_FPS 10 - -/** Value returned by RunSUTAndTest() when the test has passed */ -#define TEST_PASSED 1 -/** Value returned by RunSUTAndTest() when the test has failed */ -#define TEST_FAILED 0 -/** Value returned by RunSUTAndTest() on a fatal error */ -#define TEST_ERROR -1 - -static SDL_ProcessInfo pinfo; -static SDL_ProcessExitStatus sut_exitstatus; -static SDLVisualTest_HarnessState state; -static SDLVisualTest_Variator variator; -static SDLVisualTest_ActionNode* current; /* the current action being performed */ -static SDL_TimerID action_timer, kill_timer; - -/* returns a char* to be passed as the format argument of a printf-style function. */ -static const char* -usage(void) -{ - return "Usage: \n%s --sutapp xyz" - " [--sutargs abc | --parameter-config xyz.parameters" - " [--variator exhaustive|random]" - " [--num-variations N] [--no-launch]] [--timeout hh:mm:ss]" - " [--action-config xyz.actions]" - " [--output-dir /path/to/output]" - " [--verify-dir /path/to/verify]" - " or --config app.config"; -} - -/* register Ctrl+C handlers */ -#if defined(__LINUX__) || defined(__CYGWIN__) -static void -CtrlCHandlerCallback(int signum) -{ - SDL_Event event; - SDLTest_Log("Ctrl+C received"); - event.type = SDL_QUIT; - SDL_PushEvent(&event); -} -#endif - -static Uint32 -ActionTimerCallback(Uint32 interval, void* param) -{ - SDL_Event event; - SDL_UserEvent userevent; - Uint32 next_action_time; - - /* push an event to handle the action */ - SDL_zero(userevent); - userevent.type = SDL_USEREVENT; - userevent.code = ACTION_TIMER_EVENT; - userevent.data1 = ¤t->action; - - event.type = SDL_USEREVENT; - event.user = userevent; - SDL_PushEvent(&event); - - /* calculate the new interval and return it */ - if(current->next) - next_action_time = current->next->action.time - current->action.time; - else - { - next_action_time = 0; - action_timer = 0; - } - - current = current->next; - return next_action_time; -} - -static Uint32 -KillTimerCallback(Uint32 interval, void* param) -{ - SDL_Event event; - SDL_UserEvent userevent; - - SDL_zero(userevent); - userevent.type = SDL_USEREVENT; - userevent.code = KILL_TIMER_EVENT; - - event.type = SDL_USEREVENT; - event.user = userevent; - SDL_PushEvent(&event); - - kill_timer = 0; - return 0; -} - -static int -ProcessAction(SDLVisualTest_Action* action, int* sut_running, char* args) -{ - if(!action || !sut_running) - return TEST_ERROR; - - switch(action->type) - { - case SDL_ACTION_KILL: - SDLTest_Log("Action: Kill SUT"); - if(SDL_IsProcessRunning(&pinfo) == 1 && - !SDL_KillProcess(&pinfo, &sut_exitstatus)) - { - SDLTest_LogError("SDL_KillProcess() failed"); - return TEST_ERROR; - } - *sut_running = 0; - break; - - case SDL_ACTION_QUIT: - SDLTest_Log("Action: Quit SUT"); - if(SDL_IsProcessRunning(&pinfo) == 1 && - !SDL_QuitProcess(&pinfo, &sut_exitstatus)) - { - SDLTest_LogError("SDL_QuitProcess() failed"); - return TEST_FAILED; - } - *sut_running = 0; - break; - - case SDL_ACTION_LAUNCH: - { - char* path; - char* args; - SDL_ProcessInfo action_process; - SDL_ProcessExitStatus ps; - - path = action->extra.process.path; - args = action->extra.process.args; - if(args) - { - SDLTest_Log("Action: Launch process: %s with arguments: %s", - path, args); - } - else - SDLTest_Log("Action: Launch process: %s", path); - if(!SDL_LaunchProcess(path, args, &action_process)) - { - SDLTest_LogError("SDL_LaunchProcess() failed"); - return TEST_ERROR; - } - - /* small delay so that the process can do its job */ - SDL_Delay(1000); - - if(SDL_IsProcessRunning(&action_process) > 0) - { - SDLTest_LogError("Process %s took too long too complete." - " Force killing...", action->extra.process.path); - if(!SDL_KillProcess(&action_process, &ps)) - { - SDLTest_LogError("SDL_KillProcess() failed"); - return TEST_ERROR; - } - } - } - break; - - case SDL_ACTION_SCREENSHOT: - { - char path[MAX_PATH_LEN], hash[33]; - - SDLTest_Log("Action: Take screenshot"); - /* can't take a screenshot if the SUT isn't running */ - if(SDL_IsProcessRunning(&pinfo) != 1) - { - SDLTest_LogError("SUT has quit."); - *sut_running = 0; - return TEST_FAILED; - } - - /* file name for the screenshot image */ - SDLVisualTest_HashString(args, hash); - SDL_snprintf(path, MAX_PATH_LEN, "%s/%s", state.output_dir, hash); - if(!SDLVisualTest_ScreenshotProcess(&pinfo, path)) - { - SDLTest_LogError("SDLVisualTest_ScreenshotProcess() failed"); - return TEST_ERROR; - } - } - break; - - case SDL_ACTION_VERIFY: - { - int ret; - - SDLTest_Log("Action: Verify screenshot"); - ret = SDLVisualTest_VerifyScreenshots(args, state.output_dir, - state.verify_dir); - - if(ret == -1) - { - SDLTest_LogError("SDLVisualTest_VerifyScreenshots() failed"); - return TEST_ERROR; - } - else if(ret == 0) - { - SDLTest_Log("Verification failed: Images were not equal."); - return TEST_FAILED; - } - else if(ret == 1) - SDLTest_Log("Verification successful."); - else - { - SDLTest_Log("Verfication skipped."); - return TEST_FAILED; - } - } - break; - - default: - SDLTest_LogError("Invalid action type"); - return TEST_ERROR; - break; - } - - return TEST_PASSED; -} - -static int -RunSUTAndTest(char* sutargs, int variation_num) -{ - int success, sut_running, return_code; - char hash[33]; - SDL_Event event; - - return_code = TEST_PASSED; - - if(!sutargs) - { - SDLTest_LogError("sutargs argument cannot be NULL"); - return_code = TEST_ERROR; - goto runsutandtest_cleanup_generic; - } - - SDLVisualTest_HashString(sutargs, hash); - SDLTest_Log("Hash: %s", hash); - - success = SDL_LaunchProcess(state.sutapp, sutargs, &pinfo); - if(!success) - { - SDLTest_Log("Could not launch SUT."); - return_code = TEST_ERROR; - goto runsutandtest_cleanup_generic; - } - SDLTest_Log("SUT launch successful."); - SDLTest_Log("Process will be killed in %d milliseconds", state.timeout); - sut_running = 1; - - /* launch the timers */ - SDLTest_Log("Performing actions.."); - current = state.action_queue.front; - action_timer = 0; - kill_timer = 0; - if(current) - { - action_timer = SDL_AddTimer(current->action.time, ActionTimerCallback, NULL); - if(!action_timer) - { - SDLTest_LogError("SDL_AddTimer() failed"); - return_code = TEST_ERROR; - goto runsutandtest_cleanup_timer; - } - } - kill_timer = SDL_AddTimer(state.timeout, KillTimerCallback, NULL); - if(!kill_timer) - { - SDLTest_LogError("SDL_AddTimer() failed"); - return_code = TEST_ERROR; - goto runsutandtest_cleanup_timer; - } - - /* the timer stops running if the actions queue is empty, and the - SUT stops running if it crashes or if we encounter a KILL/QUIT action */ - while(sut_running) - { - /* process the actions by using an event queue */ - while(SDL_PollEvent(&event)) - { - if(event.type == SDL_USEREVENT) - { - if(event.user.code == ACTION_TIMER_EVENT) - { - SDLVisualTest_Action* action; - - action = (SDLVisualTest_Action*)event.user.data1; - - switch(ProcessAction(action, &sut_running, sutargs)) - { - case TEST_PASSED: - break; - - case TEST_FAILED: - return_code = TEST_FAILED; - goto runsutandtest_cleanup_timer; - break; - - default: - SDLTest_LogError("ProcessAction() failed"); - return_code = TEST_ERROR; - goto runsutandtest_cleanup_timer; - } - } - else if(event.user.code == KILL_TIMER_EVENT) - { - SDLTest_LogError("Maximum timeout reached. Force killing.."); - return_code = TEST_FAILED; - goto runsutandtest_cleanup_timer; - } - } - else if(event.type == SDL_QUIT) - { - SDLTest_LogError("Received QUIT event. Testharness is quitting.."); - return_code = TEST_ERROR; - goto runsutandtest_cleanup_timer; - } - } - SDL_Delay(1000/ACTION_LOOP_FPS); - } - - SDLTest_Log("SUT exit code was: %d", sut_exitstatus.exit_status); - if(sut_exitstatus.exit_status == 0) - { - return_code = TEST_PASSED; - goto runsutandtest_cleanup_timer; - } - else - { - return_code = TEST_FAILED; - goto runsutandtest_cleanup_timer; - } - - return_code = TEST_ERROR; - goto runsutandtest_cleanup_generic; - -runsutandtest_cleanup_timer: - if(action_timer && !SDL_RemoveTimer(action_timer)) - { - SDLTest_Log("SDL_RemoveTimer() failed"); - return_code = TEST_ERROR; - } - - if(kill_timer && !SDL_RemoveTimer(kill_timer)) - { - SDLTest_Log("SDL_RemoveTimer() failed"); - return_code = TEST_ERROR; - } -/* runsutandtest_cleanup_process: */ - if(SDL_IsProcessRunning(&pinfo) && !SDL_KillProcess(&pinfo, &sut_exitstatus)) - { - SDLTest_Log("SDL_KillProcess() failed"); - return_code = TEST_ERROR; - } -runsutandtest_cleanup_generic: - return return_code; -} - -/** Entry point for testharness */ -int -main(int argc, char* argv[]) -{ - int i, passed, return_code, failed; - - /* freeing resources, linux style! */ - return_code = 0; - - if(argc < 2) - { - SDLTest_Log(usage(), argv[0]); - goto cleanup_generic; - } - -#if defined(__LINUX__) || defined(__CYGWIN__) - signal(SIGINT, CtrlCHandlerCallback); -#endif - - /* parse arguments */ - if(!SDLVisualTest_ParseHarnessArgs(argv + 1, &state)) - { - SDLTest_Log(usage(), argv[0]); - return_code = 1; - goto cleanup_generic; - } - SDLTest_Log("Parsed harness arguments successfully."); - - /* initialize SDL */ - if(SDL_Init(SDL_INIT_TIMER) == -1) - { - SDLTest_LogError("SDL_Init() failed."); - SDLVisualTest_FreeHarnessState(&state); - return_code = 1; - goto cleanup_harness_state; - } - - /* create an output directory if none exists */ -#if defined(__LINUX__) || defined(__CYGWIN__) - mkdir(state.output_dir, 0777); -#elif defined(__WIN32__) - _mkdir(state.output_dir); -#else -#error "Unsupported platform" -#endif - - /* test with sutargs */ - if(SDL_strlen(state.sutargs)) - { - SDLTest_Log("Running: %s %s", state.sutapp, state.sutargs); - if(!state.no_launch) - { - switch(RunSUTAndTest(state.sutargs, 0)) - { - case TEST_PASSED: - SDLTest_Log("Status: PASSED"); - break; - - case TEST_FAILED: - SDLTest_Log("Status: FAILED"); - break; - - case TEST_ERROR: - SDLTest_LogError("Some error occurred while testing."); - return_code = 1; - goto cleanup_sdl; - break; - } - } - } - - if(state.sut_config.num_options > 0) - { - const char* variator_name = (state.variator_type == SDL_VARIATOR_RANDOM) ? - "RANDOM" : "EXHAUSTIVE"; - if(state.num_variations > 0) - SDLTest_Log("Testing SUT with variator: %s for %d variations", - variator_name, state.num_variations); - else - SDLTest_Log("Testing SUT with variator: %s and ALL variations", - variator_name); - /* initialize the variator */ - if(!SDLVisualTest_InitVariator(&variator, &state.sut_config, - state.variator_type, 0)) - { - SDLTest_LogError("Could not initialize variator"); - return_code = 1; - goto cleanup_sdl; - } - - /* iterate through all the variations */ - passed = 0; - failed = 0; - for(i = 0; state.num_variations > 0 ? (i < state.num_variations) : 1; i++) - { - char* args = SDLVisualTest_GetNextVariation(&variator); - if(!args) - break; - SDLTest_Log("\nVariation number: %d\nArguments: %s", i + 1, args); - - if(!state.no_launch) - { - switch(RunSUTAndTest(args, i + 1)) - { - case TEST_PASSED: - SDLTest_Log("Status: PASSED"); - passed++; - break; - - case TEST_FAILED: - SDLTest_Log("Status: FAILED"); - failed++; - break; - - case TEST_ERROR: - SDLTest_LogError("Some error occurred while testing."); - goto cleanup_variator; - break; - } - } - } - if(!state.no_launch) - { - /* report stats */ - SDLTest_Log("Testing complete."); - SDLTest_Log("%d/%d tests passed.", passed, passed + failed); - } - goto cleanup_variator; - } - - goto cleanup_sdl; - -cleanup_variator: - SDLVisualTest_FreeVariator(&variator); -cleanup_sdl: - SDL_Quit(); -cleanup_harness_state: - SDLVisualTest_FreeHarnessState(&state); -cleanup_generic: - return return_code; -} diff --git a/visualtest/src/variator_common.c b/visualtest/src/variator_common.c deleted file mode 100644 index e8444b317..000000000 --- a/visualtest/src/variator_common.c +++ /dev/null @@ -1,225 +0,0 @@ -/* See LICENSE.txt for the full license governing this code. */ -/** - * \file variator_common.c - * - * Source file for some common functionality used by variators. - */ - -#include -#include "SDL_visualtest_variator_common.h" - -int -SDLVisualTest_NextValue(SDLVisualTest_SUTOptionValue* var, - SDLVisualTest_SUTOption* opt) -{ - if(!var) - { - SDLTest_LogError("var argument cannot be NULL"); - return -1; - } - if(!opt) - { - SDLTest_LogError("opt argument cannot be NULL"); - return -1; - } - - switch(opt->type) - { - case SDL_SUT_OPTIONTYPE_BOOL: - if(var->bool_value) - { - var->bool_value = SDL_FALSE; - return 1; - } - else - { - var->bool_value = SDL_TRUE; - return 0; - } - break; - - case SDL_SUT_OPTIONTYPE_ENUM: - var->enumerated.index++; - if(!opt->data.enum_values[var->enumerated.index]) - { - var->enumerated.index = 0; - return 1; - } - return 0; - break; - - case SDL_SUT_OPTIONTYPE_INT: - { - int increment = (opt->data.range.max - opt->data.range.min) / - SDL_SUT_INTEGER_OPTION_TEST_STEPS; - /* prevents infinite loop when rounding */ - if(increment == 0) - increment = 1; - var->integer.value += increment; - if(var->integer.value > opt->data.range.max) - { - var->integer.value = opt->data.range.min; - return 1; - } - return 0; - } - break; - - case SDL_SUT_OPTIONTYPE_STRING: - return 1; - break; - } - return -1; -} - -int -SDLVisualTest_MakeStrFromVariation(SDLVisualTest_Variation* variation, - SDLVisualTest_SUTConfig* config, - char* buffer, int size) -{ - int i, index; - SDLVisualTest_SUTOptionValue* vars; - SDLVisualTest_SUTOption* options; - if(!variation) - { - SDLTest_LogError("variation argument cannot be NULL"); - return 0; - } - if(!config) - { - SDLTest_LogError("config argument cannot be NULL"); - return 0; - } - if(!buffer) - { - SDLTest_LogError("buffer argument cannot be NULL"); - return 0; - } - if(size <= 0) - { - SDLTest_LogError("size argument should be positive"); - return 0; - } - - index = 0; - buffer[0] = '\0'; - options = config->options; - vars = variation->vars; - for(i = 0; i < variation->num_vars; i++) - { - int n, enum_index; - if(index >= size - 1) - { - SDLTest_LogError("String did not fit in buffer size"); - return 0; - } - switch(options[i].type) - { - case SDL_SUT_OPTIONTYPE_BOOL: - if(vars[i].bool_value) - { - n = SDL_snprintf(buffer + index, size - index, "%s ", - options[i].name); - if(n <= 0) - { - SDLTest_LogError("SDL_snprintf() failed"); - return 0; - } - index += n; - } - break; - - case SDL_SUT_OPTIONTYPE_ENUM: - if(vars[i].enumerated.on) - { - enum_index = vars[i].enumerated.index; - n = SDL_snprintf(buffer + index, size - index, "%s %s ", - options[i].name, options[i].data.enum_values[enum_index]); - index += n; - } - break; - - case SDL_SUT_OPTIONTYPE_INT: - if(vars[i].integer.on) - { - n = SDL_snprintf(buffer + index, size - index, "%s %d ", - options[i].name, vars[i].integer.value); - index += n; - } - break; - - case SDL_SUT_OPTIONTYPE_STRING: - if(vars[i].string.on) - { - n = SDL_snprintf(buffer + index, size - index, "%s %s ", - options[i].name, vars[i].string.value); - index += n; - } - break; - } - } - return 1; -} - -int -SDLVisualTest_InitVariation(SDLVisualTest_Variation* variation, - SDLVisualTest_SUTConfig* config) -{ - int i; - SDLVisualTest_SUTOptionValue* vars; - SDLVisualTest_SUTOption* options; - if(!variation) - { - SDLTest_LogError("variation argument cannot be NULL"); - return 0; - } - if(!config) - { - SDLTest_LogError("config argument cannot be NULL"); - return 0; - } - - /* initialize the first variation */ - if(config->num_options <= 0) - { - SDLTest_LogError("config->num_options must be positive"); - return 0; - } - variation->vars = (SDLVisualTest_SUTOptionValue*)SDL_malloc(config->num_options * - sizeof(SDLVisualTest_SUTOptionValue)); - if(!variation->vars) - { - SDLTest_LogError("SDL_malloc() failed"); - return 0; - } - variation->num_vars = config->num_options; - vars = variation->vars; - options = config->options; - for(i = 0; i < variation->num_vars; i++) - { - switch(options[i].type) - { - case SDL_SUT_OPTIONTYPE_BOOL: - vars[i].bool_value = SDL_FALSE; - break; - - case SDL_SUT_OPTIONTYPE_ENUM: - vars[i].enumerated.on = SDL_TRUE; - vars[i].enumerated.index = 0; - break; - - case SDL_SUT_OPTIONTYPE_INT: - { - vars[i].integer.on = SDL_TRUE; - vars[i].integer.value = options[i].data.range.min; - } - break; - - case SDL_SUT_OPTIONTYPE_STRING: - vars[i].string.on = SDL_TRUE; - vars[i].string.value = options[i].name; - break; - } - } - return 1; -} diff --git a/visualtest/src/variator_exhaustive.c b/visualtest/src/variator_exhaustive.c deleted file mode 100644 index 1e6a79e0a..000000000 --- a/visualtest/src/variator_exhaustive.c +++ /dev/null @@ -1,133 +0,0 @@ -/* See LICENSE.txt for the full license governing this code. */ -/** - * \file variator_exhaustive.c - * - * Source file for the variator that tests the SUT with all the different - * variations of input parameters that are valid. - */ - -#include -#include -#include "SDL_visualtest_sut_configparser.h" -#include "SDL_visualtest_exhaustive_variator.h" - -static int -NextVariation(SDLVisualTest_Variation* variation, - SDLVisualTest_SUTConfig* config) -{ - int i, carry; - if(!variation) - { - SDLTest_LogError("variation argument cannot be NULL"); - return -1; - } - if(!config) - { - SDLTest_LogError("config argument cannot be NULL"); - return -1; - } - - carry = 1; - for(i = 0; i < variation->num_vars; i++) - { - carry = SDLVisualTest_NextValue(&variation->vars[i], &config->options[i]); - if(carry != 1) - break; - } - - if(carry == 1) /* we're done, we've tried all possible variations */ - return 0; - if(carry == 0) - return 1; - - SDLTest_LogError("NextVariation() failed"); - return -1; -} - -int -SDLVisualTest_InitExhaustiveVariator(SDLVisualTest_ExhaustiveVariator* variator, - SDLVisualTest_SUTConfig* config) -{ - if(!variator) - { - SDLTest_LogError("variator argument cannot be NULL"); - return 0; - } - if(!config) - { - SDLTest_LogError("config argument cannot be NULL"); - return 0; - } - - SDLTest_FuzzerInit(time(NULL)); - - variator->config = *config; - variator->variation.num_vars = 0; - variator->variation.vars = NULL; - - return 1; -} - -/* TODO: Right now variations where an option is not specified at all are not - tested for. This can be implemented by switching the on attribute for integer, - enum and string options to true and false. */ -char* -SDLVisualTest_GetNextExhaustiveVariation(SDLVisualTest_ExhaustiveVariator* variator) -{ - int success; - if(!variator) - { - SDLTest_LogError("variator argument cannot be NULL"); - return NULL; - } - - if(!variator->variation.vars) /* the first time this function is called */ - { - success = SDLVisualTest_InitVariation(&variator->variation, - &variator->config); - if(!success) - { - SDLTest_LogError("SDLVisualTest_InitVariation() failed"); - return NULL; - } - success = SDLVisualTest_MakeStrFromVariation(&variator->variation, - &variator->config, variator->buffer, MAX_SUT_ARGS_LEN); - if(!success) - { - SDLTest_LogError("SDLVisualTest_MakeStrFromVariation() failed"); - return NULL; - } - return variator->buffer; - } - else - { - success = NextVariation(&variator->variation, &variator->config); - if(success == 1) - { - success = SDLVisualTest_MakeStrFromVariation(&variator->variation, - &variator->config, variator->buffer, MAX_SUT_ARGS_LEN); - if(!success) - { - SDLTest_LogError("SDLVisualTest_MakeStrFromVariation() failed"); - return NULL; - } - return variator->buffer; - } - else if(success == -1) - SDLTest_LogError("NextVariation() failed."); - return NULL; - } - return NULL; -} - -void -SDLVisualTest_FreeExhaustiveVariator(SDLVisualTest_ExhaustiveVariator* variator) -{ - if(!variator) - { - SDLTest_LogError("variator argument cannot be NULL"); - return; - } - SDL_free(variator->variation.vars); - variator->variation.vars = NULL; -} diff --git a/visualtest/src/variator_random.c b/visualtest/src/variator_random.c deleted file mode 100644 index 4da4161e1..000000000 --- a/visualtest/src/variator_random.c +++ /dev/null @@ -1,113 +0,0 @@ -/* See LICENSE.txt for the full license governing this code. */ -/** - * \file variator_random.c - * - * Source file for the variator that tests the SUT with random variations to the - * input parameters. - */ - -#include -#include -#include "SDL_visualtest_random_variator.h" - -int -SDLVisualTest_InitRandomVariator(SDLVisualTest_RandomVariator* variator, - SDLVisualTest_SUTConfig* config, Uint64 seed) -{ - if(!variator) - { - SDLTest_LogError("variator argument cannot be NULL"); - return 0; - } - if(!config) - { - SDLTest_LogError("config argument cannot be NULL"); - return 0; - } - - if(seed) - SDLTest_FuzzerInit(seed); - else - SDLTest_FuzzerInit(time(NULL)); - - variator->config = *config; - - if(!SDLVisualTest_InitVariation(&variator->variation, &variator->config)) - { - SDLTest_LogError("SDLVisualTest_InitVariation() failed"); - return 0; - } - - return 1; -} - -char* -SDLVisualTest_GetNextRandomVariation(SDLVisualTest_RandomVariator* variator) -{ - SDLVisualTest_SUTOptionValue* vars; - SDLVisualTest_SUTOption* options; - int i; - - if(!variator) - { - SDLTest_LogError("variator argument cannot be NULL"); - return NULL; - } - - /* to save typing */ - vars = variator->variation.vars; - options = variator->config.options; - - /* generate a random variation */ - for(i = 0; i < variator->variation.num_vars; i++) - { - switch(options[i].type) - { - case SDL_SUT_OPTIONTYPE_BOOL: - vars[i].bool_value = SDLTest_RandomIntegerInRange(0, 1) ? SDL_FALSE : - SDL_TRUE; - break; - - case SDL_SUT_OPTIONTYPE_ENUM: - { - int emx = 0; - while(options[i].data.enum_values[emx]) - emx++; - vars[i].enumerated.index = SDLTest_RandomIntegerInRange(0, emx - 1); - } - break; - - case SDL_SUT_OPTIONTYPE_INT: - vars[i].integer.value = SDLTest_RandomIntegerInRange( - options[i].data.range.min, - options[i].data.range.max); - break; - - case SDL_SUT_OPTIONTYPE_STRING: - // String values are left unchanged - break; - } - } - - /* convert variation to an arguments string */ - if(!SDLVisualTest_MakeStrFromVariation(&variator->variation, &variator->config, - variator->buffer, MAX_SUT_ARGS_LEN)) - { - SDLTest_LogError("SDLVisualTest_MakeStrFromVariation() failed"); - return NULL; - } - - return variator->buffer; -} - -void SDLVisualTest_FreeRandomVariator(SDLVisualTest_RandomVariator* variator) -{ - if(!variator) - { - SDLTest_LogError("variator argument cannot be NULL"); - return; - } - - SDL_free(variator->variation.vars); - variator->variation.vars = NULL; -} diff --git a/visualtest/src/variators.c b/visualtest/src/variators.c deleted file mode 100644 index e9485c6f6..000000000 --- a/visualtest/src/variators.c +++ /dev/null @@ -1,95 +0,0 @@ -/* See LICENSE.txt for the full license governing this code. */ -/** - * \file variators.c - * - * Source file for the operations that act on variators. - */ - -#include -#include "SDL_visualtest_variators.h" - -int -SDLVisualTest_InitVariator(SDLVisualTest_Variator* variator, - SDLVisualTest_SUTConfig* config, - SDLVisualTest_VariatorType type, - Uint64 seed) -{ - if(!variator) - { - SDLTest_LogError("variator argument cannot be NULL"); - return 0; - } - if(!config) - { - SDLTest_LogError("config argument cannot be NULL"); - return 0; - } - - variator->type = type; - switch(type) - { - case SDL_VARIATOR_EXHAUSTIVE: - return SDLVisualTest_InitExhaustiveVariator(&variator->data.exhaustive, - config); - break; - - case SDL_VARIATOR_RANDOM: - return SDLVisualTest_InitRandomVariator(&variator->data.random, - config, seed); - break; - - default: - SDLTest_LogError("Invalid value for variator type"); - return 0; - } - return 0; -} - -char* -SDLVisualTest_GetNextVariation(SDLVisualTest_Variator* variator) -{ - if(!variator) - { - SDLTest_LogError("variator argument cannot be NULL"); - return NULL; - } - - switch(variator->type) - { - case SDL_VARIATOR_EXHAUSTIVE: - return SDLVisualTest_GetNextExhaustiveVariation(&variator->data.exhaustive); - break; - - case SDL_VARIATOR_RANDOM: - return SDLVisualTest_GetNextRandomVariation(&variator->data.random); - break; - - default: - SDLTest_LogError("Invalid value for variator type"); - return NULL; - } - return NULL; -} - -void SDLVisualTest_FreeVariator(SDLVisualTest_Variator* variator) -{ - if(!variator) - { - SDLTest_LogError("variator argument cannot be NULL"); - return; - } - - switch(variator->type) - { - case SDL_VARIATOR_EXHAUSTIVE: - SDLVisualTest_FreeExhaustiveVariator(&variator->data.exhaustive); - break; - - case SDL_VARIATOR_RANDOM: - SDLVisualTest_FreeRandomVariator(&variator->data.random); - break; - - default: - SDLTest_LogError("Invalid value for variator type"); - } -} diff --git a/visualtest/src/windows/windows_process.c b/visualtest/src/windows/windows_process.c deleted file mode 100644 index e7e265c7c..000000000 --- a/visualtest/src/windows/windows_process.c +++ /dev/null @@ -1,283 +0,0 @@ -/* See LICENSE.txt for the full license governing this code. */ -/** - * \file windows_process.c - * - * Source file for the process API on windows. - */ - -#include -#include -#include -#include - -#include "SDL_visualtest_process.h" - -#if defined(__WIN32__) - -void -LogLastError(const char* str) -{ - LPVOID buffer; - DWORD dw = GetLastError(); - FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_FROM_SYSTEM| - FORMAT_MESSAGE_IGNORE_INSERTS, NULL, dw, - MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR)&buffer, - 0, NULL); - SDLTest_LogError("%s: %s", str, (char*)buffer); - LocalFree(buffer); -} - -int -SDL_LaunchProcess(char* file, char* args, SDL_ProcessInfo* pinfo) -{ - BOOL success; - char* working_directory; - char* command_line; - int path_length, args_length; - STARTUPINFO sui = {0}; - sui.cb = sizeof(sui); - - if(!file) - { - SDLTest_LogError("Path to executable to launched cannot be NULL."); - return 0; - } - if(!pinfo) - { - SDLTest_LogError("pinfo cannot be NULL."); - return 0; - } - - /* get the working directory of the process being launched, so that - the process can load any resources it has in it's working directory */ - path_length = SDL_strlen(file); - if(path_length == 0) - { - SDLTest_LogError("Length of the file parameter is zero."); - return 0; - } - - working_directory = (char*)SDL_malloc(path_length + 1); - if(!working_directory) - { - SDLTest_LogError("Could not allocate working_directory - SDL_malloc() failed."); - return 0; - } - - SDL_memcpy(working_directory, file, path_length + 1); - PathRemoveFileSpec(working_directory); - if(SDL_strlen(working_directory) == 0) - { - SDL_free(working_directory); - working_directory = NULL; - } - - /* join the file path and the args string together */ - if(!args) - args = ""; - args_length = SDL_strlen(args); - command_line = (char*)SDL_malloc(path_length + args_length + 2); - if(!command_line) - { - SDLTest_LogError("Could not allocate command_line - SDL_malloc() failed."); - return 0; - } - SDL_memcpy(command_line, file, path_length); - command_line[path_length] = ' '; - SDL_memcpy(command_line + path_length + 1, args, args_length + 1); - - /* create the process */ - success = CreateProcess(NULL, command_line, NULL, NULL, FALSE, - NORMAL_PRIORITY_CLASS | CREATE_NO_WINDOW, - NULL, working_directory, &sui, &pinfo->pi); - if(working_directory) - { - SDL_free(working_directory); - working_directory = NULL; - } - SDL_free(command_line); - if(!success) - { - LogLastError("CreateProcess() failed"); - return 0; - } - - return 1; -} - -int -SDL_GetProcessExitStatus(SDL_ProcessInfo* pinfo, SDL_ProcessExitStatus* ps) -{ - DWORD exit_status; - BOOL success; - - if(!pinfo) - { - SDLTest_LogError("pinfo cannot be NULL"); - return 0; - } - if(!ps) - { - SDLTest_LogError("ps cannot be NULL"); - return 0; - } - - /* get the exit code */ - success = GetExitCodeProcess(pinfo->pi.hProcess, &exit_status); - if(!success) - { - LogLastError("GetExitCodeProcess() failed"); - return 0; - } - - if(exit_status == STILL_ACTIVE) - ps->exit_status = -1; - else - ps->exit_status = exit_status; - ps->exit_success = 1; - return 1; -} - - -int -SDL_IsProcessRunning(SDL_ProcessInfo* pinfo) -{ - DWORD exit_status; - BOOL success; - - if(!pinfo) - { - SDLTest_LogError("pinfo cannot be NULL"); - return -1; - } - - success = GetExitCodeProcess(pinfo->pi.hProcess, &exit_status); - if(!success) - { - LogLastError("GetExitCodeProcess() failed"); - return -1; - } - - if(exit_status == STILL_ACTIVE) - return 1; - return 0; -} - -static BOOL CALLBACK -CloseWindowCallback(HWND hwnd, LPARAM lparam) -{ - DWORD pid; - SDL_ProcessInfo* pinfo; - - pinfo = (SDL_ProcessInfo*)lparam; - - GetWindowThreadProcessId(hwnd, &pid); - if(pid == pinfo->pi.dwProcessId) - { - DWORD_PTR result; - if(!SendMessageTimeout(hwnd, WM_CLOSE, 0, 0, SMTO_BLOCK, - 1000, &result)) - { - if(GetLastError() != ERROR_TIMEOUT) - { - LogLastError("SendMessageTimeout() failed"); - return FALSE; - } - } - } - return TRUE; -} - -int -SDL_QuitProcess(SDL_ProcessInfo* pinfo, SDL_ProcessExitStatus* ps) -{ - DWORD wait_result; - if(!pinfo) - { - SDLTest_LogError("pinfo argument cannot be NULL"); - return 0; - } - if(!ps) - { - SDLTest_LogError("ps argument cannot be NULL"); - return 0; - } - - /* enumerate through all the windows, trying to close each one */ - if(!EnumWindows(CloseWindowCallback, (LPARAM)pinfo)) - { - SDLTest_LogError("EnumWindows() failed"); - return 0; - } - - /* wait until the process terminates */ - wait_result = WaitForSingleObject(pinfo->pi.hProcess, 1000); - if(wait_result == WAIT_FAILED) - { - LogLastError("WaitForSingleObject() failed"); - return 0; - } - if(wait_result != WAIT_OBJECT_0) - { - SDLTest_LogError("Process did not quit."); - return 0; - } - - /* get the exit code */ - if(!SDL_GetProcessExitStatus(pinfo, ps)) - { - SDLTest_LogError("SDL_GetProcessExitStatus() failed"); - return 0; - } - - return 1; -} - -int -SDL_KillProcess(SDL_ProcessInfo* pinfo, SDL_ProcessExitStatus* ps) -{ - BOOL success; - DWORD exit_status, wait_result; - - if(!pinfo) - { - SDLTest_LogError("pinfo argument cannot be NULL"); - return 0; - } - if(!ps) - { - SDLTest_LogError("ps argument cannot be NULL"); - return 0; - } - - /* initiate termination of the process */ - success = TerminateProcess(pinfo->pi.hProcess, 0); - if(!success) - { - LogLastError("TerminateProcess() failed"); - return 0; - } - - /* wait until the process terminates */ - wait_result = WaitForSingleObject(pinfo->pi.hProcess, INFINITE); - if(wait_result == WAIT_FAILED) - { - LogLastError("WaitForSingleObject() failed"); - return 0; - } - - /* get the exit code */ - success = GetExitCodeProcess(pinfo->pi.hProcess, &exit_status); - if(!success) - { - LogLastError("GetExitCodeProcess() failed"); - return 0; - } - - ps->exit_status = exit_status; - ps->exit_success = 1; - - return 1; -} - -#endif diff --git a/visualtest/src/windows/windows_screenshot.c b/visualtest/src/windows/windows_screenshot.c deleted file mode 100644 index d4ac7d3a1..000000000 --- a/visualtest/src/windows/windows_screenshot.c +++ /dev/null @@ -1,349 +0,0 @@ -/* See LICENSE.txt for the full license governing this code. */ -/** - * \file windows_screenshot.c - * - * Source file for the screenshot API on windows. - */ - -#include "SDL_visualtest_process.h" -#include -#include - -#if defined(__CYGWIN__) -#include -#endif - -#if defined(__WIN32__) -#include - -void LogLastError(const char* str); - -static int img_num; -static SDL_ProcessInfo screenshot_pinfo; - -/* Saves a bitmap to a file using hdc as a device context */ -static int -SaveBitmapToFile(HDC hdc, HBITMAP hbitmap, char* filename) -{ - BITMAP bitmap; - BITMAPFILEHEADER bfh; - BITMAPINFOHEADER bih; - DWORD bmpsize, bytes_written; - HANDLE hdib, hfile; - char* bmpdata; - int return_code = 1; - - if(!hdc) - { - SDLTest_LogError("hdc argument is NULL"); - return 0; - } - if(!hbitmap) - { - SDLTest_LogError("hbitmap argument is NULL"); - return 0; - } - if(!filename) - { - SDLTest_LogError("filename argument is NULL"); - return 0; - } - - if(!GetObject(hbitmap, sizeof(BITMAP), (void*)&bitmap)) - { - SDLTest_LogError("GetObject() failed"); - return_code = 0; - goto savebitmaptofile_cleanup_generic; - } - - bih.biSize = sizeof(BITMAPINFOHEADER); - bih.biWidth = bitmap.bmWidth; - bih.biHeight = bitmap.bmHeight; - bih.biPlanes = 1; - bih.biBitCount = 32; - bih.biCompression = BI_RGB; - bih.biSizeImage = 0; - bih.biXPelsPerMeter = 0; - bih.biYPelsPerMeter = 0; - bih.biClrUsed = 0; - bih.biClrImportant = 0; - - bmpsize = ((bitmap.bmWidth * bih.biBitCount + 31) / 32) * 4 * bitmap.bmHeight; - - hdib = GlobalAlloc(GHND, bmpsize); - if(!hdib) - { - LogLastError("GlobalAlloc() failed"); - return_code = 0; - goto savebitmaptofile_cleanup_generic; - } - bmpdata = (char*)GlobalLock(hdib); - if(!bmpdata) - { - LogLastError("GlobalLock() failed"); - return_code = 0; - goto savebitmaptofile_cleanup_hdib; - } - - if(!GetDIBits(hdc, hbitmap, 0, (UINT)bitmap.bmHeight, bmpdata, - (LPBITMAPINFO)&bih, DIB_RGB_COLORS)) - { - SDLTest_LogError("GetDIBits() failed"); - return_code = 0; - goto savebitmaptofile_cleanup_unlockhdib; - } - - hfile = CreateFile(filename, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, - FILE_ATTRIBUTE_NORMAL, NULL); - if(hfile == INVALID_HANDLE_VALUE) - { - LogLastError("CreateFile()"); - return_code = 0; - goto savebitmaptofile_cleanup_unlockhdib; - } - bfh.bfOffBits = sizeof(BITMAPFILEHEADER) + sizeof(BITMAPINFOHEADER); - bfh.bfSize = bmpsize + bfh.bfOffBits; - bfh.bfType = 0x4D42; - - bytes_written = 0; - if(!WriteFile(hfile, (void*)&bfh, sizeof(BITMAPFILEHEADER), &bytes_written, NULL) || - !WriteFile(hfile, (void*)&bih, sizeof(BITMAPINFOHEADER), &bytes_written, NULL) || - !WriteFile(hfile, (void*)bmpdata, bmpsize, &bytes_written, NULL)) - { - LogLastError("WriteFile() failed"); - return_code = 0; - goto savebitmaptofile_cleanup_hfile; - } - -savebitmaptofile_cleanup_hfile: - CloseHandle(hfile); - -/* make the screenshot file writable on cygwin, since it could be overwritten later */ -#if defined(__CYGWIN__) - if(chmod(filename, 0777) == -1) - { - SDLTest_LogError("chmod() failed"); - return_code = 0; - } -#endif - -savebitmaptofile_cleanup_unlockhdib: - GlobalUnlock(hdib); - -savebitmaptofile_cleanup_hdib: - GlobalFree(hdib); - -savebitmaptofile_cleanup_generic: - return return_code; -} - -/* Takes the screenshot of a window and saves it to a file. If only_client_area - is true, then only the client area of the window is considered */ -static int -ScreenshotWindow(HWND hwnd, char* filename, SDL_bool only_client_area) -{ - int width, height; - RECT dimensions; - HDC windowdc, capturedc; - HBITMAP capturebitmap; - HGDIOBJ select_success; - BOOL blt_success; - int return_code = 1; - - if(!filename) - { - SDLTest_LogError("filename argument cannot be NULL"); - return_code = 0; - goto screenshotwindow_cleanup_generic; - } - if(!hwnd) - { - SDLTest_LogError("hwnd argument cannot be NULL"); - return_code = 0; - goto screenshotwindow_cleanup_generic; - } - - if(!GetWindowRect(hwnd, &dimensions)) - { - LogLastError("GetWindowRect() failed"); - return_code = 0; - goto screenshotwindow_cleanup_generic; - } - - if(only_client_area) - { - RECT crect; - if(!GetClientRect(hwnd, &crect)) - { - SDLTest_LogError("GetClientRect() failed"); - return_code = 0; - goto screenshotwindow_cleanup_generic; - } - - width = crect.right; - height = crect.bottom; - windowdc = GetDC(hwnd); - if(!windowdc) - { - SDLTest_LogError("GetDC() failed"); - return_code = 0; - goto screenshotwindow_cleanup_generic; - } - } - else - { - width = dimensions.right - dimensions.left; - height = dimensions.bottom - dimensions.top; - windowdc = GetWindowDC(hwnd); - if(!windowdc) - { - SDLTest_LogError("GetWindowDC() failed"); - return_code = 0; - goto screenshotwindow_cleanup_generic; - } - } - - capturedc = CreateCompatibleDC(windowdc); - if(!capturedc) - { - SDLTest_LogError("CreateCompatibleDC() failed"); - return_code = 0; - goto screenshotwindow_cleanup_windowdc; - } - capturebitmap = CreateCompatibleBitmap(windowdc, width, height); - if(!capturebitmap) - { - SDLTest_LogError("CreateCompatibleBitmap() failed"); - return_code = 0; - goto screenshotwindow_cleanup_capturedc; - } - select_success = SelectObject(capturedc, capturebitmap); - if(!select_success || select_success == HGDI_ERROR) - { - SDLTest_LogError("SelectObject() failed"); - return_code = 0; - goto screenshotwindow_cleanup_capturebitmap; - } - blt_success = BitBlt(capturedc, 0, 0, width, height, windowdc, - 0, 0, SRCCOPY|CAPTUREBLT); - if(!blt_success) - { - LogLastError("BitBlt() failed"); - return_code = 0; - goto screenshotwindow_cleanup_capturebitmap; - } - - /* save bitmap as file */ - if(!SaveBitmapToFile(windowdc, capturebitmap, filename)) - { - SDLTest_LogError("SaveBitmapToFile() failed"); - return_code = 0; - goto screenshotwindow_cleanup_capturebitmap; - } - - /* Free resources */ - -screenshotwindow_cleanup_capturebitmap: - if(!DeleteObject(capturebitmap)) - { - SDLTest_LogError("DeleteObjectFailed"); - return_code = 0; - } - -screenshotwindow_cleanup_capturedc: - if(!DeleteDC(capturedc)) - { - SDLTest_LogError("DeleteDC() failed"); - return_code = 0; - } - -screenshotwindow_cleanup_windowdc: - if(!ReleaseDC(hwnd, windowdc)) - { - SDLTest_LogError("ReleaseDC() failed"); - return_code = 0; - } - -screenshotwindow_cleanup_generic: - return return_code; -} - -/* Takes the screenshot of the entire desktop and saves it to a file */ -int SDLVisualTest_ScreenshotDesktop(char* filename) -{ - HWND hwnd; - hwnd = GetDesktopWindow(); - return ScreenshotWindow(hwnd, filename, SDL_FALSE); -} - -/* take screenshot of a window and save it to a file */ -static BOOL CALLBACK -ScreenshotHwnd(HWND hwnd, LPARAM lparam) -{ - int len; - DWORD pid; - char* prefix; - char* filename; - - GetWindowThreadProcessId(hwnd, &pid); - if(pid != screenshot_pinfo.pi.dwProcessId) - return TRUE; - - if(!IsWindowVisible(hwnd)) - return TRUE; - - prefix = (char*)lparam; - len = SDL_strlen(prefix) + 100; - filename = (char*)SDL_malloc(len * sizeof(char)); - if(!filename) - { - SDLTest_LogError("SDL_malloc() failed"); - return FALSE; - } - - /* restore the window and bring it to the top */ - ShowWindowAsync(hwnd, SW_RESTORE); - /* restore is not instantaneous */ - SDL_Delay(500); - - /* take a screenshot of the client area */ - if(img_num == 1) - SDL_snprintf(filename, len, "%s.bmp", prefix); - else - SDL_snprintf(filename, len, "%s_%d.bmp", prefix, img_num); - img_num++; - ScreenshotWindow(hwnd, filename, SDL_TRUE); - - SDL_free(filename); - return TRUE; -} - - -/* each window of the process will have a screenshot taken. The file name will be - prefix-i.png for the i'th window. */ -int -SDLVisualTest_ScreenshotProcess(SDL_ProcessInfo* pinfo, char* prefix) -{ - if(!pinfo) - { - SDLTest_LogError("pinfo argument cannot be NULL"); - return 0; - } - if(!prefix) - { - SDLTest_LogError("prefix argument cannot be NULL"); - return 0; - } - - img_num = 1; - screenshot_pinfo = *pinfo; - if(!EnumWindows(ScreenshotHwnd, (LPARAM)prefix)) - { - SDLTest_LogError("EnumWindows() failed"); - return 0; - } - - return 1; -} - -#endif diff --git a/visualtest/testsprite2_sample.actions b/visualtest/testsprite2_sample.actions deleted file mode 100644 index c0e9ab8b9..000000000 --- a/visualtest/testsprite2_sample.actions +++ /dev/null @@ -1,3 +0,0 @@ -00:00:02 SCREENSHOT # Take a screenshot of each window owned by the SUT process -00:00:05 VERIFY # Verify each screenshot taken with verification images -00:00:10 QUIT # Gracefully quit the SUT process \ No newline at end of file diff --git a/visualtest/testsprite2_sample.config b/visualtest/testsprite2_sample.config deleted file mode 100644 index 14eb4622c..000000000 --- a/visualtest/testsprite2_sample.config +++ /dev/null @@ -1,6 +0,0 @@ -parameter-config=testsprite2_sample.parameters -num-variations=10 -variator=random -sutapp=testsprite2 -timeout=00:00:20 -action-config=testsprite2_sample.actions \ No newline at end of file diff --git a/visualtest/testsprite2_sample.parameters b/visualtest/testsprite2_sample.parameters deleted file mode 100644 index 29e34cd28..000000000 --- a/visualtest/testsprite2_sample.parameters +++ /dev/null @@ -1,29 +0,0 @@ -# parameter name, type, value range, required, categories ---gldebug, boolean, [], false, [] ---info, enum, [all video modes render event], false, [] ---log, enum, [all error system audio video render input], false, [] ---display, integer, [1 5], false, [] ---fullscreen, boolean, [], false, [] ---fullscreen-desktop, boolean, [], false, [] -# --windows, integer, [1 5], false, [] # this option is not supported yet ---title, enum, [vartest bartest footest], false, [] ---icon, enum, [icon.bmp], false, [] ---center, boolean, [], false, [] ---position, enum, [300,300], false, [] ---geometry, enum, [500x500], false, [] ---min-geometry, enum, [100x100], false, [] ---max-geometry, enum, [600x600 700x700], false, [] ---logical, enum, [500x500 550x450], false, [] ---scale, integer, [1 5], false, [] ---depth, integer, [1 5], false, [] ---refresh, integer, [1 5], false, [] ---vsync, boolean, [], false, [] ---noframe, boolean, [], false, [] ---resize, boolean, [], false, [] ---minimize, boolean, [], false, [] ---maximize, boolean, [], false, [] ---grab, boolean, [], false, [mouse] ---blend, enum, [none blend add mod], false, [] ---cyclecolor, boolean, [], false, [] ---cyclealpha, boolean, [], false, [] ---iterations, integer, [10 100], false, [] \ No newline at end of file diff --git a/visualtest/unittest/testquit.actions b/visualtest/unittest/testquit.actions deleted file mode 100644 index fa6880520..000000000 --- a/visualtest/unittest/testquit.actions +++ /dev/null @@ -1 +0,0 @@ -00:00:05 QUIT \ No newline at end of file diff --git a/visualtest/unittest/testquit.c b/visualtest/unittest/testquit.c deleted file mode 100644 index 04e3c5c5a..000000000 --- a/visualtest/unittest/testquit.c +++ /dev/null @@ -1,102 +0,0 @@ -/* - Copyright (C) 2013 Apoorv Upreti - - This software is provided 'as-is', without any express or implied - warranty. In no event will the authors be held liable for any damages - arising from the use of this software. - - Permission is granted to anyone to use this software for any purpose, - including commercial applications, and to alter it and redistribute it - freely. -*/ -/* Quits, hangs or crashes based on the command line options passed. */ - -#include -#include - -static SDLTest_CommonState *state; -static int exit_code; -static SDL_bool hang; -static SDL_bool crash; - -int -main(int argc, char** argv) -{ - int i, done; - SDL_Event event; - - state = SDLTest_CommonCreateState(argv, SDL_INIT_VIDEO); - if(!state) - return 1; - - state->window_flags |= SDL_WINDOW_RESIZABLE; - - exit_code = 0; - hang = SDL_FALSE; - crash = SDL_FALSE; - - for(i = 1; i < argc; ) - { - int consumed; - consumed = SDLTest_CommonArg(state, i); - if(consumed == 0) - { - consumed = -1; - if(SDL_strcasecmp(argv[i], "--exit-code") == 0) - { - if(argv[i + 1]) - { - exit_code = SDL_atoi(argv[i + 1]); - consumed = 2; - } - } - else if(SDL_strcasecmp(argv[i], "--hang") == 0) - { - hang = SDL_TRUE; - consumed = 1; - } - else if(SDL_strcasecmp(argv[i], "--crash") == 0) - { - crash = SDL_TRUE; - consumed = 1; - } - } - - if(consumed < 0) - { - static const char *options[] = { "[--exit-code N]", "[--crash]", "[--hang]", NULL }; - SDLTest_CommonLogUsage(state, argv[0], options); - SDLTest_CommonQuit(state); - return 1; - } - i += consumed; - } - - if(!SDLTest_CommonInit(state)) - { - SDLTest_CommonQuit(state); - return 1; - } - - /* infinite loop to hang the process */ - while(hang) - SDL_Delay(10); - - /* dereference NULL pointer to crash process */ - if(crash) - { - int* p = NULL; - *p = 5; - } - - /* event loop */ - done = 0; - while(!done) - { - while(SDL_PollEvent(&event)) - SDLTest_CommonEvent(state, &event, &done); - SDL_Delay(10); - } - - return exit_code; -} diff --git a/visualtest/unittest/testquit.config b/visualtest/unittest/testquit.config deleted file mode 100644 index 756dec8ac..000000000 --- a/visualtest/unittest/testquit.config +++ /dev/null @@ -1,5 +0,0 @@ -sutconfig=testquit.parameters -action-config=testquit.actions -variator=exhaustive -sutapp=testquit -timeout=00:00:10 \ No newline at end of file diff --git a/visualtest/unittest/testquit.parameters b/visualtest/unittest/testquit.parameters deleted file mode 100644 index 6e5887ce5..000000000 --- a/visualtest/unittest/testquit.parameters +++ /dev/null @@ -1,3 +0,0 @@ ---exit-code, integer, [-1 1], false, [] # The exit code returned by the executable ---crash, boolean, [], false, [] # Crashes the SUT executable ---hang, boolean, [], false, [] # Runs the SUT in the infinite loop and ignores all events \ No newline at end of file