add 'funcptr, inctest, integers, preproc, name' testcases and fix the empty testcase
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11566 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
4ca1d4c19e
commit
0623fdff8b
7 changed files with 78 additions and 10 deletions
|
|
@ -1152,7 +1152,10 @@ SCILAB = @SCILAB@
|
|||
|
||||
scilab: $(SRCS)
|
||||
$(SWIG) -scilab $(SWIGOPT) $(INTERFACEPATH)
|
||||
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH SCILABPATH=$(srcdir):$$SCILABPATH $(SCILAB) -nwni -nb -f builder.sce
|
||||
if [ -f builder.sce ]; then \
|
||||
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH SCILABPATH=$(srcdir):$$SCILABPATH $(SCILAB) -nwni -nb -f builder.sce; \
|
||||
fi
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
# Running a Scilab example
|
||||
# -----------------------------------------------------------------
|
||||
|
|
|
|||
6
Examples/test-suite/scilab/funcptr_runme.sci
Normal file
6
Examples/test-suite/scilab/funcptr_runme.sci
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
exec loader.sce;
|
||||
|
||||
if add(7, 9) <> 16 then pause, end
|
||||
if do_op(7, 9, funcvar_get()) <> 16 then pause, end
|
||||
|
||||
exit
|
||||
19
Examples/test-suite/scilab/inctest_runme.sci
Normal file
19
Examples/test-suite/scilab/inctest_runme.sci
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
exec loader.sce;
|
||||
|
||||
try
|
||||
a = new_A();
|
||||
catch
|
||||
printf("did not find A\ntherefore, I did not include ""testdir/subdir1/hello.i""\n");
|
||||
end
|
||||
|
||||
try
|
||||
b = new_B();
|
||||
catch
|
||||
printf("did not find B\ntherefore, I did not include ""testdir/subdir2/hello.i""\n");
|
||||
end
|
||||
|
||||
if importtest1(5) <> 15 then pause, end
|
||||
if importtest2("black") <> "white" then pause, end
|
||||
|
||||
exit
|
||||
|
||||
13
Examples/test-suite/scilab/integers_runme.sci
Normal file
13
Examples/test-suite/scilab/integers_runme.sci
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
exec loader.sce;
|
||||
|
||||
if signed_char_identity(-13) <> -13 then pause, end
|
||||
if unsigned_char_identity(251) <> 251 then pause, end
|
||||
if signed_short_identity(-31000) <> -31000 then pause, end
|
||||
if unsigned_short_identity(61000) <> 61000 then pause, end
|
||||
if signed_int_identity(42) <> 42 then pause, end
|
||||
if unsigned_int_identity(123456) <> 123456 then pause, end
|
||||
if signed_long_identity(65537) <> 65537 then pause, end
|
||||
if unsigned_long_identity(654321) <> 654321 then pause, end
|
||||
|
||||
exit
|
||||
|
||||
7
Examples/test-suite/scilab/name_runme.sci
Normal file
7
Examples/test-suite/scilab/name_runme.sci
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
exec loader.sce;
|
||||
|
||||
foo_2();
|
||||
if bar_2_get() <> 17 then pause, end
|
||||
if Baz_2_get() <> 47 then pause, end
|
||||
|
||||
exit
|
||||
8
Examples/test-suite/scilab/preproc_runme.sci
Normal file
8
Examples/test-suite/scilab/preproc_runme.sci
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
exec loader.sce;
|
||||
|
||||
if endif_get() <> 1 then pause, end
|
||||
if define_get() <> 1 then pause, end
|
||||
if defined_get() <> 1 then pause ,end
|
||||
if 2 * one_get() <> two_get() then pause, end
|
||||
|
||||
exit
|
||||
Loading…
Add table
Add a link
Reference in a new issue