]> granicus.if.org Git - php/commitdiff
Win32 project and makefile used to invoke run-tests.php
authorPreston L. Bannister <pbannister@php.net>
Wed, 15 May 2002 23:56:04 +0000 (23:56 +0000)
committerPreston L. Bannister <pbannister@php.net>
Wed, 15 May 2002 23:56:04 +0000 (23:56 +0000)
tests/tests.dsp [new file with mode: 0644]
tests/tests.mak [new file with mode: 0644]

diff --git a/tests/tests.dsp b/tests/tests.dsp
new file mode 100644 (file)
index 0000000..fc19dcf
--- /dev/null
@@ -0,0 +1,61 @@
+# Microsoft Developer Studio Project File - Name="tests" - Package Owner=<4>\r
+# Microsoft Developer Studio Generated Build File, Format Version 6.00\r
+# ** DO NOT EDIT **\r
+\r
+# TARGTYPE "Win32 (x86) External Target" 0x0106\r
+\r
+CFG=tests - Win32 Debug\r
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,\r
+!MESSAGE use the Export Makefile command and run\r
+!MESSAGE \r
+!MESSAGE NMAKE /f "tests.mak".\r
+!MESSAGE \r
+!MESSAGE You can specify a configuration when running NMAKE\r
+!MESSAGE by defining the macro CFG on the command line. For example:\r
+!MESSAGE \r
+!MESSAGE NMAKE /f "tests.mak" CFG="tests - Win32 Debug"\r
+!MESSAGE \r
+!MESSAGE Possible choices for configuration are:\r
+!MESSAGE \r
+!MESSAGE "tests - Win32 Debug" (based on "Win32 (x86) External Target")\r
+!MESSAGE \r
+\r
+# Begin Project\r
+# PROP AllowPerConfigDependencies 0\r
+# PROP Scc_ProjName ""\r
+# PROP Scc_LocalPath ""\r
+# PROP BASE Use_MFC 0\r
+# PROP BASE Use_Debug_Libraries 1\r
+# PROP BASE Output_Dir "."\r
+# PROP BASE Intermediate_Dir "."\r
+# PROP BASE Cmd_Line "NMAKE /f tests.mak"\r
+# PROP BASE Rebuild_Opt "/a"\r
+# PROP BASE Target_File "tests.exe"\r
+# PROP BASE Target_Dir ""\r
+# PROP Use_MFC 0\r
+# PROP Use_Debug_Libraries 1\r
+# PROP Output_Dir "."\r
+# PROP Intermediate_Dir "."\r
+# PROP Cmd_Line "nmake /nologo /f tests.mak"\r
+# PROP Rebuild_Opt "/a"\r
+# PROP Target_File "__test_run_complete__"\r
+# PROP Bsc_Name ""\r
+# PROP Target_Dir ""\r
+# Begin Target\r
+\r
+# Name "tests - Win32 Debug"\r
+\r
+!IF  "$(CFG)" == "tests - Win32 Debug"\r
+\r
+!ENDIF \r
+\r
+# Begin Source File\r
+\r
+SOURCE="..\run-tests.php"\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\tests.mak\r
+# End Source File\r
+# End Target\r
+# End Project\r
diff --git a/tests/tests.mak b/tests/tests.mak
new file mode 100644 (file)
index 0000000..b4dff50
--- /dev/null
@@ -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