All unit_tests now pass for ATOMS:
[scilab.git] / scilab / modules / atoms / tests / unit_tests / atomsIsLoaded.tst
index 91d92a9..ea4aaff 100644 (file)
@@ -5,7 +5,9 @@
 //  This file is distributed under the same license as the Scilab package.
 // =============================================================================
 
-// <-- JVM NOT MANDATORY -->
+// <-- ENGLISH IMPOSED -->
+// <-- CLI SHELL MODE -->
+
 
 
 load("SCI/modules/atoms/macros/atoms_internals/lib");
@@ -18,45 +20,42 @@ atomsSaveConfig();
 atomsSetConfig("autoloadAddAfterInstall","False");
 atomsSetConfig("Verbose" ,"False");
 
-// Load the 2nd scenario : See scene11.test.atoms.scilab.org.txt
-// =============================================================================
-atomsRepositorySetOfl("http://scene10.test.atoms.scilab.org");
+//force official ATOMS repository
+atomsRepositorySetOfl(mgetl(SCI+"/modules/atoms/tests/unit_tests/repositories.orig"));
 
 // Install toolbox N°2
-atomsInstall(["toolbox_2","2.0"],"user");
+atomsInstall(["toolbox_2V6","2.1"],"user");
 
 // Check installation
-if ~ atomsIsInstalled(["toolbox_1","1.0","user"]) then pause, end
-if ~ atomsIsInstalled(["toolbox_2","2.0","user"]) then pause, end
+if ~ atomsIsInstalled(["toolbox_1V6","2.0","user"]) then pause, end
+if ~ atomsIsInstalled(["toolbox_2V6","2.1","user"]) then pause, end
 
-atomsLoad(["toolbox_2","2.0","user"]);
+atomsLoad(["toolbox_2V6","2.1","user"]);
 
-if ~ atomsIsLoaded("toolbox_2")                  then pause, end
-if ~ atomsIsLoaded(["toolbox_2","2.0"])          then pause, end
-if ~ atomsIsLoaded(["toolbox_2","2.0","user"])   then pause, end
+if ~ atomsIsLoaded("toolbox_2V6")                  then pause, end
+if ~ atomsIsLoaded(["toolbox_2V6","2.1"])          then pause, end
+if ~ atomsIsLoaded(["toolbox_2V6","2.1","user"])   then pause, end
 
-if ~ atomsIsLoaded("toolbox_1")                  then pause, end
-if ~ atomsIsLoaded(["toolbox_1","1.0"])          then pause, end
-if ~ atomsIsLoaded(["toolbox_1","1.0","user"])   then pause, end
+if ~ atomsIsLoaded("toolbox_1V6")                  then pause, end
+if ~ atomsIsLoaded(["toolbox_1V6","2.0"])          then pause, end
+if ~ atomsIsLoaded(["toolbox_1V6","2.0","user"])   then pause, end
 
-if atomsIsLoaded(["toolbox_1","1.0","allusers"]) then pause, end
-if atomsIsLoaded(["toolbox_2","2.0","allusers"]) then pause, end
+if atomsIsLoaded(["toolbox_1V6","2.0","allusers"]) then pause, end
+if atomsIsLoaded(["toolbox_2V6","2.1","allusers"]) then pause, end
 
-A = [ "toolbox_1" "1.0" "user"     ; ..
-      "toolbox_2" "2.0" "user"     ; ..
-      "toolbox_2" ""    "user"     ; ..
-      "toolbox_2" "2.0" ""         ; ..
-      "toolbox_2" ""    ""         ; ..
-      "toolbox_2" "2.0" "allusers" ];
+A = [ "toolbox_1V6" "2.0" "user"     ; ..
+"toolbox_2V6" "2.1" "user"     ; ..
+"toolbox_2V6" ""    "user"     ; ..
+"toolbox_2V6" "2.1" ""         ; ..
+"toolbox_2V6" ""    ""         ; ..
+"toolbox_2V6" "2.1" "allusers" ];
 
 if or(atomsIsLoaded(A) <> [%T ; %T ; %T ; %T ; %T ; %F]) then pause, end
 
 // Remove toolbox_2
 // =============================================================================
-atomsRemove("toolbox_2","user");
+atomsRemove("toolbox_2V6","user");
 
 // Restore original values
 // =============================================================================
 atomsRestoreConfig(%T);
-
-atomsRepositorySetOfl(mgetl(SCI+"/modules/atoms/tests/unit_tests/repositories.orig"));
\ No newline at end of file