Created
August 9, 2010 15:41
-
-
Save reid/515590 to your computer and use it in GitHub Desktop.
YUI3 smoke test launcher
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // place this file in yui3/src | |
| // usage: php run-yui3-tests.php | |
| $txt = file_get_contents("common/tests/smoketests.xml"); | |
| $xml = new SimpleXMLElement($txt); | |
| $urls = array(); | |
| foreach ($xml->tests->url as $item) { | |
| $urls[] = (string) $item; | |
| } | |
| // replace with open, xdg-open, etc.: | |
| $cmd = "yeti " . implode(" ", $urls); | |
| print "$cmd\n"; | |
| passthru($cmd); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment