ATOMS: Add tests
[scilab.git] / scilab / modules / atoms / tests / unit_tests / atomsInstall.tst
index 18a30ad..3f104e4 100644 (file)
@@ -17,8 +17,6 @@ config_autoload = atomsGetConfig("autoload");
 atomsSetConfig("autoload","False");
 
 
-
-
 // Install the toolbox 5
 // =============================================================================
 
@@ -37,38 +35,45 @@ atomsRemove("toolbox_5");
 // =============================================================================
 
 atomsInstall("toolbox_5","user");
-if ~atomsIsInstalled("toolbox_5",[],"user") then pause, end
-if ~atomsIsInstalled("toolbox_4",[],"user") then pause, end
-if ~atomsIsInstalled("toolbox_2",[],"user") then pause, end
-if ~atomsIsInstalled("toolbox_1",[],"user") then pause, end
-if atomsIsInstalled("toolbox_5",[],"allusers") then pause, end
-if atomsIsInstalled("toolbox_4",[],"allusers") then pause, end
-if atomsIsInstalled("toolbox_2",[],"allusers") then pause, end
-if atomsIsInstalled("toolbox_1",[],"allusers") then pause, end
+
+if ~atomsIsInstalled("toolbox_5","user") then pause, end
+if ~atomsIsInstalled("toolbox_4","user") then pause, end
+if ~atomsIsInstalled("toolbox_2","user") then pause, end
+if ~atomsIsInstalled("toolbox_1","user") then pause, end
+
+if atomsIsInstalled("toolbox_5","allusers") then pause, end
+if atomsIsInstalled("toolbox_4","allusers") then pause, end
+if atomsIsInstalled("toolbox_2","allusers") then pause, end
+if atomsIsInstalled("toolbox_1","allusers") then pause, end
+
 atomsRemove("toolbox_5","user");
-if atomsIsInstalled("toolbox_5",[],"user") then pause, end
-if atomsIsInstalled("toolbox_4",[],"user") then pause, end
-if atomsIsInstalled("toolbox_2",[],"user") then pause, end
-if atomsIsInstalled("toolbox_1",[],"user") then pause, end
 
+if atomsIsInstalled("toolbox_5","user") then pause, end
+if atomsIsInstalled("toolbox_4","user") then pause, end
+if atomsIsInstalled("toolbox_2","user") then pause, end
+if atomsIsInstalled("toolbox_1","user") then pause, end
 
 // Install the toolbox 5 (allusers section)
 // =============================================================================
 
 atomsInstall("toolbox_5","allusers");
-if ~atomsIsInstalled("toolbox_5",[],"allusers") then pause, end
-if ~atomsIsInstalled("toolbox_4",[],"allusers") then pause, end
-if ~atomsIsInstalled("toolbox_2",[],"allusers") then pause, end
-if ~atomsIsInstalled("toolbox_1",[],"allusers") then pause, end
-if atomsIsInstalled("toolbox_5",[],"user") then pause, end
-if atomsIsInstalled("toolbox_4",[],"user") then pause, end
-if atomsIsInstalled("toolbox_2",[],"user") then pause, end
-if atomsIsInstalled("toolbox_1",[],"user") then pause, end
+
+if ~atomsIsInstalled("toolbox_5","allusers") then pause, end
+if ~atomsIsInstalled("toolbox_4","allusers") then pause, end
+if ~atomsIsInstalled("toolbox_2","allusers") then pause, end
+if ~atomsIsInstalled("toolbox_1","allusers") then pause, end
+
+if atomsIsInstalled("toolbox_5","user") then pause, end
+if atomsIsInstalled("toolbox_4","user") then pause, end
+if atomsIsInstalled("toolbox_2","user") then pause, end
+if atomsIsInstalled("toolbox_1","user") then pause, end
+
 atomsRemove("toolbox_5","allusers");
-if atomsIsInstalled("toolbox_5",[],"allusers") then pause, end
-if atomsIsInstalled("toolbox_4",[],"allusers") then pause, end
-if atomsIsInstalled("toolbox_2",[],"allusers") then pause, end
-if atomsIsInstalled("toolbox_1",[],"allusers") then pause, end
+
+if atomsIsInstalled("toolbox_5","allusers") then pause, end
+if atomsIsInstalled("toolbox_4","allusers") then pause, end
+if atomsIsInstalled("toolbox_2","allusers") then pause, end
+if atomsIsInstalled("toolbox_1","allusers") then pause, end
 
 // Install the toolbox 5 (Both section)
 // =============================================================================
@@ -76,39 +81,41 @@ if atomsIsInstalled("toolbox_1",[],"allusers") then pause, end
 atomsInstall("toolbox_5","allusers");
 atomsInstall("toolbox_5","user");
 
-if ~atomsIsInstalled("toolbox_5",[],"allusers") then pause, end
-if ~atomsIsInstalled("toolbox_4",[],"allusers") then pause, end
-if ~atomsIsInstalled("toolbox_2",[],"allusers") then pause, end
-if ~atomsIsInstalled("toolbox_1",[],"allusers") then pause, end
-if ~atomsIsInstalled("toolbox_5",[],"user") then pause, end
-if ~atomsIsInstalled("toolbox_4",[],"user") then pause, end
-if ~atomsIsInstalled("toolbox_2",[],"user") then pause, end
-if ~atomsIsInstalled("toolbox_1",[],"user") then pause, end
+if ~atomsIsInstalled("toolbox_5","allusers") then pause, end
+if ~atomsIsInstalled("toolbox_4","allusers") then pause, end
+if ~atomsIsInstalled("toolbox_2","allusers") then pause, end
+if ~atomsIsInstalled("toolbox_1","allusers") then pause, end
+
+if ~atomsIsInstalled("toolbox_5","user") then pause, end
+if ~atomsIsInstalled("toolbox_4","user") then pause, end
+if ~atomsIsInstalled("toolbox_2","user") then pause, end
+if ~atomsIsInstalled("toolbox_1","user") then pause, end
 
 atomsRemove("toolbox_5","allusers");
-if atomsIsInstalled("toolbox_5",[],"allusers") then pause, end
-if atomsIsInstalled("toolbox_4",[],"allusers") then pause, end
-if atomsIsInstalled("toolbox_2",[],"allusers") then pause, end
-if atomsIsInstalled("toolbox_1",[],"allusers") then pause, end
-if ~atomsIsInstalled("toolbox_5",[],"user") then pause, end
-if ~atomsIsInstalled("toolbox_4",[],"user") then pause, end
-if ~atomsIsInstalled("toolbox_2",[],"user") then pause, end
-if ~atomsIsInstalled("toolbox_1",[],"user") then pause, end
+if atomsIsInstalled("toolbox_5","allusers") then pause, end
+if atomsIsInstalled("toolbox_4","allusers") then pause, end
+if atomsIsInstalled("toolbox_2","allusers") then pause, end
+if atomsIsInstalled("toolbox_1","allusers") then pause, end
+
+if ~atomsIsInstalled("toolbox_5","user") then pause, end
+if ~atomsIsInstalled("toolbox_4","user") then pause, end
+if ~atomsIsInstalled("toolbox_2","user") then pause, end
+if ~atomsIsInstalled("toolbox_1","user") then pause, end
 
 atomsInstall("toolbox_5","allusers");
 atomsRemove("toolbox_5","user");
 
-if atomsIsInstalled("toolbox_5",[],"user") then pause, end
-if atomsIsInstalled("toolbox_4",[],"user") then pause, end
-if atomsIsInstalled("toolbox_2",[],"user") then pause, end
-if atomsIsInstalled("toolbox_1",[],"user") then pause, end
-if ~atomsIsInstalled("toolbox_5",[],"allusers") then pause, end
-if ~atomsIsInstalled("toolbox_4",[],"allusers") then pause, end
-if ~atomsIsInstalled("toolbox_2",[],"allusers") then pause, end
-if ~atomsIsInstalled("toolbox_1",[],"allusers") then pause, end
+if atomsIsInstalled("toolbox_5","user") then pause, end
+if atomsIsInstalled("toolbox_4","user") then pause, end
+if atomsIsInstalled("toolbox_2","user") then pause, end
+if atomsIsInstalled("toolbox_1","user") then pause, end
 
-atomsRemove("toolbox_5","allusers");
+if ~atomsIsInstalled("toolbox_5","allusers") then pause, end
+if ~atomsIsInstalled("toolbox_4","allusers") then pause, end
+if ~atomsIsInstalled("toolbox_2","allusers") then pause, end
+if ~atomsIsInstalled("toolbox_1","allusers") then pause, end
 
+atomsRemove("toolbox_5","allusers");
 
 // Restore original values
 atomsSetConfig("autoload",config_autoload);