Skip to content

Commit

Permalink
Add Makefile with a test target for running the test suite (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimwins authored Sep 3, 2024
1 parent 86c5a1b commit be5c1b8
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,11 @@ vendor
*.tgz
*.tar
*.zip
run-tests.php
# Generated by `./run-tests.php` upon failure
**/tests/**/*.diff
**/tests/**/*.out*
**/tests/**/*.php
**/tests/**/*.exp
**/tests/**/*.log
**/tests/**/*.sh
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.PHONY: test

test: run-tests.php
php run-tests.php -P -q --no-progress --offline --show-diff --show-slow 1000 --set-timeout 120 -g FAIL,BORK,LEAK,XLEAK tests/

run-tests.php:
wget https://raw.githubusercontent.com/php/php-src/master/run-tests.php
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ which is used to convert the PHP Manual into different output formats.
- DOM, libXML2, XMLReader and SQLite3.


## Running the test suite

Running the test suite uses the same test runner as the `php-src` repository.

```shell
$ make test
```

## Rendering the PHP Documentation Sources

To render the PHP documentation, you will need to clone the
Expand Down

0 comments on commit be5c1b8

Please sign in to comment.