atoms-tests

atoms-tests Commit Details

Date:2015-06-05 16:35:38 (3 years 3 months ago)
Author:Vincent Couvert
Branch:6.0
Commit:407e9df31331a491db706aed3f7f4106623824d1
Parents: 013893eeacaff5eb07f730c59a32441cbe2b4ab4
Message:* Add scripts to create scenes * Update toolboxes lits * Update .gitignore * Add a script to build src.tar.gz for each toolbox version

Changes:
Ctoolbox_4/1.0/builder.sce → toolbox_7/1.0/builder.sce
Ctoolbox_1/1.0/changelog.txt → toolbox_7/1.0/changelog.txt
Ctoolbox_5/1.0/etc/toolbox_5.start → toolbox_7/1.0/etc/toolbox_7.start
Ctoolbox_1/1.0/help/builder_help.sce → toolbox_7/1.0/help/builder_help.sce
Ctoolbox_1/1.0/help/en_US/build_help.sce → toolbox_7/1.0/help/en_US/build_help.sce
Ctoolbox_1/1.0/help/en_US/t1_function1.xml → toolbox_7/1.0/help/en_US/t7_function1.xml
Ctoolbox_1/1.0/help/en_US/t1_function2.xml → toolbox_7/1.0/help/en_US/t7_function2.xml
Ctoolbox_1/1.0/help/en_US/t1_function3.xml → toolbox_7/1.0/help/en_US/t7_function3.xml
Ctoolbox_1/1.0/help/fr_FR/build_help.sce → toolbox_7/1.0/help/fr_FR/build_help.sce
Ctoolbox_4/1.0/license.txt → toolbox_7/1.0/license.txt
Ctoolbox_1/1.0/macros/t1_function1.sci → toolbox_7/1.0/macros/t7_version.sci
Ctoolbox_1/1.0/tests/unit_tests/t1_function3.dia.ref → toolbox_7/1.0/tests/unit_tests/t7_function3.dia.ref
Ctoolbox_1/1.0/tests/unit_tests/t1_function2.tst → toolbox_7/1.0/tests/unit_tests/t7_function3.tst
Amake_src.sce (full)
Ascene10.sce (full)
Ascene11.sce (full)
Ascene12.sce (full)
Atoolbox_7/1.0/DESCRIPTION (full)
Atoolbox_7/1.0/etc/toolbox_7.quit
Atoolbox_7/1.0/macros/buildmacros.sce (full)
Atoolbox_7/1.0/readme.txt (full)
Atoolbox_7/1.0/tests/unit_tests/t7_common.txt (full)
Mtbx.sce (2 diffs)
Mtoolbox_1/1.0/.gitignore (1 diff)

File differences

make_src.sce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
main_dir = get_absolute_file_path("make_src.sce");
exec(main_dir + "tbx.sce");
for kn=1:size(tbx_names, "*")
for kv=1:size(tbx_versions(kn), "*")
copyfile(main_dir + tbx_names(kn) + "/" + tbx_versions(kn)(kv) + "/", TMPDIR + "/" + tbx_names(kn) + "V6/");
oldPath = pwd();
cd(TMPDIR)
unix("tar -zcf " + tbx_names(kn) + "V6-" + tbx_versions(kn)(kv) + "-src.tar.gz " + tbx_names(kn) + "V6/");
copyfile(tbx_names(kn) + "V6-" + tbx_versions(kn)(kv) + "-src.tar.gz", main_dir);
cd(oldPath)
rmdir(TMPDIR + "/" + tbx_names(kn) + "V6/", "s");
end
end
exit
scene10.sce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
main_dir = get_absolute_file_path("scene10.sce");
// Based on scene10.test.atoms.scilab.org:
// In toolboxes directory: find . -name DESCRIPTION | sort
//./toolbox_1/1.0/DESCRIPTION
//./toolbox_2/1.0/DESCRIPTION
//./toolbox_2/2.0/DESCRIPTION
//./toolbox_3/1.0/DESCRIPTION
//./toolbox_4/1.0/DESCRIPTION
//./toolbox_5/1.0/DESCRIPTION
//./toolbox_5/2.0/DESCRIPTION
//./toolbox_6/1.0/DESCRIPTION
tbx_names = [];
tbx_versions = list();
tbx_names(1) = "toolbox_1";
tbx_versions(1) = ["1.0"];
tbx_names(2) = "toolbox_2";
tbx_versions(2) = ["1.0" "2.0"];
tbx_names(3) = "toolbox_3";
tbx_versions(3) = ["1.0"];
tbx_names(4) = "toolbox_4";
tbx_versions(4) = ["1.0"];
tbx_names(5) = "toolbox_5";
tbx_versions(5) = ["1.0" "2.0"];
tbx_names(6) = "toolbox_6";
tbx_versions(6) = ["1.0"];
alldesc=[];
if isdir(main_dir + "/scene10/") then
rmdir(main_dir + "/scene10/");
end
mkdir(main_dir + "/scene10/");
mkdir(main_dir + "/scene10/toolboxes/");
mkdir(main_dir + "/scene10/TOOLBOXES/");
mkdir(main_dir + "/scene10/TOOLBOXES/32/");
mkdir(main_dir + "/scene10/TOOLBOXES/64/");
tbx_names = tbx_names + "V6";
for kn=1:size(tbx_names, "*")
for kv=1:size(tbx_versions(kn), "*")
tbxdir = main_dir + "/scene10/toolboxes/" + tbx_names(kn) + "/" + tbx_versions(kn)(kv);
mkdir(tbxdir);
cd(tbxdir)
rev= "1"
if tbx_names(kn)=="toolbox_5V6" & tbx_versions(kn)(kv) =="1.0" then
ext = "x86_64.linux.tar.gz";
elseif tbx_names(kn)=="toolbox_1V6" & tbx_versions(kn)(kv) =="1.0" then
ext = "x86_64.linux.tar.gz";
else
ext = "zip";
end
binaryUrl = "http://atoms.scilab.org/toolboxes/" +tbx_names(kn) + "/" + tbx_versions(kn)(kv) + "/files/" + tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-"+rev+".bin." + ext;
getURL("http://atoms.scilab.org/toolboxes/" +tbx_names(kn)+ "/" + tbx_versions(kn)(kv) + "/DESCRIPTION.txt", "DESCRIPTION")
newdesc = mgetl("DESCRIPTION");
// Specific case for toolbox_6V6 reorder dependencies
if tbx_names(kn)=="toolbox_6V6" & tbx_versions(kn)(kv) =="1.0" then
idx = grep(newdesc, "Depends: >= toolbox_2V6 2.0");
newdesc(idx) = "Depends: ~ toolbox_1V6 any"
newdesc(idx+1) = " >= toolbox_2V6 2.0"
end
alldesc = [alldesc;newdesc];
alldesc = [alldesc;""; "linux64Name: " + tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-" + rev + ".bin." + ext];
alldesc = [alldesc;""; "PackagingVersion: " + rev];
alldesc = [alldesc;""; "linux64Url: " + strsubst(binaryUrl, "http://atoms.scilab.org/", "http://scene10.6.0.test.atoms.scilab.org/")];
//alldesc = [alldesc;""; "linux64Sha1: "];
//alldesc = [alldesc;""; "linux64Size: "];
mkdir("files");
cd("files");
unix("wget http://atoms.scilab.org/toolboxes/" +tbx_names(kn) + "/" + tbx_versions(kn)(kv) + "/files/" + tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-" + rev + ".bin." + ext)
alldesc = [alldesc;""; "linux64Md5: " + getmd5(tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-" + rev + ".bin." + ext)];
alldesc = [alldesc;""; "// ============================================================================="];
cd(main_dir);
end
end
cd(main_dir + "/scene10/TOOLBOXES/64/")
mputl(alldesc, "linux")
unix("gzip linux")
// Add a check on zip files to be sure they are valid zip files
// file `find . -name "*.zip"`
// file `find . -name "*.gz"`
//scp -r * web@pianosa.inria.fr:/home/web/scene10.6.0.test.atoms.scilab.org/
//test_run atoms atomsAutoloadAdd
//test_run atoms atomsAutoloadDel
//test_run atoms atomsRemoveList
//test_run atoms atomsShow
//atomsDepTreeShow.tst (needs scene 11)
//atomsInstallList.tst (needs scene 11)
//atomsInstall.tst (needs toolbox 7)
//atomsRepositoryAdd.tst (needs scene 11)
//atomsRepositoryDel.tst (needs scene 11)
//atomsUpdate.tst (needs scene 11)
exit
scene11.sce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
main_dir = get_absolute_file_path("scene11.sce");
// Based on scene11.test.atoms.scilab.org:
// In toolboxes directory: find . -name DESCRIPTION | sort
//./toolbox_1/1.0/DESCRIPTION
//./toolbox_2/1.0/DESCRIPTION
//./toolbox_2/2.0/DESCRIPTION
//./toolbox_2/2.1/DESCRIPTION
//./toolbox_3/1.0/DESCRIPTION
//./toolbox_4/1.0/DESCRIPTION
//./toolbox_4/1.1/DESCRIPTION
//./toolbox_5/1.0/DESCRIPTION
//./toolbox_5/2.0/DESCRIPTION
//./toolbox_6/1.0/DESCRIPTION
tbx_names = [];
tbx_versions = list();
tbx_names(1) = "toolbox_1";
tbx_versions(1) = ["1.0"];
tbx_names(2) = "toolbox_2";
tbx_versions(2) = ["1.0" "2.0" "2.1"];
tbx_names(3) = "toolbox_3";
tbx_versions(3) = ["1.0"];
tbx_names(4) = "toolbox_4";
tbx_versions(4) = ["1.0" "1.1"];
tbx_names(5) = "toolbox_5";
tbx_versions(5) = ["1.0" "2.0"];
tbx_names(6) = "toolbox_6";
tbx_versions(6) = ["1.0"];
alldesc=[];
if isdir(main_dir + "/scene11/") then
rmdir(main_dir + "/scene11/");
end
mkdir(main_dir + "/scene11/");
mkdir(main_dir + "/scene11/toolboxes/");
mkdir(main_dir + "/scene11/TOOLBOXES/");
mkdir(main_dir + "/scene11/TOOLBOXES/32/");
mkdir(main_dir + "/scene11/TOOLBOXES/64/");
tbx_names = tbx_names + "V6";
for kn=1:size(tbx_names, "*")
for kv=1:size(tbx_versions(kn), "*")
tbxdir = main_dir + "/scene11/toolboxes/" + tbx_names(kn) + "/" + tbx_versions(kn)(kv);
mkdir(tbxdir);
cd(tbxdir)
rev= "1"
if tbx_names(kn)=="toolbox_5V6" & tbx_versions(kn)(kv) =="1.0" then
ext = "x86_64.linux.tar.gz";
elseif tbx_names(kn)=="toolbox_1V6" & tbx_versions(kn)(kv) =="1.0" then
ext = "x86_64.linux.tar.gz";
else
ext = "zip";
end
binaryUrl = "http://atoms.scilab.org/toolboxes/" +tbx_names(kn) + "/" + tbx_versions(kn)(kv) + "/files/" + tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-"+rev+".bin." + ext;
getURL("http://atoms.scilab.org/toolboxes/" +tbx_names(kn)+ "/" + tbx_versions(kn)(kv) + "/DESCRIPTION.txt", "DESCRIPTION")
newdesc = mgetl("DESCRIPTION");
// Specific case for toolbox_6V6 reorder dependencies
if tbx_names(kn)=="toolbox_6V6" & tbx_versions(kn)(kv) =="1.0" then
idx = grep(newdesc, "Depends: >= toolbox_2V6 2.0");
newdesc(idx) = "Depends: ~ toolbox_1V6 any"
newdesc(idx+1) = " >= toolbox_2V6 2.0"
end
alldesc = [alldesc;newdesc];
alldesc = [alldesc;""; "linux64Name: " + tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-" + rev + ".bin." + ext];
alldesc = [alldesc;""; "PackagingVersion: " + rev];
alldesc = [alldesc;""; "linux64Url: " + strsubst(binaryUrl, "http://atoms.scilab.org/", "http://scene11.6.0.test.atoms.scilab.org/")];
//alldesc = [alldesc;""; "linux64Sha1: "];
//alldesc = [alldesc;""; "linux64Size: "];
mkdir("files");
cd("files");
unix("wget http://atoms.scilab.org/toolboxes/" +tbx_names(kn) + "/" + tbx_versions(kn)(kv) + "/files/" + tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-" + rev + ".bin." + ext)
alldesc = [alldesc;""; "linux64Md5: " + getmd5(tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-" + rev + ".bin." + ext)];
alldesc = [alldesc;""; "// ============================================================================="];
cd(main_dir);
end
end
cd(main_dir + "/scene11/TOOLBOXES/64/")
mputl(alldesc, "linux")
unix("gzip linux")
// Add a check on zip files to be sure they are valid zip files
// file `find . -name "*.zip"`
// file `find . -name "*.gz"`
//scp -r * web@pianosa.inria.fr:/home/web/scene11.6.0.test.atoms.scilab.org/
//test_run atoms atomsRepositoryAdd
//test_run atoms atomsRepositoryDel
//test_run atoms atomsDepTreeShow
//atomsInstallList.tst (needs scene 11)
//atomsUpdate.tst (needs scene 11)
//atomsInstall.tst (needs toolbox 7)
exit
scene12.sce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
main_dir = get_absolute_file_path("scene12.sce");
// Based on scene12.test.atoms.scilab.org:
// In toolboxes directory: find . -name DESCRIPTION | sort
//./toolbox_1/1.0/DESCRIPTION
//./toolbox_2/1.0/DESCRIPTION
//./toolbox_2/2.0/DESCRIPTION
//./toolbox_2/2.1/DESCRIPTION
//./toolbox_3/1.0/DESCRIPTION
//./toolbox_4/1.0/DESCRIPTION
//./toolbox_4/1.1/DESCRIPTION
//./toolbox_5/1.0/DESCRIPTION
//./toolbox_5/2.0/DESCRIPTION
//./toolbox_6/1.0/DESCRIPTION
tbx_names = [];
tbx_versions = list();
tbx_names(1) = "toolbox_1";
tbx_versions(1) = ["1.0"];
tbx_names(2) = "toolbox_2";
tbx_versions(2) = ["1.0" "2.0" "2.1"];
tbx_names(3) = "toolbox_3";
tbx_versions(3) = ["1.0"];
tbx_names(4) = "toolbox_4";
tbx_versions(4) = ["1.0" "1.1"];
tbx_names(5) = "toolbox_5";
tbx_versions(5) = ["1.0" "2.0"];
tbx_names(6) = "toolbox_6";
tbx_versions(6) = ["1.0"];
alldesc=[];
if isdir(main_dir + "/scene12/") then
rmdir(main_dir + "/scene12/");
end
mkdir(main_dir + "/scene12/");
mkdir(main_dir + "/scene12/toolboxes/");
mkdir(main_dir + "/scene12/TOOLBOXES/");
mkdir(main_dir + "/scene12/TOOLBOXES/32/");
mkdir(main_dir + "/scene12/TOOLBOXES/64/");
tbx_names = tbx_names + "V6";
for kn=1:size(tbx_names, "*")
for kv=1:size(tbx_versions(kn), "*")
tbxdir = main_dir + "/scene12/toolboxes/" + tbx_names(kn) + "/" + tbx_versions(kn)(kv);
mkdir(tbxdir);
cd(tbxdir)
rev= "1"
if tbx_names(kn)=="toolbox_5V6" & tbx_versions(kn)(kv) =="1.0" then
ext = "x86_64.linux.tar.gz";
elseif tbx_names(kn)=="toolbox_1V6" & tbx_versions(kn)(kv) =="1.0" then
ext = "x86_64.linux.tar.gz";
else
ext = "zip";
end
binaryUrl = "http://atoms.scilab.org/toolboxes/" +tbx_names(kn) + "/" + tbx_versions(kn)(kv) + "/files/" + tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-"+rev+".bin." + ext;
getURL("http://atoms.scilab.org/toolboxes/" +tbx_names(kn)+ "/" + tbx_versions(kn)(kv) + "/DESCRIPTION.txt", "DESCRIPTION")
alldesc = [alldesc;mgetl("DESCRIPTION")];
alldesc = [alldesc;""; "linux64Name: " + tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-" + rev + ".bin." + ext];
alldesc = [alldesc;""; "PackagingVersion: " + rev];
alldesc = [alldesc;""; "linux64Url: " + strsubst(binaryUrl, "http://atoms.scilab.org/", "http://scene12.6.0.test.atoms.scilab.org/")];
//alldesc = [alldesc;""; "linux64Sha1: "];
//alldesc = [alldesc;""; "linux64Size: "];
mkdir("files");
cd("files");
unix("wget http://atoms.scilab.org/toolboxes/" +tbx_names(kn) + "/" + tbx_versions(kn)(kv) + "/files/" + tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-" + rev + ".bin." + ext)
alldesc = [alldesc;""; "linux64Md5: " + getmd5(tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-" + rev + ".bin." + ext)];
alldesc = [alldesc;""; "// ============================================================================="];
cd(main_dir);
end
end
cd(main_dir + "/scene12/TOOLBOXES/64/")
mputl(alldesc, "linux")
unix("gzip linux")
// Add a check on zip files to be sure they are valid zip files
// file `find . -name "*.zip"`
// file `find . -name "*.gz"`
//scp -r * web@pianosa.inria.fr:/home/web/scene12.6.0.test.atoms.scilab.org/
//test_run atoms atomsRepositoryAdd
//test_run atoms atomsRepositoryDel
//test_run atoms atomsDepTreeShow
//test_run atoms atomsUpdate
//atomsInstallList.tst (needs scene 11)
//atomsInstall.tst (needs toolbox 7)
exit
tbx.sce
33
44
55
6
7
68
79
810
......
1214
1315
1416
17
1518
1619
1720
21
1822
1923
2024
25
26
27
28
29
tbx_names(1) = "toolbox_1";
tbx_versions(1) = ["1.0" "2.0"];
//tbx_versions(1) = ["2.0"];
tbx_names(2) = "toolbox_2";
tbx_versions(2) = ["1.0" "2.0" "2.1"];
tbx_names(4) = "toolbox_4";
tbx_versions(4) = ["1.0" "1.1"];
//tbx_versions(4) = ["1.0"];
tbx_names(5) = "toolbox_5";
tbx_versions(5) = ["1.0" "1.1" "1.2" "2.0"];
//tbx_versions(5) = ["1.0" "2.0"];
tbx_names(6) = "toolbox_6";
tbx_versions(6) = ["1.0"];
tbx_names(7) = "toolbox_7";
tbx_versions(7) = ["1.0"];
toolbox_1/1.0/.gitignore
2121
2222
2323
24
2425
2526
2627
macros/names
sci_gateway/cleaner_gateway.sce
sci_gateway/c/libtoolbox_1_c.so
sci_gateway/c/libtoolbox_1_c.c
sci_gateway/cpp/libtoolbox_1_cpp.c
sci_gateway/cpp/libtoolbox_1_cpp.so
sci_gateway/c/libtoolbox_1_c.cpp
toolbox_7/1.0/DESCRIPTION
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Toolbox: toolbox_7
Title: Toolbox Test 7
Summary: To test the Atoms system
Version: 1.0
Author: Pierre MARECHAL
Maintainer: Pierre Marechal <pierre.marechal@scilab.org>
Category: Tests
Entity: Consortium Scilab - DIGITEO
WebSite: http://www.scilab.org
URL: http://test.atoms.scilab.org/toolboxes/toolbox_7/1.0
License: CeCILL
ScilabVersion: ~
Depends:
Date: 2010-02-01
Description: Test the Atoms system
It contains 4 functions :
- t7_version()
- t7_function1()
- t7_function2()
- t7_function3()
toolbox_7/1.0/builder.sce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2009 - DIGITEO - Pierre MARECHAL <pierre.marechal@scilab.org>
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
mode(-1);
lines(0);
// ====================================================================
if ~with_module('development_tools') then
error(msprintf(gettext("%s module not installed."),'development_tools'));
end
// ====================================================================
TOOLBOX_NAME = "toolbox_7";
TOOLBOX_TITLE = "Toolbox Test Number 7";
// ====================================================================
toolbox_dir = get_absolute_file_path("builder.sce");
tbx_builder_macros(toolbox_dir);
tbx_builder_help(toolbox_dir);
tbx_build_loader(TOOLBOX_NAME, toolbox_dir);
clear toolbox_dir TOOLBOX_NAME TOOLBOX_TITLE;
// ====================================================================
toolbox_7/1.0/changelog.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
changelog of the toolbox_skeleton
Please update this file to describe the modifications of your toolbox
A format of change log could be:
toolbox_skeleton (version)
* Change 1
* Change 2
* ...
-- Author <author@email.com> Tue, 18 Dec 2007 14:50:02 +0100
toolbox_7/1.0/etc/toolbox_7.start
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2010 - DIGITEO - Pierre MARECHAL <pierre.marechal@scilab.org>
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
mprintf("Start Toolbox 7\n");
etc_tlbx = get_absolute_file_path("toolbox_7.start");
etc_tlbx = getshortpathname(etc_tlbx);
root_tlbx = strncpy( etc_tlbx, length(etc_tlbx)-length('\etc\') );
//Load functions library
// =============================================================================
pathmacros = pathconvert( root_tlbx ) + 'macros'+ filesep();
mprintf("\tLoad macros\n");
toolbox_7lib = lib(pathmacros);
clear pathmacros;
// Load and add help chapter
// =============================================================================
if or(getscilabmode() == ["NW";"STD"]) then
mprintf("\tLoad help\n");
path_addchapter = pathconvert(root_tlbx+"/jar");
if ( isdir(path_addchapter) <> [] ) then
add_help_chapter("Toolbox Test Number 7", path_addchapter, %F);
clear add_help_chapter path_addchapter
end
end
// =============================================================================
clear root_tlbx;
clear etc_tlbx;
toolbox_7/1.0/help/builder_help.sce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2009 - DIGITEO - Pierre MARECHAL <pierre.marechal@scilab.org>
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
help_dir = get_absolute_file_path('builder_help.sce');
tbx_builder_help_lang("en_US", help_dir);
tbx_builder_help_lang("fr_FR", help_dir);
clear help_dir;
toolbox_7/1.0/help/en_US/build_help.sce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2009 - DIGITEO - Pierre MARECHAL <pierre.marechal@scilab.org>
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
help_lang_dir = get_absolute_file_path('build_help.sce');
tbx_build_help(TOOLBOX_TITLE, help_lang_dir);
clear help_lang_dir;
toolbox_7/1.0/help/en_US/t7_function1.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?xml version="1.0" encoding="UTF-8"?>
<!--
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
* Copyright (C) 2009 - DIGITEO - Pierre MARECHAL <pierre.marechal@scilab.org>
*
* This file must be used under the terms of the CeCILL.
* This source file is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at
* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
*
-->
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="t1_function1" xml:lang="en">
<info>
<pubdate>2009-03-26 15:00:00 +0100</pubdate>
</info>
<refnamediv>
<refname>t1_function1</refname>
<refpurpose>t1_function1</refpurpose>
</refnamediv>
<refsynopsisdiv>
<title>Calling Sequence</title>
<synopsis>t1_function1()</synopsis>
</refsynopsisdiv>
<refsection>
<title>Description</title>
<para>Just disp this message "Toolbox 1 -&gt; Function 1"</para>
</refsection>
<refsection>
<title>Examples</title>
<programlisting role="example">t1_function1()</programlisting>
</refsection>
<refsection>
<title>See Also</title>
<simplelist type="inline">
<member>
<link linkend="t1_function2">t1_function2</link>
</member>
<member>
<link linkend="t1_function3">t1_function3</link>
</member>
</simplelist>
</refsection>
<refsection>
<title>Authors</title>
<simplelist type="vert">
<member>Pierre MARECHAL</member>
</simplelist>
</refsection>
</refentry>
toolbox_7/1.0/help/en_US/t7_function2.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?xml version="1.0" encoding="UTF-8"?>
<!--
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
* Copyright (C) 2009 - DIGITEO - Pierre MARECHAL <pierre.marechal@scilab.org>
*
* This file must be used under the terms of the CeCILL.
* This source file is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at
* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
*
-->
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="t1_function2" xml:lang="en">
<info>
<pubdate>2009-03-26 15:00:00 +0100</pubdate>
</info>
<refnamediv>
<refname>t1_function2</refname>
<refpurpose>t1_function2</refpurpose>
</refnamediv>
<refsynopsisdiv>
<title>Calling Sequence</title>
<synopsis>t1_function2()</synopsis>
</refsynopsisdiv>
<refsection>
<title>Description</title>
<para>Just disp this message "Toolbox 1 -&gt; Function 2"</para>
</refsection>
<refsection>
<title>Examples</title>
<programlisting role="example">t1_function2()</programlisting>
</refsection>
<refsection>
<title>See Also</title>
<simplelist type="inline">
<member>
<link linkend="t1_function1">t1_function1</link>
</member>
<member>
<link linkend="t1_function3">t1_function3</link>
</member>
</simplelist>
</refsection>
<refsection>
<title>Authors</title>
<simplelist type="vert">
<member>Pierre MARECHAL</member>
</simplelist>
</refsection>
</refentry>
toolbox_7/1.0/help/en_US/t7_function3.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?xml version="1.0" encoding="UTF-8"?>
<!--
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
* Copyright (C) 2009 - DIGITEO - Pierre MARECHAL <pierre.marechal@scilab.org>
*
* This file must be used under the terms of the CeCILL.
* This source file is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at
* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
*
-->
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="t1_function3" xml:lang="en">
<info>
<pubdate>2009-03-26 15:00:00 +0100</pubdate>
</info>
<refnamediv>
<refname>t1_function3</refname>
<refpurpose>t1_function3</refpurpose>
</refnamediv>
<refsynopsisdiv>
<title>Calling Sequence</title>
<synopsis>t1_function3()</synopsis>
</refsynopsisdiv>
<refsection>
<title>Description</title>
<para>Just disp this message "Toolbox 1 -&gt; Function 3"</para>
</refsection>
<refsection>
<title>Examples</title>
<programlisting role="example">t1_function3()</programlisting>
</refsection>
<refsection>
<title>See Also</title>
<simplelist type="inline">
<member>
<link linkend="t1_function1">t1_function1</link>
</member>
<member>
<link linkend="t1_function2">t1_function2</link>
</member>
</simplelist>
</refsection>
<refsection>
<title>Authors</title>
<simplelist type="vert">
<member>Pierre MARECHAL</member>
</simplelist>
</refsection>
</refentry>
toolbox_7/1.0/help/fr_FR/build_help.sce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2009 - DIGITEO - Pierre MARECHAL <pierre.marechal@scilab.org>
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
help_lang_dir = get_absolute_file_path('build_help.sce');
tbx_build_help(TOOLBOX_TITLE, help_lang_dir);
clear help_lang_dir;
toolbox_7/1.0/license.txt
1
2
3
4
5
6
7
8
Licence of "Toolbox 7"
Please update this file with the license terms (Copy and paste the license agreement).
Note that all the files of the toolbox_skeleton are released into the public domain.
Therefor, there is no limitation on the use of these files.
Please note that Scilab is released under the terms of the CeCILL license :
http://www.cecill.info/index.en.html
toolbox_7/1.0/macros/buildmacros.sce
1
2
tbx_build_macros(TOOLBOX_NAME, get_absolute_file_path('buildmacros.sce'));
clear tbx_build_macros;
toolbox_7/1.0/macros/t7_function1.sci
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2010 - DIGITEO - Pierre MARECHAL <pierre.marechal@scilab.org>
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
function str = t7_function1()
str = "Toolbox 7 -> Function 1";
endfunction
toolbox_7/1.0/macros/t7_function2.sci
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2010 - DIGITEO - Pierre MARECHAL <pierre.marechal@scilab.org>
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
function str = t7_function2()
str = "Toolbox 7 -> Function 2";
endfunction
toolbox_7/1.0/macros/t7_function3.sci
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2010 - DIGITEO - Pierre MARECHAL <pierre.marechal@scilab.org>
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
function str = t7_function3()
str = "Toolbox 7 -> Function 3";
endfunction
toolbox_7/1.0/macros/t7_version.sci
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2010 - DIGITEO - Pierre MARECHAL <pierre.marechal@scilab.org>
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
function str = t7_version()
str = "Toolbox 7 -> version = 1.0";
endfunction
toolbox_7/1.0/readme.txt
1
readme.txt of the toolbox_7
toolbox_7/1.0/tests/unit_tests/t7_common.txt
1
2
3
Toolbox 7 -> Function 1
Toolbox 7 -> Function 2
Toolbox 7 -> Function 3
toolbox_7/1.0/tests/unit_tests/t7_function1.dia.ref
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// =============================================================================
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2010 - DIGITEO - Pierre MARECHAL <pierre.marechal@scilab.org>
//
// This file is distributed under the same license as the Scilab package.
// =============================================================================
// <-- ATOMS MANDATORY -->
// <-- JVM NOT MANDATORY -->
this_toolbox_name = "toolbox_7";
atomsLoad(this_toolbox_name);
StartToolbox7
Loadmacros
Loadhelp
this_toolbox_path = atomsGetLoadedPath(this_toolbox_name);
t7_common = pathconvert(this_toolbox_path+"/tests/unit_tests/t7_common.txt",%F);
ref = [ "Toolbox 7 -> Function 1" ];
if or( t7_function1() <> ref ) then bugmes();quit;end
if isempty(fileinfo(t7_common)) then bugmes();quit;end
t7_common_mat = mgetl(t7_common);
if t7_function1()<>t7_common_mat(1) then bugmes();quit;end
toolbox_7/1.0/tests/unit_tests/t7_function1.tst
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// =============================================================================
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2010 - DIGITEO - Pierre MARECHAL <pierre.marechal@scilab.org>
//
// This file is distributed under the same license as the Scilab package.
// =============================================================================
// <-- ATOMS MANDATORY -->
// <-- JVM NOT MANDATORY -->
this_toolbox_name = "toolbox_7";
atomsLoad(this_toolbox_name);
this_toolbox_path = atomsGetLoadedPath(this_toolbox_name);
t7_common = pathconvert(this_toolbox_path+"/tests/unit_tests/t7_common.txt",%F);
ref = [ "Toolbox 7 -> Function 1" ];
if or( t7_function1() <> ref ) then pause, end
if isempty(fileinfo(t7_common)) then pause, end
t7_common_mat = mgetl(t7_common);
if t7_function1()<>t7_common_mat(1) then pause, end
toolbox_7/1.0/tests/unit_tests/t7_function2.dia.ref
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// =============================================================================
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2010 - DIGITEO - Pierre MARECHAL <pierre.marechal@scilab.org>
//
// This file is distributed under the same license as the Scilab package.
// =============================================================================
// <-- ATOMS MANDATORY -->
// <-- JVM NOT MANDATORY -->
this_toolbox_name = "toolbox_7";
atomsLoad(this_toolbox_name);
StartToolbox7
Loadmacros
Loadhelp
this_toolbox_path = atomsGetLoadedPath(this_toolbox_name);
t7_common = pathconvert(this_toolbox_path+"/tests/unit_tests/t7_common.txt",%F);
ref = [ "Toolbox 7 -> Function 2" ];
if or( t7_function2() <> ref ) then bugmes();quit;end
if isempty(fileinfo(t7_common)) then bugmes();quit;end
t7_common_mat = mgetl(t7_common);
if t7_function2()<>t7_common_mat(2) then bugmes();quit;end
toolbox_7/1.0/tests/unit_tests/t7_function2.tst
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// =============================================================================
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2010 - DIGITEO - Pierre MARECHAL <pierre.marechal@scilab.org>
//
// This file is distributed under the same license as the Scilab package.
// =============================================================================
// <-- ATOMS MANDATORY -->
// <-- JVM NOT MANDATORY -->
this_toolbox_name = "toolbox_7";
atomsLoad(this_toolbox_name);
this_toolbox_path = atomsGetLoadedPath(this_toolbox_name);
t7_common = pathconvert(this_toolbox_path+"/tests/unit_tests/t7_common.txt",%F);
ref = [ "Toolbox 7 -> Function 2" ];
if or( t7_function2() <> ref ) then pause, end
if isempty(fileinfo(t7_common)) then pause, end
t7_common_mat = mgetl(t7_common);
if t7_function2()<>t7_common_mat(2) then pause, end
toolbox_7/1.0/tests/unit_tests/t7_function3.dia.ref
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// =============================================================================
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2010 - DIGITEO - Pierre MARECHAL <pierre.marechal@scilab.org>
//
// This file is distributed under the same license as the Scilab package.
// =============================================================================
// <-- ATOMS MANDATORY -->
// <-- JVM NOT MANDATORY -->
this_toolbox_name = "toolbox_7";
atomsLoad(this_toolbox_name);
StartToolbox7
Loadmacros
Loadhelp
this_toolbox_path = atomsGetLoadedPath(this_toolbox_name);
t7_common = pathconvert(this_toolbox_path+"/tests/unit_tests/t7_common.txt",%F);
ref = [ "Toolbox 7 -> Function 3" ];
if or( t7_function3() <> ref ) then bugmes();quit;end
if isempty(fileinfo(t7_common)) then bugmes();quit;end
t7_common_mat = mgetl(t7_common);
if t7_function3()<>t7_common_mat(3) then bugmes();quit;end
toolbox_7/1.0/tests/unit_tests/t7_function3.tst
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// =============================================================================
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2010 - DIGITEO - Pierre MARECHAL <pierre.marechal@scilab.org>
//
// This file is distributed under the same license as the Scilab package.
// =============================================================================
// <-- ATOMS MANDATORY -->
// <-- JVM NOT MANDATORY -->
this_toolbox_name = "toolbox_7";
atomsLoad(this_toolbox_name);
this_toolbox_path = atomsGetLoadedPath(this_toolbox_name);
t7_common = pathconvert(this_toolbox_path+"/tests/unit_tests/t7_common.txt",%F);
ref = [ "Toolbox 7 -> Function 3" ];
if or( t7_function3() <> ref ) then pause, end
if isempty(fileinfo(t7_common)) then pause, end
t7_common_mat = mgetl(t7_common);
if t7_function3()<>t7_common_mat(3) then pause, end

Archive Download the corresponding diff file

Branches