cvs: php4 /ext ext_skel /ext/skeleton create_stubs /ext/skeleton/tests 001.phpt
| From: | Hartmut Holzgraefe | Date: | Mon, 23 Oct 2000 07:31:31 +0000 |
| Subject: | cvs: php4 /ext ext_skel /ext/skeleton create_stubs /ext/skeleton/tests 001.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-2240@lists.php.net to get a copy of this message | ||
hholzgra Mon Oct 23 00:31:31 2000 EDT
Added files:
/php4/ext/skeleton/tests 001.phpt
Modified files:
/php4/ext ext_skel
/php4/ext/skeleton create_stubs
Log:
added a regression test skeleton file
plus a partintro in xml documentation template
Index: php4/ext/ext_skel
diff -u php4/ext/ext_skel:1.28 php4/ext/ext_skel:1.29
--- php4/ext/ext_skel:1.28 Thu Aug 3 19:23:28 2000
+++ php4/ext/ext_skel Mon Oct 23 00:31:30 2000
@@ -200,7 +200,10 @@
fi
sed -f sedscript <../skeleton/php_skeleton.h > php_$extname.h
-rm sedscript
+$ECHO_N " tests/001.phpt$ECHO_C"
+mkdir tests || givup "Cannot create tests directory"
+chmod 755 tests
+sed -f sedscript <../skeleton/tests/001.phpt > tests/001.phpt
if test -z "$stubs" && test -z "$no_help"; then
$ECHO_N " $extname.php$ECHO_C"
@@ -210,6 +213,8 @@
> $extname.php
fi
+rm sedscript
+
if test -n "$proto"; then
if test -z "$stubs"; then
rm function_entries
@@ -226,7 +231,8 @@
fi
fi
-chmod 644 *
+find . -type f | xargs chmod 644
+find . -type d | xargs chmod 755
fi
echo " [done]."
Index: php4/ext/skeleton/create_stubs
diff -u php4/ext/skeleton/create_stubs:1.7 php4/ext/skeleton/create_stubs:1.8
--- php4/ext/skeleton/create_stubs:1.7 Sat Jun 24 00:40:32 2000
+++ php4/ext/skeleton/create_stubs Mon Oct 23 00:31:30 2000
@@ -85,7 +85,11 @@
xmlhead = " <reference id=\"ref." extname "\">\n" \
" <title> functions</title>\n" \
- " <titleabbrev></titleabbrev>\n\n"
+ " <titleabbrev></titleabbrev>\n\n" \
+ " <partintro>\n"
+ " <para>\n" \
+ " </para\n" \
+ " </partintro>\n\n";
xmlfoot = " </reference>\n\n" \
"<!-- Keep this comment at the end of the file\n" \
Index: php4/ext/skeleton/tests/001.phpt
+++ php4/ext/skeleton/tests/001.phpt
--TEST--
Check for extname presence
--SKIPIF--
<?php if (!extension_loaded("extname")) print "skip"; ?>
--POST--
--GET--
--FILE--
<?php
echo "extname extension is available";
/*
you can add regression tests for your extension here
the output of your test code has to be equal to the
text in the --EXPECT-- section below for the tests
to pass, differences between the output and the
expected text are interpreted as failure
see php4/tests/README for further information on
writing regression tests
*/
?>
--EXPECT--
extname extension is available