All unit_tests now pass for ATOMS:
[scilab.git] / scilab / modules / atoms / tests / unit_tests / atomsIsInstalled.tst
index 74d6717..48e096e 100644 (file)
@@ -20,79 +20,79 @@ atomsSetConfig("Verbose" ,"False");
 
 // Load the 2nd scenario : See scene11.test.atoms.scilab.org.txt
 // =============================================================================
-atomsRepositorySetOfl("http://scene11.test.atoms.scilab.org");
+atomsRepositorySetOfl("http://scene11.6.0.test.atoms.scilab.org");
 
 // Install toolbox N°2
-atomsInstall(["toolbox_2","2.0";"toolbox_2","2.1"],"user");
+atomsInstall(["toolbox_2V6","2.0";"toolbox_2V6","2.1"],"user");
 
 // Check input parameters
 if execstr("atomsIsInstalled()","errcatch") == 0 then pause; end
-if execstr("atomsIsInstalled([""toolbox_1"",""1.0"";""toolbox_2"",""2.0""],[""1.0"";""2.0""]  )","errcatch") == 0 then pause, end
-if execstr("atomsIsInstalled([""toolbox_1"",""1.0"";""toolbox_2"",""2.0""],[""1.0"";""2.0""]  )","errcatch") == 0 then pause, end
+if execstr("atomsIsInstalled([""toolbox_1V6"",""1.0"";""toolbox_2V6"",""2.0""],[""1.0"";""2.0""]  )","errcatch") == 0 then pause, end
+if execstr("atomsIsInstalled([""toolbox_1V6"",""1.0"";""toolbox_2V6"",""2.0""],[""1.0"";""2.0""]  )","errcatch") == 0 then pause, end
 
 // Check output results
-if ~ atomsIsInstalled("toolbox_1") then pause, end
-if ~ atomsIsInstalled("toolbox_2") then pause, end
-
-if ~ atomsIsInstalled(["toolbox_1","1.0"]) then pause, end
-if ~ atomsIsInstalled(["toolbox_2","2.0"]) then pause, end
-if ~ atomsIsInstalled(["toolbox_2","2.1"]) then pause, end
-
-if ~ atomsIsInstalled(["toolbox_1","1.0-1"]) then pause, end
-if ~ atomsIsInstalled(["toolbox_2","2.0-1"]) then pause, end
-if ~ atomsIsInstalled(["toolbox_2","2.1-1"]) then pause, end
-
-if atomsIsInstalled(["toolbox_1","1.0"],"allusers") then pause, end
-if atomsIsInstalled(["toolbox_2","2.0"],"allusers") then pause, end
-if atomsIsInstalled(["toolbox_2","2.1"],"allusers") then pause, end
-
-if atomsIsInstalled(["toolbox_1","1.0-1"],"allusers") then pause, end
-if atomsIsInstalled(["toolbox_2","2.0-1"],"allusers") then pause, end
-if atomsIsInstalled(["toolbox_2","2.1-1"],"allusers") then pause, end
-
-if ~ atomsIsInstalled(["toolbox_1","1.0"],"user") then pause, end
-if ~ atomsIsInstalled(["toolbox_2","2.0"],"user") then pause, end
-if ~ atomsIsInstalled(["toolbox_2","2.1"],"user") then pause, end
-
-if ~ atomsIsInstalled(["toolbox_1","1.0-1"],"user") then pause, end
-if ~ atomsIsInstalled(["toolbox_2","2.0-1"],"user") then pause, end
-if ~ atomsIsInstalled(["toolbox_2","2.1-1"],"user") then pause, end
-
-if ~ atomsIsInstalled(["toolbox_1","1.0"],"all") then pause, end
-if ~ atomsIsInstalled(["toolbox_2","2.0"],"all") then pause, end
-if ~ atomsIsInstalled(["toolbox_2","2.1"],"all") then pause, end
-
-if ~ atomsIsInstalled(["toolbox_1","1.0-1"],"all") then pause, end
-if ~ atomsIsInstalled(["toolbox_2","2.0-1"],"all") then pause, end
-if ~ atomsIsInstalled(["toolbox_2","2.1-1"],"all") then pause, 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 pause, end
-
-A = ["toolbox_1","1.0" "allusers" ;
-"toolbox_2","2.0" "allusers" ;
-"toolbox_2","2.1" "allusers" ;
-"toolbox_1","1.0" "user"     ;
-"toolbox_2","2.0" "user"     ;
-"toolbox_2","2.1" "user"     ;
-"toolbox_1","1.0" "all"      ;
-"toolbox_2","2.0" "all"      ;
-"toolbox_2","2.1" "all"      ;
-"toolbox_1","1.0" ""         ;
-"toolbox_2","2.0" ""         ;
-"toolbox_2","2.1" ""         ];
-
-B = ["toolbox_1","1.0-1" "allusers" ;
-"toolbox_2","2.0-1" "allusers" ;
-"toolbox_2","2.1-1" "allusers" ;
-"toolbox_1","1.0-1" "user"     ;
-"toolbox_2","2.0-1" "user"     ;
-"toolbox_2","2.1-1" "user"     ;
-"toolbox_1","1.0-1" "all"      ;
-"toolbox_2","2.0-1" "all"      ;
-"toolbox_2","2.1-1" "all"      ;
-"toolbox_1","1.0-1" ""         ;
-"toolbox_2","2.0-1" ""         ;
-"toolbox_2","2.1-1" ""         ];
+if ~ atomsIsInstalled("toolbox_1V6") then pause, end
+if ~ atomsIsInstalled("toolbox_2V6") then pause, end
+
+if ~ atomsIsInstalled(["toolbox_1V6","1.0"]) then pause, end
+if ~ atomsIsInstalled(["toolbox_2V6","2.0"]) then pause, end
+if ~ atomsIsInstalled(["toolbox_2V6","2.1"]) then pause, end
+
+if ~ atomsIsInstalled(["toolbox_1V6","1.0-1"]) then pause, end
+if ~ atomsIsInstalled(["toolbox_2V6","2.0-1"]) then pause, end
+if ~ atomsIsInstalled(["toolbox_2V6","2.1-1"]) then pause, end
+
+if atomsIsInstalled(["toolbox_1V6","1.0"],"allusers") then pause, end
+if atomsIsInstalled(["toolbox_2V6","2.0"],"allusers") then pause, end
+if atomsIsInstalled(["toolbox_2V6","2.1"],"allusers") then pause, end
+
+if atomsIsInstalled(["toolbox_1V6","1.0-1"],"allusers") then pause, end
+if atomsIsInstalled(["toolbox_2V6","2.0-1"],"allusers") then pause, end
+if atomsIsInstalled(["toolbox_2V6","2.1-1"],"allusers") then pause, end
+
+if ~ atomsIsInstalled(["toolbox_1V6","1.0"],"user") then pause, end
+if ~ atomsIsInstalled(["toolbox_2V6","2.0"],"user") then pause, end
+if ~ atomsIsInstalled(["toolbox_2V6","2.1"],"user") then pause, end
+
+if ~ atomsIsInstalled(["toolbox_1V6","1.0-1"],"user") then pause, end
+if ~ atomsIsInstalled(["toolbox_2V6","2.0-1"],"user") then pause, end
+if ~ atomsIsInstalled(["toolbox_2V6","2.1-1"],"user") then pause, end
+
+if ~ atomsIsInstalled(["toolbox_1V6","1.0"],"all") then pause, end
+if ~ atomsIsInstalled(["toolbox_2V6","2.0"],"all") then pause, end
+if ~ atomsIsInstalled(["toolbox_2V6","2.1"],"all") then pause, end
+
+if ~ atomsIsInstalled(["toolbox_1V6","1.0-1"],"all") then pause, end
+if ~ atomsIsInstalled(["toolbox_2V6","2.0-1"],"all") then pause, end
+if ~ atomsIsInstalled(["toolbox_2V6","2.1-1"],"all") then pause, end
+
+if or( atomsIsInstalled(["toolbox_1V6","1.0";"toolbox_2V6","0.0";"toolbox_2V6","2.1";"toolbox_99V6","1.0"]) <> [%T;%F;%T;%F] )  then pause, end
+
+A = ["toolbox_1V6","1.0" "allusers" ;
+"toolbox_2V6","2.0" "allusers" ;
+"toolbox_2V6","2.1" "allusers" ;
+"toolbox_1V6","1.0" "user"     ;
+"toolbox_2V6","2.0" "user"     ;
+"toolbox_2V6","2.1" "user"     ;
+"toolbox_1V6","1.0" "all"      ;
+"toolbox_2V6","2.0" "all"      ;
+"toolbox_2V6","2.1" "all"      ;
+"toolbox_1V6","1.0" ""         ;
+"toolbox_2V6","2.0" ""         ;
+"toolbox_2V6","2.1" ""         ];
+
+B = ["toolbox_1V6","1.0-1" "allusers" ;
+"toolbox_2V6","2.0-1" "allusers" ;
+"toolbox_2V6","2.1-1" "allusers" ;
+"toolbox_1V6","1.0-1" "user"     ;
+"toolbox_2V6","2.0-1" "user"     ;
+"toolbox_2V6","2.1-1" "user"     ;
+"toolbox_1V6","1.0-1" "all"      ;
+"toolbox_2V6","2.0-1" "all"      ;
+"toolbox_2V6","2.1-1" "all"      ;
+"toolbox_1V6","1.0-1" ""         ;
+"toolbox_2V6","2.0-1" ""         ;
+"toolbox_2V6","2.1-1" ""         ];
 
 if or( atomsIsInstalled(A,"all")      <> [ %F ; %F ; %F ; %T ; %T ; %T ; %T ; %T ; %T ; %T ; %T ; %T ]) then pause, end
 if or( atomsIsInstalled(A,"user")     <> [ %F ; %F ; %F ; %T ; %T ; %T ; %T ; %T ; %T ; %T ; %T ; %T ]) then pause, end
@@ -104,7 +104,7 @@ if or( atomsIsInstalled(B,"allusers") <> [ %F ; %F ; %F ; %F ; %F ; %F ; %F ; %F
 
 // Remove toolbox_5 & toolbox_3
 // =============================================================================
-atomsRemove("toolbox_2","user");
+atomsRemove("toolbox_2V6","user");
 
 // no module should be installed
 if ~isempty( atomsGetInstalled() ) then pause, end