From: Preston L. Bannister Date: Wed, 15 May 2002 23:56:04 +0000 (+0000) Subject: Win32 project and makefile used to invoke run-tests.php X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2da502e036251847a75e416af9a520b024830f2;p=php Win32 project and makefile used to invoke run-tests.php --- diff --git a/tests/tests.dsp b/tests/tests.dsp new file mode 100644 index 0000000000..fc19dcfe43 --- /dev/null +++ b/tests/tests.dsp @@ -0,0 +1,61 @@ +# Microsoft Developer Studio Project File - Name="tests" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) External Target" 0x0106 + +CFG=tests - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "tests.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "tests.mak" CFG="tests - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "tests - Win32 Debug" (based on "Win32 (x86) External Target") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "." +# PROP BASE Intermediate_Dir "." +# PROP BASE Cmd_Line "NMAKE /f tests.mak" +# PROP BASE Rebuild_Opt "/a" +# PROP BASE Target_File "tests.exe" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "." +# PROP Intermediate_Dir "." +# PROP Cmd_Line "nmake /nologo /f tests.mak" +# PROP Rebuild_Opt "/a" +# PROP Target_File "__test_run_complete__" +# PROP Bsc_Name "" +# PROP Target_Dir "" +# Begin Target + +# Name "tests - Win32 Debug" + +!IF "$(CFG)" == "tests - Win32 Debug" + +!ENDIF + +# Begin Source File + +SOURCE="..\run-tests.php" +# End Source File +# Begin Source File + +SOURCE=.\tests.mak +# End Source File +# End Target +# End Project diff --git a/tests/tests.mak b/tests/tests.mak new file mode 100644 index 0000000000..b4dff5091c --- /dev/null +++ b/tests/tests.mak @@ -0,0 +1,19 @@ +# +# Win32 Makefile to run the PHP unit tests. +# +# TEST_PHP_EXECUTABLE +# Required - must point to the PHP executable to test. +# +# TEST_PHP_ERROR_STYLE +# Optional - specifies error format to output so IDE can jump to test source and log. +# Values: MSVC (Microsoft Visual C++), Emacs +# + +all : run-tests + +BIN=Debug_TS + +run-tests : + set TEST_PHP_EXECUTABLE=$(BIN)\php-cgi.exe + set TEST_PHP_ERROR_STYLE=MSVC + cd .. && $(BIN)\php-cgi.exe -c tests -f run-tests.php | tee tests.log