Add .runif file support to run.php
commite7ae69b02636db7ba4e8a0b0c8e8d628c04b17d4
authorAlexey Toptygin <alexeyt@fb.com>
Fri, 26 Mar 2021 21:59:48 +0000 (26 14:59 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 30 Mar 2021 19:54:11 +0000 (30 12:54 -0700)
tree51eeae0b57926d1527e22e0f2c8efaf9d369e4cf
parent4e9e4b86edf14a03b01db9d005d85dded1232c80
Add .runif file support to run.php

Summary: Add a mechanism for skipping tests that's similar in spirit to .skipif but instead of allowing one to run arbitrary code it can only skip based on pre-defined reasons understood by the test runner. Add support for the most common reasons to use a .skipif: testing for the OS type, for whether we're running the test as root, and for the presence of an extension, function, class, method, or constant.

Differential Revision: D27325002

fbshipit-source-id: 99ea0b6d02843bc5cadc6dbfeea5c2b87a68c12a
hphp/test/run.php