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("autoload");
11 config_Verbose = atomsGetConfig("Verbose");
12 atomsSetConfig("autoload","False");
13 atomsSetConfig("Verbose" ,"True");
14 // Load the 1st scenario : See scene1.test.atoms.scilab.org.txt
15 // =============================================================================
16 atomsRepositorySetOfl("http://scene1.test.atoms.scilab.org");
17 atomsGetTOOLBOXES(%T);
18 // Install toolbox_5 & toolbox_3
19 // =============================================================================
20 atomsInstall("toolbox_5","user");
21 toolbox_5 (1.0) will be installed
22 toolbox_4 (1.0) will be installed
23 toolbox_2 (1.0) will be installed
24 toolbox_1 (1.0) will be installed
25 Installing toolbox_5 (1.0) ... success
26 Installing toolbox_4 (1.0) ... success
27 Installing toolbox_2 (1.0) ... success
28 Installing toolbox_1 (1.0) ... success
29 atomsInstall("toolbox_3","user");
30 toolbox_3 (1.0) will be installed
31 toolbox_2 (2.0) will be installed
32 toolbox_1 (1.0) is already installed and up-to-date
33 Installing toolbox_3 (1.0) ... success
34 Installing toolbox_2 (2.0) ... success
35 // -----------------------------------------------------------------------------
36 ref = [ "-" "U" "toolbox_1" "1.0" "user" ;
37 "-" "P" "toolbox_5" "1.0" "user" ;
38 "-" "P" "toolbox_4" "1.0" "user" ;
39 "-" "P" "toolbox_2" "1.0" "user" ;
40 "-" "P" "toolbox_3" "1.0" "user" ;
41 "-" "P" "toolbox_2" "2.0" "user" ];
42 if or(atomsRemoveList(["toolbox_1"] ,"user")<>ref) then bugmes();quit;end
43 if or(atomsRemoveList(["toolbox_1" "1.0"],"user")<>ref) then bugmes();quit;end
44 // -----------------------------------------------------------------------------
45 ref = [ "-" "U" "toolbox_2" "1.0" "user" ;
46 "-" "P" "toolbox_5" "1.0" "user" ;
47 "-" "P" "toolbox_4" "1.0" "user" ;
48 "~" "C" "toolbox_1" "1.0" "user" ];
49 if or(atomsRemoveList(["toolbox_2" "1.0"],"user")<>ref) then bugmes();quit;end
50 // -----------------------------------------------------------------------------
51 ref = [ "-" "U" "toolbox_2" "2.0" "user" ;
52 "-" "P" "toolbox_3" "1.0" "user" ;
53 "~" "C" "toolbox_1" "1.0" "user" ];
54 if or(atomsRemoveList(["toolbox_2" "2.0"],"user")<>ref) then bugmes();quit;end
55 // -----------------------------------------------------------------------------
56 ref = [ "-" "U" "toolbox_2" "2.0" "user" ;
57 "-" "U" "toolbox_2" "1.0" "user" ;
58 "-" "P" "toolbox_3" "1.0" "user" ;
59 "-" "C" "toolbox_1" "1.0" "user" ;
60 "-" "P" "toolbox_5" "1.0" "user" ;
61 "-" "P" "toolbox_4" "1.0" "user" ];
62 if or(atomsRemoveList(["toolbox_2"],"user")<>ref) then bugmes();quit;end
63 // -----------------------------------------------------------------------------
64 ref = [ "-" "U" "toolbox_2" "2.0" "user" ;
65 "-" "U" "toolbox_2" "1.0" "user" ;
66 "-" "U" "toolbox_4" "1.0" "user" ;
67 "-" "P" "toolbox_3" "1.0" "user" ;
68 "-" "C" "toolbox_1" "1.0" "user" ;
69 "-" "P" "toolbox_5" "1.0" "user" ];
70 if or(atomsRemoveList(["toolbox_2";"toolbox_4"],"user")<>ref) then bugmes();quit;end
71 // Remove toolbox_5 & toolbox_3
72 // =============================================================================
73 atomsRemove("toolbox_5","user");
74 toolbox_5 (1.0) will be removed
75 toolbox_4 (1.0) will be removed
76 toolbox_2 (1.0) will be removed
77 Removing toolbox_5 (1.0) ... success
78 Removing toolbox_4 (1.0) ... success
79 Removing toolbox_2 (1.0) ... success
80 atomsRemove("toolbox_3","user");
81 toolbox_3 (1.0) will be removed
82 toolbox_2 (2.0) will be removed
83 toolbox_1 (1.0) will be removed
84 Removing toolbox_3 (1.0) ... success
85 Removing toolbox_2 (2.0) ... success
86 Removing toolbox_1 (1.0) ... success
87 // Restore original values
88 // =============================================================================
89 atomsSetConfig("autoload",config_autoload);
90 atomsSetConfig("Verbose" ,config_Verbose);
91 atomsRepositorySetOfl("http://atoms.scilab.org");