cvs: php-testfest-web /scripts/testfestsource/src viewfilecontents.php /scripts/testfestsource/src/testsetup tmExtractTests.php

From: Date: Mon, 25 May 2009 09:40:16 +0000
Subject: cvs: php-testfest-web /scripts/testfestsource/src viewfilecontents.php /scripts/testfestsource/src/testsetup tmExtractTests.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-4863@lists.php.net to get a copy of this message
zoe Mon May 25 09:40:16 2009 UTC Modified files: /php-testfest-web/scripts/testfestsource/src viewfilecontents.php /php-testfest-web/scripts/testfestsource/src/testsetup tmExtractTests.php Log: fixes to copy more files and view file contents http://cvs.php.net/viewvc.cgi/php-testfest-web/scripts/testfestsource/src/viewfilecontents.php?r1=1.3&r2=1.4&diff_format=u Index: php-testfest-web/scripts/testfestsource/src/viewfilecontents.php diff -u php-testfest-web/scripts/testfestsource/src/viewfilecontents.php:1.3 php-testfest-web/scripts/testfestsource/src/viewfilecontents.php:1.4 --- php-testfest-web/scripts/testfestsource/src/viewfilecontents.php:1.3 Mon May 18 16:10:59 2009 +++ php-testfest-web/scripts/testfestsource/src/viewfilecontents.php Mon May 25 09:40:16 2009 @@ -34,11 +34,7 @@ if (strpos($file, '/p2/var/www/results.testfest.php.net/public_html/publishresults/') !== 0) { echo "Test file $file outside expected path<br />"; } else { - $contents = file($file); - - foreach($contents as $line) { - echo "$line<br />"; - } + highlight_file($file); } echo "<br /><br /><a href='filelist.php?basename=$basename'>Back to file list</a><br />"; http://cvs.php.net/viewvc.cgi/php-testfest-web/scripts/testfestsource/src/testsetup/tmExtractTests.php?r1=1.2&r2=1.3&diff_format=u Index: php-testfest-web/scripts/testfestsource/src/testsetup/tmExtractTests.php diff -u php-testfest-web/scripts/testfestsource/src/testsetup/tmExtractTests.php:1.2 php-testfest-web/scripts/testfestsource/src/testsetup/tmExtractTests.php:1.3 --- php-testfest-web/scripts/testfestsource/src/testsetup/tmExtractTests.php:1.2 Mon May 18 16:10:59 2009 +++ php-testfest-web/scripts/testfestsource/src/testsetup/tmExtractTests.php Mon May 25 09:40:16 2009 @@ -41,7 +41,16 @@ $fileList = shell_exec("find . -name \"*.inc\""); $incFiles = explode('./', $fileList); - $relNamesToCopy = array_merge($phptFiles, $incFiles); + $fileList = shell_exec("find . -name \"*.xsd\""); + $xsdFiles = explode('./', $fileList); + + $fileList = shell_exec("find . -name \"*.xml\""); + $xmlFiles = explode('./', $fileList); + + $fileList = shell_exec("find . -name \"*.xsl\""); + $xslFiles = explode('./', $fileList); + + $relNamesToCopy = array_merge($phptFiles, $incFiles, $xsdFiles, $xmlFiles, $xslFiles); //remove any bogus entries foreach ($relNamesToCopy as $filename) { @@ -52,6 +61,15 @@ if (substr($filename, -strlen('.inc')) == '.inc') { $this->relNamesToCopy[] = $filename; } + if (substr($filename, -strlen('.xsd')) == '.xsd') { + $this->relNamesToCopy[] = $filename; + } + if (substr($filename, -strlen('.xml')) == '.xml') { + $this->relNamesToCopy[] = $filename; + } + if (substr($filename, -strlen('.xsl')) == '.xsl') { + $this->relNamesToCopy[] = $filename; + } } } @@ -61,6 +79,12 @@ $target = $matches[2]."_".$matches[1].".phpt"; } else if(preg_match('/(\w+)\/(.*).inc/', $name, $matches)) { $target = $matches[2].".inc"; + } else if(preg_match('/(\w+)\/(.*).xsd/', $name, $matches)) { + $target = $matches[2].".xsd"; + } else if(preg_match('/(\w+)\/(.*).xml/', $name, $matches)) { + $target = $matches[2].".xml"; + } else if(preg_match('/(\w+)\/(.*).xsl/', $name, $matches)) { + $target = $matches[2].".xsl"; } else { $target = $name; } @@ -71,12 +95,5 @@ { return $this->relNamesToCopy; } - - - - - - - } ?>

« previous php.webmaster (#4863) next »