atoms-tests

atoms-tests Commit Details

Date:2015-07-22 13:53:23 (2 years 10 months ago)
Author:Vincent Couvert
Branch:6.0
Commit:54c21b6b5959c1366182d8ff50aa1e33b4391faa
Parents: 113fc6d8807735cf1827cc5d693161c84d54a142
Message:Add management of Windows versions

Changes:
Mscene10.sce (4 diffs)
Mscene11.sce (4 diffs)
Mscene12.sce (3 diffs)

File differences

scene10.sce
4949
5050
5151
52
52
53
5354
54
55
56
5557
56
58
59
5760
5861
59
60
6162
6263
6364
......
6768
6869
6970
70
71
72
73
74
71
7572
73
74
75
76
77
7678
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
7992
8093
8194
......
8598
8699
87100
101
102
88103
89104
90105
......
92107
93108
94109
95
96
97
98
99
100
101
102
103
104
105
106
107
108110
rev= "1"
if tbx_names(kn)=="toolbox_5V6" & tbx_versions(kn)(kv) =="1.0" then
ext = "x86_64.linux.tar.gz";
extLinux = "x86_64.linux.tar.gz";
extWindows = "x64.windows.zip";
elseif tbx_names(kn)=="toolbox_1V6" & tbx_versions(kn)(kv) =="1.0" then
ext = "x86_64.linux.tar.gz";
extLinux = "x86_64.linux.tar.gz";
extWindows = "x64.windows.zip";
else
ext = "zip";
extLinux = "zip";
extWindows = "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
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");
// Linux 64
binaryUrl = "http://atoms.scilab.org/toolboxes/" +tbx_names(kn) + "/" + tbx_versions(kn)(kv) + "/files/" + tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-"+rev+".bin." + extLinux;
alldesc = [alldesc;""; "linux64Name: " + tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-" + rev + ".bin." + extLinux];
alldesc = [alldesc;""; "linux64Url: " + strsubst(binaryUrl, "http://atoms.scilab.org/", "http://scene10.6.0.test.atoms.scilab.org/")];
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)];
unix("wget http://atoms.scilab.org/toolboxes/" +tbx_names(kn) + "/" + tbx_versions(kn)(kv) + "/files/" + tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-" + rev + ".bin." + extLinux)
alldesc = [alldesc;""; "linux64Md5: " + getmd5(tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-" + rev + ".bin." + extLinux)];
cd("..");
// Windows 64
binaryUrl = "http://atoms.scilab.org/toolboxes/" +tbx_names(kn) + "/" + tbx_versions(kn)(kv) + "/files/" + tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-"+rev+".bin." + extWindows;
alldesc = [alldesc;""; "windows64Name: " + tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-" + rev + ".bin." + extWindows];
alldesc = [alldesc;""; "windows64Url: " + strsubst(binaryUrl, "http://atoms.scilab.org/", "http://scene10.6.0.test.atoms.scilab.org/")];
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." + extWindows)
alldesc = [alldesc;""; "windows64Md5: " + getmd5(tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-" + rev + ".bin." + extWindows)];
cd("..");
alldesc = [alldesc;""; "PackagingVersion: " + rev];
alldesc = [alldesc;""; "// ============================================================================="];
cd(main_dir);
cd(main_dir + "/scene10/TOOLBOXES/64/")
mputl(alldesc, "linux")
unix("gzip linux")
mputl(alldesc, "windows")
unix("gzip windows")
// Add a check on zip files to be sure they are valid zip files
// file `find . -name "*.zip"`
//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
5151
5252
5353
54
54
55
5556
56
57
58
5759
58
60
61
5962
6063
61
62
6364
6465
6566
......
6970
7071
7172
72
73
74
75
76
73
7774
75
76
77
78
79
7880
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
8194
8295
8396
......
87100
88101
89102
103
104
90105
91106
92107
......
94109
95110
96111
97
98
99
100
101
102
103
104
105112
rev= "1"
if tbx_names(kn)=="toolbox_5V6" & tbx_versions(kn)(kv) =="1.0" then
ext = "x86_64.linux.tar.gz";
extLinux = "x86_64.linux.tar.gz";
extWindows = "x64.windows.zip";
elseif tbx_names(kn)=="toolbox_1V6" & tbx_versions(kn)(kv) =="1.0" then
ext = "x86_64.linux.tar.gz";
extLinux = "x86_64.linux.tar.gz";
extWindows = "x64.windows.zip";
else
ext = "zip";
extLinux = "zip";
extWindows = "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
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");
// Linux 64
binaryUrl = "http://atoms.scilab.org/toolboxes/" +tbx_names(kn) + "/" + tbx_versions(kn)(kv) + "/files/" + tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-"+rev+".bin." + extLinux;
alldesc = [alldesc;""; "linux64Name: " + tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-" + rev + ".bin." + extLinux];
alldesc = [alldesc;""; "linux64Url: " + strsubst(binaryUrl, "http://atoms.scilab.org/", "http://scene11.6.0.test.atoms.scilab.org/")];
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)];
unix("wget http://atoms.scilab.org/toolboxes/" +tbx_names(kn) + "/" + tbx_versions(kn)(kv) + "/files/" + tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-" + rev + ".bin." + extLinux)
alldesc = [alldesc;""; "linux64Md5: " + getmd5(tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-" + rev + ".bin." + extLinux)];
cd("..");
// Windows 64
binaryUrl = "http://atoms.scilab.org/toolboxes/" +tbx_names(kn) + "/" + tbx_versions(kn)(kv) + "/files/" + tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-"+rev+".bin." + extWindows;
alldesc = [alldesc;""; "windows64Name: " + tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-" + rev + ".bin." + extWindows];
alldesc = [alldesc;""; "windows64Url: " + strsubst(binaryUrl, "http://atoms.scilab.org/", "http://scene11.6.0.test.atoms.scilab.org/")];
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." + extWindows)
alldesc = [alldesc;""; "windows64Md5: " + getmd5(tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-" + rev + ".bin." + extWindows)];
cd("..");
alldesc = [alldesc;""; "PackagingVersion: " + rev];
alldesc = [alldesc;""; "// ============================================================================="];
cd(main_dir);
cd(main_dir + "/scene11/TOOLBOXES/64/")
mputl(alldesc, "linux")
unix("gzip linux")
mputl(alldesc, "windows")
unix("gzip windows")
// Add a check on zip files to be sure they are valid zip files
// file `find . -name "*.zip"`
//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
5151
5252
5353
54
54
55
5556
56
57
58
5759
58
60
61
5962
6063
61
62
6364
64
65
66
67
68
69
65
66
67
68
69
70
71
72
73
7074
75
76
77
78
79
80
81
82
83
84
85
86
87
7188
72
73
89
90
91
92
93
7494
7595
7696
......
80100
81101
82102
103
104
83105
84106
85107
......
87109
88110
89111
90
91
92
93
94
95
96
97
98112
rev= "1"
if tbx_names(kn)=="toolbox_5V6" & tbx_versions(kn)(kv) =="1.0" then
ext = "x86_64.linux.tar.gz";
extLinux = "x86_64.linux.tar.gz";
extWindows = "x64.windows.zip";
elseif tbx_names(kn)=="toolbox_1V6" & tbx_versions(kn)(kv) =="1.0" then
ext = "x86_64.linux.tar.gz";
extLinux = "x86_64.linux.tar.gz";
extWindows = "x64.windows.zip";
else
ext = "zip";
extLinux = "zip";
extWindows = "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: "];
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];
mkdir("files");
// Linux 64
binaryUrl = "http://atoms.scilab.org/toolboxes/" +tbx_names(kn) + "/" + tbx_versions(kn)(kv) + "/files/" + tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-"+rev+".bin." + extLinux;
alldesc = [alldesc;""; "linux64Name: " + tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-" + rev + ".bin." + extLinux];
alldesc = [alldesc;""; "linux64Url: " + strsubst(binaryUrl, "http://atoms.scilab.org/", "http://scene12.6.0.test.atoms.scilab.org/")];
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." + extLinux)
alldesc = [alldesc;""; "linux64Md5: " + getmd5(tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-" + rev + ".bin." + extLinux)];
cd("..");
// Windows 64
binaryUrl = "http://atoms.scilab.org/toolboxes/" +tbx_names(kn) + "/" + tbx_versions(kn)(kv) + "/files/" + tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-"+rev+".bin." + extWindows;
alldesc = [alldesc;""; "windows64Name: " + tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-" + rev + ".bin." + extWindows];
alldesc = [alldesc;""; "windows64Url: " + strsubst(binaryUrl, "http://atoms.scilab.org/", "http://scene12.6.0.test.atoms.scilab.org/")];
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)];
unix("wget http://atoms.scilab.org/toolboxes/" +tbx_names(kn) + "/" + tbx_versions(kn)(kv) + "/files/" + tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-" + rev + ".bin." + extWindows)
alldesc = [alldesc;""; "windows64Md5: " + getmd5(tbx_names(kn) + "_" + tbx_versions(kn)(kv) + "-" + rev + ".bin." + extWindows)];
cd("..");
alldesc = [alldesc;""; "PackagingVersion: " + rev];
alldesc = [alldesc;""; "// ============================================================================="];
cd(main_dir);
cd(main_dir + "/scene12/TOOLBOXES/64/")
mputl(alldesc, "linux")
unix("gzip linux")
mputl(alldesc, "windows")
unix("gzip windows")
// Add a check on zip files to be sure they are valid zip files
// file `find . -name "*.zip"`
//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

Archive Download the corresponding diff file

Branches