Add aggregate_runme.sci test file
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12403 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
454b1c8ab6
commit
3ca167ca82
3 changed files with 23 additions and 2 deletions
|
|
@ -64,7 +64,7 @@ CXXSRCS =
|
||||||
CSRCS =
|
CSRCS =
|
||||||
TARGETPREFIX =
|
TARGETPREFIX =
|
||||||
TARGETSUFFIX =
|
TARGETSUFFIX =
|
||||||
SWIGOPT = -outcurrentdir -I$(top_srcdir)/$(EXAMPLES)/$(TEST_SUITE)
|
SWIGOPT = -debug-module 4 -outcurrentdir -I$(top_srcdir)/$(EXAMPLES)/$(TEST_SUITE)
|
||||||
INCLUDES = -I$(top_srcdir)/$(EXAMPLES)/$(TEST_SUITE)
|
INCLUDES = -I$(top_srcdir)/$(EXAMPLES)/$(TEST_SUITE)
|
||||||
LIBS = -L.
|
LIBS = -L.
|
||||||
LIBPREFIX = lib
|
LIBPREFIX = lib
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ include $(srcdir)/../common.mk
|
||||||
# Rules for the different types of tests
|
# Rules for the different types of tests
|
||||||
%.cpptest:
|
%.cpptest:
|
||||||
@$(setup)
|
@$(setup)
|
||||||
@+$(swig_and_compile_cpp) > scilab.log
|
+$(swig_and_compile_cpp) > scilab.log
|
||||||
@$(run_testcase)
|
@$(run_testcase)
|
||||||
|
|
||||||
%.ctest:
|
%.ctest:
|
||||||
|
|
|
||||||
21
Examples/test-suite/scilab/aggregate_runme.sci
Normal file
21
Examples/test-suite/scilab/aggregate_runme.sci
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
exec("swigtest.start", -1);
|
||||||
|
|
||||||
|
if UP_get()<>int32(1) then swigtesterror(); end
|
||||||
|
if typeof(UP_get())<>"int32" then swigtesterror(); end
|
||||||
|
|
||||||
|
if DOWN_get()<>int32(2) then swigtesterror(); end
|
||||||
|
if typeof(DOWN_get())<>"int32" then swigtesterror(); end
|
||||||
|
|
||||||
|
if LEFT_get()<>int32(3) then swigtesterror(); end
|
||||||
|
if typeof(LEFT_get())<>"int32" then swigtesterror(); end
|
||||||
|
|
||||||
|
if RIGHT_get()<>int32(4) then swigtesterror(); end
|
||||||
|
if typeof(RIGHT_get())<>"int32" then swigtesterror(); end
|
||||||
|
|
||||||
|
// TODO: move is a Scilab function...
|
||||||
|
//result = move(UP_get());
|
||||||
|
//result = move(DOWN_get());
|
||||||
|
//result = move(LEFT_get());
|
||||||
|
//result = move(RIGHT_get());
|
||||||
|
|
||||||
|
exec("swigtest.quit", -1);
|
||||||
Loading…
Add table
Add a link
Reference in a new issue