1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2009 - DIGITEO - Pierre MARECHAL <pierre.marechal@scilab.org>
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
7 // <-- JVM NOT MANDATORY -->
8 load("SCI/modules/atoms/macros/atoms_internals/lib");
9 // Do not use the autoload system
10 config_autoload = atomsGetConfig("autoloadAddAfterInstall");
11 config_Verbose = atomsGetConfig("Verbose");
12 atomsSetConfig("autoloadAddAfterInstall","False");
13 atomsSetConfig("Verbose" ,"False");
14 // Load the 2nd scenario : See scene2.test.atoms.scilab.org.txt
15 // =============================================================================
16 atomsRepositorySetOfl("http://scene1.test.atoms.scilab.org");
18 // Install toolbox N°2
19 atomsInstall(["toolbox_2","2.0"],"user");
21 if ~ atomsIsInstalled(["toolbox_1","1.0","user"]) then bugmes();quit;end
22 if ~ atomsIsInstalled(["toolbox_2","2.0","user"]) then bugmes();quit;end
23 atomsLoad(["toolbox_2","2.0","user"]);
32 if ~ atomsIsLoaded("toolbox_2") then bugmes();quit;end
33 if ~ atomsIsLoaded(["toolbox_2","2.0"]) then bugmes();quit;end
34 if ~ atomsIsLoaded(["toolbox_2","2.0","user"]) then bugmes();quit;end
35 if ~ atomsIsLoaded("toolbox_1") then bugmes();quit;end
36 if ~ atomsIsLoaded(["toolbox_1","1.0"]) then bugmes();quit;end
37 if ~ atomsIsLoaded(["toolbox_1","1.0","user"]) then bugmes();quit;end
38 if atomsIsLoaded(["toolbox_1","1.0","allusers"]) then bugmes();quit;end
39 if atomsIsLoaded(["toolbox_2","2.0","allusers"]) then bugmes();quit;end
40 A = [ "toolbox_1" "1.0" "user" ; ..
41 "toolbox_2" "2.0" "user" ; ..
42 "toolbox_2" "" "user" ; ..
43 "toolbox_2" "2.0" "" ; ..
44 "toolbox_2" "" "" ; ..
45 "toolbox_2" "2.0" "allusers" ];
46 if or(atomsIsLoaded(A) <> [%T ; %T ; %T ; %T ; %T ; %F]) then bugmes();quit;end
48 // =============================================================================
49 atomsRemove("toolbox_2","user");
50 the package toolbox_2 (2.0) is currently loaded, It will removed at next Scilab restart
51 the package toolbox_1 (1.0) is currently loaded, It will removed at next Scilab restart
52 // Restore original values
53 // =============================================================================
54 atomsSetConfig("autoloadAddAfterInstall",config_autoload);
55 atomsSetConfig("Verbose" ,config_Verbose);
56 atomsRepositorySetOfl("http://atoms.scilab.org");