summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/tests.dsp61
-rw-r--r--tests/tests.mak19
2 files changed, 80 insertions, 0 deletions
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