Skip to content

Commit

Permalink
* using CGI -C option, you no longer have to specify "full" path to t…
Browse files Browse the repository at this point in the history
…ests
  • Loading branch information
stigsb committed Apr 16, 2001
1 parent 0b2641e commit 0edbf42
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ distclean: distclean-recursive clean-x

test: $(top_builddir)/php
@if test "$(TESTS)" = ""; then \
TOP_BUILDDIR=$(top_builddir) TOP_SRCDIR=$(top_srcdir) $(top_builddir)/php -d "include_path=.:$(top_srcdir)/pear:$(top_builddir)/pear:$(PEAR_INSTALLDIR)" -q $(top_srcdir)/run-tests.php $(srcdir); \
TOP_BUILDDIR=$(top_builddir) TOP_SRCDIR=$(top_srcdir) $(top_builddir)/php -C -q $(top_srcdir)/run-tests.php $(srcdir); \
else \
TOP_BUILDDIR=$(top_builddir) TOP_SRCDIR=$(top_srcdir) $(top_builddir)/php -d include_path=".:$(top_srcdir)/pear:$(top_builddir)/pear:$(PEAR_INSTALLDIR)" -q $(top_srcdir)/run-tests.php $(TESTS); \
TOP_BUILDDIR=$(top_builddir) TOP_SRCDIR=$(top_srcdir) $(top_builddir)/php -C -q $(top_srcdir)/run-tests.php $(TESTS); \
fi

include $(builddir)/.deps
Expand Down
9 changes: 6 additions & 3 deletions run-tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function initialize()
$term_bold = $term_norm = "";
}

$windows_p = (substr(php_uname(), 0, 7) == "Windows");
$windows_p = (substr(PHP_OS, 0, 3) == "WIN");
if ($windows_p) {
if (file_exists('Release_TS_inline\\php.exe')) {
$php = 'Release_TS_inline\\php.exe';
Expand All @@ -137,8 +137,11 @@ function initialize()
$php=trim($windows_p ? `cd`:`pwd`).'\\php';
}
} else {
// $php = $GLOBALS["TOP_BUILDDIR"]."/php"; // where should be the origin of this variable
$php=trim(`pwd`).'/php';
if (isset($GLOBALS["TOP_BUILDDIR"])) {
$php = $GLOBALS["TOP_BUILDDIR"]."/php";
} else {
$php = getcwd() . '/php';
}
}

create_compiled_in_modules_list();
Expand Down

0 comments on commit 0edbf42

Please sign in to comment.