All unit_tests now pass for ATOMS:
[scilab.git] / scilab / modules / atoms / tests / unit_tests / atomsIsInstalled.dia.ref
index 0d59afe..908c80c 100644 (file)
@@ -15,67 +15,66 @@ atomsSetConfig("autoloadAddAfterInstall","False");
 atomsSetConfig("Verbose" ,"False");
 // Load the 2nd scenario : See scene11.test.atoms.scilab.org.txt
 // =============================================================================
-atomsRepositorySetOfl("http://scene11.test.atoms.scilab.org");
-Scanning repository http://scene11.test.atoms.scilab.org ... Done
-
+atomsRepositorySetOfl("http://scene11.6.0.test.atoms.scilab.org");
+Scanning repository http://scene11.6.0.test.atoms.scilab.org ... Done
 // 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 bugmes();quit;end
-if execstr("atomsIsInstalled([""toolbox_1"",""1.0"";""toolbox_2"",""2.0""],[""1.0"";""2.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
+if execstr("atomsIsInstalled([""toolbox_1V6"",""1.0"";""toolbox_2V6"",""2.0""],[""1.0"";""2.0""]  )","errcatch") == 0 then bugmes();quit;end
+if execstr("atomsIsInstalled([""toolbox_1V6"",""1.0"";""toolbox_2V6"",""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 ~ atomsIsInstalled(["toolbox_1","1.0-1"]) then bugmes();quit;end
-if ~ atomsIsInstalled(["toolbox_2","2.0-1"]) then bugmes();quit;end
-if ~ atomsIsInstalled(["toolbox_2","2.1-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-1"],"allusers") then bugmes();quit;end
-if atomsIsInstalled(["toolbox_2","2.0-1"],"allusers") then bugmes();quit;end
-if atomsIsInstalled(["toolbox_2","2.1-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-1"],"user") then bugmes();quit;end
-if ~ atomsIsInstalled(["toolbox_2","2.0-1"],"user") then bugmes();quit;end
-if ~ atomsIsInstalled(["toolbox_2","2.1-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 ~ atomsIsInstalled(["toolbox_1","1.0-1"],"all") then bugmes();quit;end
-if ~ atomsIsInstalled(["toolbox_2","2.0-1"],"all") then bugmes();quit;end
-if ~ atomsIsInstalled(["toolbox_2","2.1-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
-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 bugmes();quit;end
+if ~ atomsIsInstalled("toolbox_2V6") then bugmes();quit;end
+if ~ atomsIsInstalled(["toolbox_1V6","1.0"]) then bugmes();quit;end
+if ~ atomsIsInstalled(["toolbox_2V6","2.0"]) then bugmes();quit;end
+if ~ atomsIsInstalled(["toolbox_2V6","2.1"]) then bugmes();quit;end
+if ~ atomsIsInstalled(["toolbox_1V6","1.0-1"]) then bugmes();quit;end
+if ~ atomsIsInstalled(["toolbox_2V6","2.0-1"]) then bugmes();quit;end
+if ~ atomsIsInstalled(["toolbox_2V6","2.1-1"]) then bugmes();quit;end
+if atomsIsInstalled(["toolbox_1V6","1.0"],"allusers") then bugmes();quit;end
+if atomsIsInstalled(["toolbox_2V6","2.0"],"allusers") then bugmes();quit;end
+if atomsIsInstalled(["toolbox_2V6","2.1"],"allusers") then bugmes();quit;end
+if atomsIsInstalled(["toolbox_1V6","1.0-1"],"allusers") then bugmes();quit;end
+if atomsIsInstalled(["toolbox_2V6","2.0-1"],"allusers") then bugmes();quit;end
+if atomsIsInstalled(["toolbox_2V6","2.1-1"],"allusers") then bugmes();quit;end
+if ~ atomsIsInstalled(["toolbox_1V6","1.0"],"user") then bugmes();quit;end
+if ~ atomsIsInstalled(["toolbox_2V6","2.0"],"user") then bugmes();quit;end
+if ~ atomsIsInstalled(["toolbox_2V6","2.1"],"user") then bugmes();quit;end
+if ~ atomsIsInstalled(["toolbox_1V6","1.0-1"],"user") then bugmes();quit;end
+if ~ atomsIsInstalled(["toolbox_2V6","2.0-1"],"user") then bugmes();quit;end
+if ~ atomsIsInstalled(["toolbox_2V6","2.1-1"],"user") then bugmes();quit;end
+if ~ atomsIsInstalled(["toolbox_1V6","1.0"],"all") then bugmes();quit;end
+if ~ atomsIsInstalled(["toolbox_2V6","2.0"],"all") then bugmes();quit;end
+if ~ atomsIsInstalled(["toolbox_2V6","2.1"],"all") then bugmes();quit;end
+if ~ atomsIsInstalled(["toolbox_1V6","1.0-1"],"all") then bugmes();quit;end
+if ~ atomsIsInstalled(["toolbox_2V6","2.0-1"],"all") then bugmes();quit;end
+if ~ atomsIsInstalled(["toolbox_2V6","2.1-1"],"all") then bugmes();quit;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 bugmes();quit;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 bugmes();quit;end
 if or( atomsIsInstalled(A,"user")     <> [ %F ; %F ; %F ; %T ; %T ; %T ; %T ; %T ; %T ; %T ; %T ; %T ]) then bugmes();quit;end
 if or( atomsIsInstalled(A,"allusers") <> [ %F ; %F ; %F ; %F ; %F ; %F ; %F ; %F ; %F ; %F ; %F ; %F ]) then bugmes();quit;end
@@ -84,12 +83,11 @@ if or( atomsIsInstalled(B,"user")     <> [ %F ; %F ; %F ; %T ; %T ; %T ; %T ; %T
 if or( atomsIsInstalled(B,"allusers") <> [ %F ; %F ; %F ; %F ; %F ; %F ; %F ; %F ; %F ; %F ; %F ; %F ]) then bugmes();quit;end
 // Remove toolbox_5 & toolbox_3
 // =============================================================================
-atomsRemove("toolbox_2","user");
+atomsRemove("toolbox_2V6","user");
 // no module should be installed
 if ~isempty( atomsGetInstalled() ) then bugmes();quit;end
 // Restore original values
 // =============================================================================
 atomsRestoreConfig(%T);
 atomsRepositorySetOfl(mgetl(SCI+"/modules/atoms/tests/unit_tests/repositories.orig"));
-Scanning repository http://atoms.scilab.org/5.5 ... Done
-
+Scanning repository http://atoms.scilab.org/6.0 ... Done