// =============================================================================
// <-- JVM NOT MANDATORY -->
load("SCI/modules/atoms/macros/atoms_internals/lib");
-// Load the 2nd scenario : See scene1.test.atoms.scilab.org.txt
-atomsRepositorySetOfl("http://scene2.test.atoms.scilab.org");
// Do not use the autoload system
config_autoload = atomsGetConfig("autoload");
+config_Verbose = atomsGetConfig("Verbose");
atomsSetConfig("autoload","False");
+atomsSetConfig("Verbose" ,"True");
+// Load the 2nd scenario : See scene2.test.atoms.scilab.org.txt
+// =============================================================================
+atomsRepositorySetOfl("http://scene2.test.atoms.scilab.org");
+atomsGetTOOLBOXES(%T);
// Install toolbox N°2
-atomsInstall("toolbox_2 2.0");
-atomsInstall("toolbox_2 2.1");
-atomsInstall("toolbox_3 1.0");
+atomsInstall(["toolbox_2","2.0";"toolbox_2","2.1"],"user");
+ toolbox_2 (2.0) will be installed
+ toolbox_1 (1.0) will be installed
+ toolbox_2 (2.1) will be installed
+ Installing toolbox_2 (2.0) ... success
+ Installing toolbox_1 (1.0) ... success
+ Installing toolbox_2 (2.1) ... success
// Check input parameters
if execstr("atomsIsInstalled()","errcatch") == 0 then bugmes();quit;end
-if execstr("atomsIsInstalled([""toolbox_1"" ""toolbox_2""],[""1.0"";""2.0""] )","errcatch") == 0 then bugmes();quit;end
-if execstr("atomsIsInstalled([""toolbox_1"" ""toolbox_1""],[""1.0""] )","errcatch") == 0 then bugmes();quit;end
+if execstr("atomsIsInstalled([""toolbox_1"",""1.0"";""toolbox_2"",""2.0""],[""1.0"";""2.0""] )","errcatch") == 0 then bugmes();quit;end
// Check output results
if ~ atomsIsInstalled("toolbox_1") then bugmes();quit;end
if ~ atomsIsInstalled("toolbox_2") then bugmes();quit;end
-if ~ atomsIsInstalled("toolbox_1","1.0") then bugmes();quit;end
-if ~ atomsIsInstalled("toolbox_2","2.0") then bugmes();quit;end
-if ~ atomsIsInstalled("toolbox_2","2.1") then bugmes();quit;end
-if or( atomsIsInstalled(["toolbox_1" "toolbox_2" "toolbox_2" "toolbox_99"],["1.0" "0.0" "2.1" "1.0"] ) <> [%T %F %T %F] ) then bugmes();quit;end
-if or( atomsIsInstalled(["toolbox_1" "toolbox_2";"toolbox_2" "toolbox_99"],["1.0" "0.0";"2.1" "1.0"] ) <> [%T %F;%T %F] ) then bugmes();quit;end
-if or( atomsIsInstalled(["toolbox_1";"toolbox_2";"toolbox_2";"toolbox_99"],["1.0";"0.0";"2.1";"1.0"] ) <> [%T;%F;%T;%F] ) then bugmes();quit;end
-// remove test toolboxes
-atomsRemove("toolbox_2 2.0");
-atomsRemove("toolbox_2 2.1");
+if ~ atomsIsInstalled(["toolbox_1","1.0"]) then bugmes();quit;end
+if ~ atomsIsInstalled(["toolbox_2","2.0"]) then bugmes();quit;end
+if ~ atomsIsInstalled(["toolbox_2","2.1"]) then bugmes();quit;end
+if atomsIsInstalled(["toolbox_1","1.0"],"allusers") then bugmes();quit;end
+if atomsIsInstalled(["toolbox_2","2.0"],"allusers") then bugmes();quit;end
+if atomsIsInstalled(["toolbox_2","2.1"],"allusers") then bugmes();quit;end
+if ~ atomsIsInstalled(["toolbox_1","1.0"],"user") then bugmes();quit;end
+if ~ atomsIsInstalled(["toolbox_2","2.0"],"user") then bugmes();quit;end
+if ~ atomsIsInstalled(["toolbox_2","2.1"],"user") then bugmes();quit;end
+if ~ atomsIsInstalled(["toolbox_1","1.0"],"all") then bugmes();quit;end
+if ~ atomsIsInstalled(["toolbox_2","2.0"],"all") then bugmes();quit;end
+if ~ atomsIsInstalled(["toolbox_2","2.1"],"all") then bugmes();quit;end
+if or( atomsIsInstalled(["toolbox_1","1.0";"toolbox_2","0.0";"toolbox_2","2.1";"toolbox_99","1.0"]) <> [%T;%F;%T;%F] ) then bugmes();quit;end
+// Remove toolbox_5 & toolbox_3
+// =============================================================================
+atomsRemove("toolbox_2","user");
+ toolbox_2 (2.1) will be removed
+ toolbox_2 (2.0) will be removed
+ toolbox_1 (1.0) will be removed
+ Removing toolbox_2 (2.1) ... success
+ Removing toolbox_2 (2.0) ... success
+ Removing toolbox_1 (1.0) ... success
// Restore original values
+// =============================================================================
atomsSetConfig("autoload",config_autoload);
+atomsSetConfig("Verbose" ,config_Verbose);
atomsRepositorySetOfl("http://atoms.scilab.org");