diff options
author | Shashank | 2017-05-29 12:40:26 +0530 |
---|---|---|
committer | Shashank | 2017-05-29 12:40:26 +0530 |
commit | 0345245e860375a32c9a437c4a9d9cae807134e9 (patch) | |
tree | ad51ecbfa7bcd3cc5f09834f1bb8c08feaa526a4 /modules/modules_manager/tests | |
download | scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.gz scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.bz2 scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.zip |
CMSCOPE changed
Diffstat (limited to 'modules/modules_manager/tests')
14 files changed, 771 insertions, 0 deletions
diff --git a/modules/modules_manager/tests/nonreg_tests/bug_6831.tst b/modules/modules_manager/tests/nonreg_tests/bug_6831.tst new file mode 100755 index 000000000..72e6d91f5 --- /dev/null +++ b/modules/modules_manager/tests/nonreg_tests/bug_6831.tst @@ -0,0 +1,24 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> +// <-- INTERACTIVE TEST --> + +// <-- Non-regression test for bug 6831 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=6831 +// +// <-- Short Description --> +// in cli (=nwni) mode, tbx_build_help failed. + +// launch scilab as CLI or NWNI mode + +cd SCI/contrib/toolbox_skeleton +exec builder.sce; + +// toolbox should be built, but help generation must be skipped diff --git a/modules/modules_manager/tests/nonreg_tests/bug_6971.tst b/modules/modules_manager/tests/nonreg_tests/bug_6971.tst new file mode 100755 index 000000000..cfe31ca79 --- /dev/null +++ b/modules/modules_manager/tests/nonreg_tests/bug_6971.tst @@ -0,0 +1,23 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> +// <-- INTERACTIVE TEST --> + +// <-- Non-regression test for bug 6971 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=6971 +// +// <-- Short Description --> +// after launching a toolbox by loader.sce, variable v was predefined. + +// launch scilab +cd SCI/contrib/toolbox_skeleton +exec builder.sce; +exec loader.sce; +if isdef('v') then pause,end diff --git a/modules/modules_manager/tests/nonreg_tests/bug_7014.tst b/modules/modules_manager/tests/nonreg_tests/bug_7014.tst new file mode 100755 index 000000000..d83400f00 --- /dev/null +++ b/modules/modules_manager/tests/nonreg_tests/bug_7014.tst @@ -0,0 +1,27 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> +// <-- INTERACTIVE TEST --> + +// <-- Non-regression test for bug 7014 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7014 +// +// <-- Short Description --> +// ilib_verbose value modified after toolbox_skeleton + +// launch scilab + +DEFAULT_VALUE_VERBOSE = ilib_verbose(); + +cd SCI/contrib/toolbox_skeleton +exec builder.sce; +exec loader.sce; + +if ilib_verbose() <> DEFAULT_VALUE_VERBOSE then pause, end diff --git a/modules/modules_manager/tests/nonreg_tests/bug_8129.tst b/modules/modules_manager/tests/nonreg_tests/bug_8129.tst new file mode 100755 index 000000000..cf2082a82 --- /dev/null +++ b/modules/modules_manager/tests/nonreg_tests/bug_8129.tst @@ -0,0 +1,24 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- CLI SHELL MODE --> +// <-- INTERACTIVE TEST --> + +// <-- Non-regression test for bug 8129 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=8129 +// +// <-- Short Description --> +// a error message was obscure in tbx_builder_src + +// Try to build a toolbox needing building from sources on a machine +// without a compiler (tested here on XP). +// for example SCI/contrib/toolbox_skeleton + +// Message must be : +// tbx_builder_src: This module requires a C or Fortran compiler and it has not been found. diff --git a/modules/modules_manager/tests/nonreg_tests/bug_9339.tst b/modules/modules_manager/tests/nonreg_tests/bug_9339.tst new file mode 100755 index 000000000..f10cd0cbf --- /dev/null +++ b/modules/modules_manager/tests/nonreg_tests/bug_9339.tst @@ -0,0 +1,30 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- ENGLISH IMPOSED --> +// +// <-- NO CHECK ERROR OUTPUT --> +// +// <-- Non-regression test for bug 9339 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=9339 +// +// <-- Short Description --> +// 'tbx_build_help' function did not manage languages correctly. + +SRC = SCI + '/contrib/toolbox_skeleton'; +DST = TMPDIR + '/toolbox_skeleton'; +mkdir(DST); +assert_checkequal(isdir(DST), %T); +copyfile(SRC, DST); +cd(DST); +ilib_verbose(0); +exec('builder.sce'); + +assert_checkequal(isdir(DST + '/help/fr_FR/scilab_fr_FR_help'), %T); +assert_checkequal(isdir(DST + '/help/en_US/scilab_en_US_help'), %T); diff --git a/modules/modules_manager/tests/nonreg_tests/bug_9339.unix.dia.ref b/modules/modules_manager/tests/nonreg_tests/bug_9339.unix.dia.ref new file mode 100755 index 000000000..cdaef6d44 --- /dev/null +++ b/modules/modules_manager/tests/nonreg_tests/bug_9339.unix.dia.ref @@ -0,0 +1,64 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- ENGLISH IMPOSED --> +// +// <-- NO CHECK ERROR OUTPUT --> +// +// <-- Non-regression test for bug 9339 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=9339 +// +// <-- Short Description --> +// 'tbx_build_help' function did not manage languages correctly. +SRC = SCI + '/contrib/toolbox_skeleton'; +DST = TMPDIR + '/toolbox_skeleton'; +mkdir(DST); +assert_checkequal(isdir(DST), %T); +copyfile(SRC, DST); +cd(DST); +ilib_verbose(0); +exec('builder.sce'); +Building macros... +-- Creation of [toolbox_skeletonlib] (Macros) -- +genlib: Processing file: scilab_error.sci +genlib: Processing file: scilab_sum.sci +genlib: Regenerate names and lib +Building sources... +Building gateway... +Generating loader_gateway.sce... +Generating cleaner_gateway.sce... +Generating localization +-- Building for "en_US" -- +-- Building for "fr_FR" -- +Building help... + +Building the master document: + TMPDIR/toolbox_skeleton/help/en_US + +Building the manual file [javaHelp] in TMPDIR/toolbox_skeleton/help/en_US. + + Generate image ./c_sub_1.png from Scilab code from file c_sub.xml + + Generate image ./c_sub_en_US_2.png from Scilab code from file c_sub.xm + l + +Building the master document: + TMPDIR/toolbox_skeleton/help/fr_FR + +Building the manual file [javaHelp] in TMPDIR/toolbox_skeleton/help/fr_FR. + + Generate image ./c_sub_1.png from Scilab code from file c_sub.xml + + Generate image ./c_sub_fr_FR_2.png from Scilab code from file c_sub.xm + l +Generating loader.sce... +Generating unloader.sce... +Generating cleaner.sce... +assert_checkequal(isdir(DST + '/help/fr_FR/scilab_fr_FR_help'), %T); +assert_checkequal(isdir(DST + '/help/en_US/scilab_en_US_help'), %T); diff --git a/modules/modules_manager/tests/nonreg_tests/bug_9339.win.dia.ref b/modules/modules_manager/tests/nonreg_tests/bug_9339.win.dia.ref new file mode 100755 index 000000000..f525f9835 --- /dev/null +++ b/modules/modules_manager/tests/nonreg_tests/bug_9339.win.dia.ref @@ -0,0 +1,64 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- ENGLISH IMPOSED --> +// +// <-- NO CHECK ERROR OUTPUT --> +// +// <-- Non-regression test for bug 9339 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=9339 +// +// <-- Short Description --> +// 'tbx_build_help' function did not manage languages correctly. +SRC = SCI + '/contrib/toolbox_skeleton'; +DST = TMPDIR + '/toolbox_skeleton'; +mkdir(DST); +assert_checkequal(isdir(DST), %T); +copyfile(SRC, DST); +cd(DST); +ilib_verbose(0); +exec('builder.sce'); +Building macros... +-- Creation of [toolbox_skeletonlib] (Macros) -- +genlib: Processing file: scilab_error.sci +genlib: Processing file: scilab_sum.sci +genlib: Regenerate names and lib +Building sources... +Building gateway... +Generating loader_gateway.sce... +Generating cleaner_gateway.sce... +Generating localization +-- Building for "en_US" -- +-- Building for "fr_FR" -- +Building help... + +Building the master document: + TMPDIR\toolbox_skeleton\help\en_US + +Building the manual file [javaHelp] in TMPDIR\toolbox_skeleton\help\en_US. + + Generate image ./c_sub_1.png from Scilab code from file c_sub.xml + + Generate image ./c_sub_en_US_2.png from Scilab code from file c_sub.xm + l + +Building the master document: + TMPDIR\toolbox_skeleton\help\fr_FR + +Building the manual file [javaHelp] in TMPDIR\toolbox_skeleton\help\fr_FR. + + Generate image ./c_sub_1.png from Scilab code from file c_sub.xml + + Generate image ./c_sub_fr_FR_2.png from Scilab code from file c_sub.xm + l +Generating loader.sce... +Generating unloader.sce... +Generating cleaner.sce... +assert_checkequal(isdir(DST + '/help/fr_FR/scilab_fr_FR_help'), %T); +assert_checkequal(isdir(DST + '/help/en_US/scilab_en_US_help'), %T); diff --git a/modules/modules_manager/tests/unit_tests/toolbox_skeleton.tst b/modules/modules_manager/tests/unit_tests/toolbox_skeleton.tst new file mode 100755 index 000000000..c9932022c --- /dev/null +++ b/modules/modules_manager/tests/unit_tests/toolbox_skeleton.tst @@ -0,0 +1,21 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - DIGITEO - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- NO CHECK ERROR OUTPUT --> +// <-- ENGLISH IMPOSED --> + +// Test the toolbox skeleton in SCI/contrib/ +// - Building/Compilation +// - Loading +// - Tests + +// Scilab external module skeleton +status = copyfile(SCI + "/contrib/toolbox_skeleton/", TMPDIR + "/toolbox_skeleton/"); +assert_checkequal(status, 1); +exec("TMPDIR/toolbox_skeleton/builder.sce"); +exec("TMPDIR/toolbox_skeleton/loader.sce"); +test_run("TMPDIR/toolbox_skeleton/", [], "short_summary");
\ No newline at end of file diff --git a/modules/modules_manager/tests/unit_tests/toolbox_skeleton.unix.dia.ref b/modules/modules_manager/tests/unit_tests/toolbox_skeleton.unix.dia.ref new file mode 100755 index 000000000..e3f458cbc --- /dev/null +++ b/modules/modules_manager/tests/unit_tests/toolbox_skeleton.unix.dia.ref @@ -0,0 +1,125 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - DIGITEO - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- NO CHECK ERROR OUTPUT --> +// <-- ENGLISH IMPOSED --> +// Test the toolbox skeleton in SCI/contrib/ +// - Building/Compilation +// - Loading +// - Tests +// Scilab external module skeleton +status = copyfile(SCI + "/contrib/toolbox_skeleton/", TMPDIR + "/toolbox_skeleton/"); +assert_checkequal(status, 1); +exec("TMPDIR/toolbox_skeleton/builder.sce"); +Building macros... +-- Creation of [toolbox_skeletonlib] (Macros) -- +genlib: Processing file: scilab_error.sci +genlib: Processing file: scilab_sum.sci +genlib: Regenerate names and lib +Building sources... + Generate a loader file + Generate a Makefile + ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR + ilib_gen_Make: Copy fsum.f to TMPDIR + ilib_gen_Make: Modification of the Makefile in TMPDIR. + Running the Makefile + Generate a cleaner file + Generate a loader file + Generate a Makefile + ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR + ilib_gen_Make: Copy csum.c to TMPDIR + ilib_gen_Make: Copy csub.c to TMPDIR + ilib_gen_Make: Copy multiplybypi.c to TMPDIR + ilib_gen_Make: configure : Generate Makefile. + ilib_gen_Make: Modification of the Makefile in TMPDIR. + Running the Makefile + Generate a cleaner file + Building JAR library org.scilab.contrib.toolboxskeleton.jar + Compiling Java sources in TMPDIR/toolbox_skeleton/src/java/ + Creating JAR archive TMPDIR/toolbox_skeleton/jar/org.scilab.contrib.toolboxskeleton.jar + Create loader script for Java loader.sce + Create cleaner script for Java cleaner.sce +Building gateway... + Generate a gateway file + Generate a loader file + Generate a Makefile + ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR + ilib_gen_Make: Copy libskeleton_fortran.c to TMPDIR + ilib_gen_Make: Copy sci_fsum.c to TMPDIR + ilib_gen_Make: Modification of the Makefile in TMPDIR. + Running the makefile + Generate a cleaner file + Generate a gateway file + Generate a loader file + Generate a Makefile + ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR + ilib_gen_Make: Copy libskeleton_c.c to TMPDIR + ilib_gen_Make: Copy sci_cerror.c to TMPDIR + ilib_gen_Make: Copy sci_csub.c to TMPDIR + ilib_gen_Make: Copy sci_csum.c to TMPDIR + ilib_gen_Make: Copy sci_foo.c to TMPDIR + ilib_gen_Make: Copy sci_multiplybypi.c to TMPDIR + ilib_gen_Make: configure : Generate Makefile. + ilib_gen_Make: Modification of the Makefile in TMPDIR. + Running the makefile + Generate a cleaner file + Generate a gateway file + Generate a loader file + Generate a Makefile + ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR + ilib_gen_Make: Copy libskeleton_cpp.c to TMPDIR + ilib_gen_Make: Copy sci_cpp_find.cxx to TMPDIR + ilib_gen_Make: Modification of the Makefile in TMPDIR. + Running the makefile + Generate a cleaner file +Generating loader_gateway.sce... +Generating cleaner_gateway.sce... +Generating localization +-- Building for "en_US" -- +-- Building for "fr_FR" -- +Building help... + +Building the master document: + TMPDIR/toolbox_skeleton/help/en_US + +Building the manual file [javaHelp] in TMPDIR/toolbox_skeleton/help/en_US. + + Generate image ./c_sub_1.png from Scilab code from file c_sub.xml + + Generate image ./c_sub_en_US_2.png from Scilab code from file c_sub.xm + l + +Building the master document: + TMPDIR/toolbox_skeleton/help/fr_FR + +Building the manual file [javaHelp] in TMPDIR/toolbox_skeleton/help/fr_FR. + + Generate image ./c_sub_1.png from Scilab code from file c_sub.xml + + Generate image ./c_sub_fr_FR_2.png from Scilab code from file c_sub.xm + l +Generating loader.sce... +Generating unloader.sce... +Generating cleaner.sce... +exec("TMPDIR/toolbox_skeleton/loader.sce"); +Start Toolbox Skeleton + Load macros + Load gateways + Load Java libraries + Load help + Load demos +test_run("TMPDIR/toolbox_skeleton/", [], "short_summary"); + 001/001 - [TMPDIR/toolbox_skeleton/] : + + 001/004 - [TMPDIR/toolbox_skeleton/] c_sum...................passed + 002/004 - [TMPDIR/toolbox_skeleton/] fortran_sum.............passed + 003/004 - [TMPDIR/toolbox_skeleton/] java_sum................passed + 004/004 - [TMPDIR/toolbox_skeleton/] scilab_sum..............passed + + + -------------------------------------------------------------------------- + Tests: 4, Passed: 4, Failed: 0, Skipped: 0 + -------------------------------------------------------------------------- diff --git a/modules/modules_manager/tests/unit_tests/toolbox_skeleton.win.dia.ref b/modules/modules_manager/tests/unit_tests/toolbox_skeleton.win.dia.ref new file mode 100755 index 000000000..e0542909f --- /dev/null +++ b/modules/modules_manager/tests/unit_tests/toolbox_skeleton.win.dia.ref @@ -0,0 +1,118 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - DIGITEO - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- NO CHECK ERROR OUTPUT --> +// <-- ENGLISH IMPOSED --> +// Test the toolbox skeleton in SCI/contrib/ +// - Building/Compilation +// - Loading +// - Tests +// Scilab external module skeleton +status = copyfile(SCI + "/contrib/toolbox_skeleton/", TMPDIR + "/toolbox_skeleton/"); +assert_checkequal(status, 1); +exec("TMPDIR/toolbox_skeleton/builder.sce"); +Building macros... +-- Creation of [toolbox_skeletonlib] (Macros) -- +genlib: Processing file: scilab_error.sci +genlib: Processing file: scilab_sum.sci +genlib: Regenerate names and lib +Building sources... + Generate a loader file + Generate a Makefile + Running the Makefile + Compilation of fsum.f + Building shared library (be patient) + Generate a cleaner file + Generate a loader file + Generate a Makefile + Running the Makefile + Compilation of csum.c + Compilation of csub.c + Compilation of multiplybypi.c + Building shared library (be patient) + Generate a cleaner file + Building JAR library org.scilab.contrib.toolboxskeleton.jar + Compiling Java sources in TMPDIR\toolbox_skeleton\src\java\ + Creating JAR archive TMPDIR\toolbox_skeleton\jar\org.scilab.contrib.toolboxskeleton.jar + Create loader script for Java loader.sce + Create cleaner script for Java cleaner.sce +Building gateway... + Generate a gateway file + Generate a loader file + Generate a Makefile + Running the makefile + Compilation of sci_fsum.c + Compilation of skeleton_fortran.c + Building shared library (be patient) + Generate a cleaner file + Generate a gateway file + Generate a loader file + Generate a Makefile + Running the makefile + Compilation of sci_cerror.c + Compilation of sci_csub.c + Compilation of sci_csum.c + Compilation of sci_foo.c + Compilation of sci_multiplybypi.c + Compilation of skeleton_c.c + Building shared library (be patient) + Generate a cleaner file + Generate a gateway file + Generate a loader file + Generate a Makefile + Running the makefile + Compilation of sci_cpp_find.cxx + Compilation of skeleton_cpp.c + Building shared library (be patient) + Generate a cleaner file +Generating loader_gateway.sce... +Generating cleaner_gateway.sce... +Generating localization +-- Building for "en_US" -- +-- Building for "fr_FR" -- +Building help... + +Building the master document: + TMPDIR\toolbox_skeleton\help\en_US + +Building the manual file [javaHelp] in TMPDIR\toolbox_skeleton\help\en_US. + + Generate image ./c_sub_1.png from Scilab code from file c_sub.xml + + Generate image ./c_sub_en_US_2.png from Scilab code from file c_sub.xm + l + +Building the master document: + TMPDIR\toolbox_skeleton\help\fr_FR + +Building the manual file [javaHelp] in TMPDIR\toolbox_skeleton\help\fr_FR. + + Generate image ./c_sub_1.png from Scilab code from file c_sub.xml + + Generate image ./c_sub_fr_FR_2.png from Scilab code from file c_sub.xm + l +Generating loader.sce... +Generating unloader.sce... +Generating cleaner.sce... +exec("TMPDIR/toolbox_skeleton/loader.sce"); +Start Toolbox Skeleton + Load macros + Load gateways + Load Java libraries + Load help + Load demos +test_run("TMPDIR/toolbox_skeleton/", [], "short_summary"); + 001/001 - [TMPDIR/toolbox_skeleton/] : + + 001/004 - [TMPDIR/toolbox_skeleton/] c_sum...................passed + 002/004 - [TMPDIR/toolbox_skeleton/] fortran_sum.............passed + 003/004 - [TMPDIR/toolbox_skeleton/] java_sum................passed + 004/004 - [TMPDIR/toolbox_skeleton/] scilab_sum..............passed + + + -------------------------------------------------------------------------- + Tests: 4, Passed: 4, Failed: 0, Skipped: 0 + -------------------------------------------------------------------------- diff --git a/modules/modules_manager/tests/unit_tests/xcos_toolbox_skeleton.macosx.dia.ref b/modules/modules_manager/tests/unit_tests/xcos_toolbox_skeleton.macosx.dia.ref new file mode 100755 index 000000000..e02a1b5fb --- /dev/null +++ b/modules/modules_manager/tests/unit_tests/xcos_toolbox_skeleton.macosx.dia.ref @@ -0,0 +1,78 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - DIGITEO - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- NO CHECK ERROR OUTPUT --> +// <-- ENGLISH IMPOSED --> +// Test the Xcos toolbox skeleton in SCI/contrib/ +// - Building/Compilation +// - Loading +// - Tests +// Xcos external module skeleton +status = copyfile(SCI + "/contrib/xcos_toolbox_skeleton/", TMPDIR + "/xcos_toolbox_skeleton/"); +assert_checkequal(status, 1); +exec("TMPDIR/xcos_toolbox_skeleton/builder.sce"); +Building macros... +-- Creation of [xcos_toolbox_skeletonlib] (Macros) -- +genlib: Processing file: TBX_MUT_STYLE.sci +genlib: Processing file: TBX_NOOP.sci +genlib: Processing file: TBX_NOOP_sci.sci +genlib: Processing file: TBX_NOOP_sim.sci +genlib: Processing file: TBX_SUM_c.sci +genlib: Processing file: TBX_SUM_modelica.sci +genlib: Processing file: TBX_SUM_sci.sci +genlib: Processing file: TBX_SUM_sim.sci +genlib: Regenerate names and lib +Building blocks... +Building sources... + Generate a loader file + Generate a Makefile + ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR + ilib_gen_Make: Copy block_sum.c to TMPDIR + ilib_gen_Make: Copy business_sum.c to TMPDIR + ilib_gen_Make: Copy tbx_block_noop.c to TMPDIR + ilib_gen_Make: configure : Generate Makefile. + ilib_gen_Make: Modification of the Makefile in TMPDIR. + Running the Makefile + Generate a cleaner file +Building gateway... + Generate a gateway file + Generate a loader file + Generate a Makefile + ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR + ilib_gen_Make: Copy libxcos_toolbox_skeleton_c.c to TMPDIR + ilib_gen_Make: Copy sci_tbx_sum.c to TMPDIR + ilib_gen_Make: configure : Generate Makefile. + ilib_gen_Make: Modification of the Makefile in TMPDIR. + Running the makefile + Generate a cleaner file +Generating loader_gateway.sce... +Generating cleaner_gateway.sce... +Building help... + +Building the master document: + TMPDIR/xcos_toolbox_skeleton/help/en_US + +Building the manual file [javaHelp] in TMPDIR/xcos_toolbox_skeleton/help/en_US. +Generating loader.sce... +Generating unloader.sce... +Generating cleaner.sce... +exec("TMPDIR/xcos_toolbox_skeleton/loader.sce"); +Start Xcos toolbox skeleton + Load macros + Load palette + Load simulations functions + Load gateways + Load help + Load demos +test_run("TMPDIR/xcos_toolbox_skeleton/", [], "short_summary"); + 001/001 - [TMPDIR/xcos_toolbox_skeleton/] : + + 001/001 - [TMPDIR/xcos_toolbox_skeleton/] tbx_sum............passed + + + -------------------------------------------------------------------------- + Tests: 1, Passed: 1, Failed: 0, Skipped: 0 + -------------------------------------------------------------------------- diff --git a/modules/modules_manager/tests/unit_tests/xcos_toolbox_skeleton.tst b/modules/modules_manager/tests/unit_tests/xcos_toolbox_skeleton.tst new file mode 100755 index 000000000..cba94d6e4 --- /dev/null +++ b/modules/modules_manager/tests/unit_tests/xcos_toolbox_skeleton.tst @@ -0,0 +1,21 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - DIGITEO - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- NO CHECK ERROR OUTPUT --> +// <-- ENGLISH IMPOSED --> + +// Test the Xcos toolbox skeleton in SCI/contrib/ +// - Building/Compilation +// - Loading +// - Tests + +// Xcos external module skeleton +status = copyfile(SCI + "/contrib/xcos_toolbox_skeleton/", TMPDIR + "/xcos_toolbox_skeleton/"); +assert_checkequal(status, 1); +exec("TMPDIR/xcos_toolbox_skeleton/builder.sce"); +exec("TMPDIR/xcos_toolbox_skeleton/loader.sce"); +test_run("TMPDIR/xcos_toolbox_skeleton/", [], "short_summary");
\ No newline at end of file diff --git a/modules/modules_manager/tests/unit_tests/xcos_toolbox_skeleton.unix.dia.ref b/modules/modules_manager/tests/unit_tests/xcos_toolbox_skeleton.unix.dia.ref new file mode 100755 index 000000000..e02a1b5fb --- /dev/null +++ b/modules/modules_manager/tests/unit_tests/xcos_toolbox_skeleton.unix.dia.ref @@ -0,0 +1,78 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - DIGITEO - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- NO CHECK ERROR OUTPUT --> +// <-- ENGLISH IMPOSED --> +// Test the Xcos toolbox skeleton in SCI/contrib/ +// - Building/Compilation +// - Loading +// - Tests +// Xcos external module skeleton +status = copyfile(SCI + "/contrib/xcos_toolbox_skeleton/", TMPDIR + "/xcos_toolbox_skeleton/"); +assert_checkequal(status, 1); +exec("TMPDIR/xcos_toolbox_skeleton/builder.sce"); +Building macros... +-- Creation of [xcos_toolbox_skeletonlib] (Macros) -- +genlib: Processing file: TBX_MUT_STYLE.sci +genlib: Processing file: TBX_NOOP.sci +genlib: Processing file: TBX_NOOP_sci.sci +genlib: Processing file: TBX_NOOP_sim.sci +genlib: Processing file: TBX_SUM_c.sci +genlib: Processing file: TBX_SUM_modelica.sci +genlib: Processing file: TBX_SUM_sci.sci +genlib: Processing file: TBX_SUM_sim.sci +genlib: Regenerate names and lib +Building blocks... +Building sources... + Generate a loader file + Generate a Makefile + ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR + ilib_gen_Make: Copy block_sum.c to TMPDIR + ilib_gen_Make: Copy business_sum.c to TMPDIR + ilib_gen_Make: Copy tbx_block_noop.c to TMPDIR + ilib_gen_Make: configure : Generate Makefile. + ilib_gen_Make: Modification of the Makefile in TMPDIR. + Running the Makefile + Generate a cleaner file +Building gateway... + Generate a gateway file + Generate a loader file + Generate a Makefile + ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR + ilib_gen_Make: Copy libxcos_toolbox_skeleton_c.c to TMPDIR + ilib_gen_Make: Copy sci_tbx_sum.c to TMPDIR + ilib_gen_Make: configure : Generate Makefile. + ilib_gen_Make: Modification of the Makefile in TMPDIR. + Running the makefile + Generate a cleaner file +Generating loader_gateway.sce... +Generating cleaner_gateway.sce... +Building help... + +Building the master document: + TMPDIR/xcos_toolbox_skeleton/help/en_US + +Building the manual file [javaHelp] in TMPDIR/xcos_toolbox_skeleton/help/en_US. +Generating loader.sce... +Generating unloader.sce... +Generating cleaner.sce... +exec("TMPDIR/xcos_toolbox_skeleton/loader.sce"); +Start Xcos toolbox skeleton + Load macros + Load palette + Load simulations functions + Load gateways + Load help + Load demos +test_run("TMPDIR/xcos_toolbox_skeleton/", [], "short_summary"); + 001/001 - [TMPDIR/xcos_toolbox_skeleton/] : + + 001/001 - [TMPDIR/xcos_toolbox_skeleton/] tbx_sum............passed + + + -------------------------------------------------------------------------- + Tests: 1, Passed: 1, Failed: 0, Skipped: 0 + -------------------------------------------------------------------------- diff --git a/modules/modules_manager/tests/unit_tests/xcos_toolbox_skeleton.win.dia.ref b/modules/modules_manager/tests/unit_tests/xcos_toolbox_skeleton.win.dia.ref new file mode 100755 index 000000000..ef0ff2730 --- /dev/null +++ b/modules/modules_manager/tests/unit_tests/xcos_toolbox_skeleton.win.dia.ref @@ -0,0 +1,74 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - DIGITEO - Vincent COUVERT +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- NO CHECK ERROR OUTPUT --> +// <-- ENGLISH IMPOSED --> +// Test the Xcos toolbox skeleton in SCI/contrib/ +// - Building/Compilation +// - Loading +// - Tests +// Xcos external module skeleton +status = copyfile(SCI + "/contrib/xcos_toolbox_skeleton/", TMPDIR + "/xcos_toolbox_skeleton/"); +assert_checkequal(status, 1); +exec("TMPDIR/xcos_toolbox_skeleton/builder.sce"); +Building macros... +-- Creation of [xcos_toolbox_skeletonlib] (Macros) -- +genlib: Processing file: TBX_MUT_STYLE.sci +genlib: Processing file: TBX_NOOP.sci +genlib: Processing file: TBX_NOOP_sci.sci +genlib: Processing file: TBX_NOOP_sim.sci +genlib: Processing file: TBX_SUM_c.sci +genlib: Processing file: TBX_SUM_modelica.sci +genlib: Processing file: TBX_SUM_sci.sci +genlib: Processing file: TBX_SUM_sim.sci +genlib: Regenerate names and lib +Building blocks... +Building sources... + Generate a loader file + Generate a Makefile + Running the Makefile + Compilation of block_sum.c + Compilation of business_sum.c + Compilation of tbx_block_noop.c + Building shared library (be patient) + Generate a cleaner file +Building gateway... + Generate a gateway file + Generate a loader file + Generate a Makefile + Running the makefile + Compilation of sci_tbx_sum.c + Compilation of xcos_toolbox_skeleton_c.c + Building shared library (be patient) + Generate a cleaner file +Generating loader_gateway.sce... +Generating cleaner_gateway.sce... +Building help... + +Building the master document: + TMPDIR\xcos_toolbox_skeleton\help\en_US + +Building the manual file [javaHelp] in TMPDIR\xcos_toolbox_skeleton\help\en_US. +Generating loader.sce... +Generating unloader.sce... +Generating cleaner.sce... +exec("TMPDIR/xcos_toolbox_skeleton/loader.sce"); +Start Xcos toolbox skeleton + Load macros + Load palette + Load simulations functions + Load gateways + Load help + Load demos +test_run("TMPDIR/xcos_toolbox_skeleton/", [], "short_summary"); + 001/001 - [TMPDIR/xcos_toolbox_skeleton/] : + + 001/001 - [TMPDIR/xcos_toolbox_skeleton/] tbx_sum............passed + + + -------------------------------------------------------------------------- + Tests: 1, Passed: 1, Failed: 0, Skipped: 0 + -------------------------------------------------------------------------- |