Skip to content

Instantly share code, notes, and snippets.

@reid
Created August 9, 2010 15:41
Show Gist options
  • Select an option

  • Save reid/515590 to your computer and use it in GitHub Desktop.

Select an option

Save reid/515590 to your computer and use it in GitHub Desktop.
YUI3 smoke test launcher
<?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