modify build system to use php instead of php4
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10967 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
dfd94424ba
commit
bcc796f676
71 changed files with 163 additions and 163 deletions
|
|
@ -1,9 +1,9 @@
|
|||
#######################################################################
|
||||
# Makefile for php4 test-suite
|
||||
# Makefile for php test-suite
|
||||
#######################################################################
|
||||
|
||||
LANGUAGE = php4
|
||||
SCRIPTSUFFIX = _runme.php4
|
||||
LANGUAGE = php
|
||||
SCRIPTSUFFIX = _runme.php
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
top_builddir = @top_builddir@
|
||||
|
|
@ -25,19 +25,19 @@ makectests:
|
|||
@bash -ec 'for test in $(C_TEST_CASES) ; do $($(MAKE)) clean && $(MAKE) $${test}.cpptest; done'
|
||||
|
||||
runcpptests:
|
||||
@bash -ec 'for test in $(CPP_TEST_CASES) ; do if [ -f $${test}_runme.php4 ] ; then $(MAKE) clean && $(MAKE) $${test}.cpptest; fi ; done'
|
||||
@bash -ec 'for test in $(CPP_TEST_CASES) ; do if [ -f $${test}_runme.php ] ; then $(MAKE) clean && $(MAKE) $${test}.cpptest; fi ; done'
|
||||
|
||||
runctests:
|
||||
@bash -ec 'for test in $(C_TEST_CASES) ; do if [ -f $${test}_runme.php4 ] ; then $(MAKE) clean && $(MAKE) $${test}.cpptest; fi; done'
|
||||
@bash -ec 'for test in $(C_TEST_CASES) ; do if [ -f $${test}_runme.php ] ; then $(MAKE) clean && $(MAKE) $${test}.cpptest; fi; done'
|
||||
|
||||
runtests: runcpptests runctests
|
||||
|
||||
# write out tests without a _runme.php4
|
||||
# write out tests without a _runme.php
|
||||
missingcpptests:
|
||||
@bash -ec 'for test in $(CPP_TEST_CASES) ; do test -f $${test}_runme.php4 || echo $${test}; done'
|
||||
@bash -ec 'for test in $(CPP_TEST_CASES) ; do test -f $${test}_runme.php || echo $${test}; done'
|
||||
|
||||
missingctests:
|
||||
@bash -ec 'for test in $(C_TEST_CASES) ; do test -f $${test}_runme.php4 || echo $${test}; done'
|
||||
@bash -ec 'for test in $(C_TEST_CASES) ; do test -f $${test}_runme.php || echo $${test}; done'
|
||||
|
||||
missingtests: missingcpptests missingctests
|
||||
|
||||
|
|
@ -58,10 +58,10 @@ missingtests: missingcpptests missingctests
|
|||
+$(run_testcase)
|
||||
|
||||
# Runs the testcase. A testcase is only run if
|
||||
# a file is found which has _runme.php4 appended after the testcase name.
|
||||
# a file is found which has _runme.php appended after the testcase name.
|
||||
run_testcase = \
|
||||
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then ( \
|
||||
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile PHP4SCRIPT=$(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) RUNTOOL=$(RUNTOOL) php4_run;) \
|
||||
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile PHPSCRIPT=$(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) RUNTOOL=$(RUNTOOL) php_run;) \
|
||||
fi;
|
||||
|
||||
# Clean: remove the generated .php file
|
||||
|
|
@ -69,4 +69,4 @@ run_testcase = \
|
|||
@rm -f $*.php;
|
||||
|
||||
clean:
|
||||
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile php4_clean
|
||||
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile php_clean
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "abstract_inherit_ok.php";
|
||||
|
||||
check::classes(array(Foo,Spam));
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "abstract_inherit.php";
|
||||
|
||||
check::classes(array(Foo,Bar,Spam,NRFilter_i,NRRCFilter_i,NRRCFilterpro_i,NRRCFilterpri_i));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "add_link.php";
|
||||
|
||||
// No new functions, except the flat functions
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "argout.php";
|
||||
|
||||
check::functions(array(incp,incr,inctr,new_intp,copy_intp,delete_intp,intp_assign,intp_value,voidhandle,handle));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "arrayptr.php";
|
||||
|
||||
// No new functions
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "arrays_global.php";
|
||||
|
||||
check::functions(array(test_a,test_b,new_simplestruct,new_material));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "arrays_global_twodim.php";
|
||||
|
||||
check::functions(array(fn_taking_arrays,get_2d_array,new_simplestruct,new_material));
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "arrays.php";
|
||||
|
||||
check::functions(array(fn_taking_arrays,newintpointer,setintfrompointer,getintfrompointer,array_pointer_func));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "arrays_scope.php";
|
||||
|
||||
// No new functions
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "casts.php";
|
||||
|
||||
// No new functions
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "class_ignore.php";
|
||||
|
||||
check::functions(array(do_blah,new_bar,bar_blah,new_boo,boo_away,new_far,new_hoo));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "conversion_namespace.php";
|
||||
|
||||
check::classes(array("Foo","Bar"));
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "conversion_ns_template.php";
|
||||
|
||||
check::classes(array("conversion_ns_template","Foo_One","Bar_One","Hi"));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "conversion.php";
|
||||
|
||||
check::classes(array("Foo","Bar"));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "cpp_static.php";
|
||||
|
||||
// No new functions
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "enum_scope_template.php";
|
||||
|
||||
check::classes(array("enum_scope_template", "TreeInt"));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "evil_diamond_ns.php";
|
||||
|
||||
check::classes(array("evil_diamond_ns","foo","bar","baz","spam"));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "evil_diamond_prop.php";
|
||||
|
||||
check::classes(array("evil_diamond_prop","foo","bar","baz","spam"));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "evil_diamond.php";
|
||||
|
||||
check::classes(array("evil_diamond","foo","bar","baz","spam"));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "extend_template_ns.php";
|
||||
|
||||
check::classes(array("extend_template_ns","Foo_One"));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "extend_template.php";
|
||||
|
||||
check::classes(array("Foo_0"));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "grouping.php";
|
||||
|
||||
check::functions(array("test1","test2","do_unary","negate"));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "ignore_parameter.php";
|
||||
|
||||
// No new functions
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "li_carrays.php";
|
||||
|
||||
// No new functions
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "li_std_string.php";
|
||||
|
||||
// Global variables
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "rename_scope.php";
|
||||
|
||||
check::classes(array("rename_scope","Interface_UP","Interface_BP","Natural_UP","Natural_BP","Bucket"));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "____.php";
|
||||
|
||||
// No new functions
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "smart_pointer_rename.php";
|
||||
|
||||
check::classes(array("Foo","Bar"));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "sym.php";
|
||||
|
||||
// No new functions
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "template_arg_typename.php";
|
||||
|
||||
// No new functions
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "template_construct.php";
|
||||
|
||||
check::classes(array(Foo_int));
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "typedef_reference.php";
|
||||
|
||||
check::functions(array(somefunc,otherfunc,new_intp,copy_intp,delete_intp,intp_assign,intp_value));
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "typemap_ns_using.php";
|
||||
if (! class_exists("_fooimpl")) die("_fooimpl class not found\n");
|
||||
if (! 3==spam(3)) die("spam function not working right\n");
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "using1.php";
|
||||
if (! class_exists("_fooimpl")) die("_fooimpl class not found\n");
|
||||
if (! 3==spam(3)) die("spam function not working right\n");
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "using2.php";
|
||||
if (! class_exists("_fooimpl")) die("_fooimpl class not found\n");
|
||||
if (! 3==spam(3)) die("spam function not working right\n");
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "valuewrapper_base.php";
|
||||
|
||||
check::classes(array("valuewrapper_base","Base","Interface_BP"));
|
||||
Loading…
Add table
Add a link
Reference in a new issue