summaryrefslogtreecommitdiffstats
path: root/scilab/modules/atoms/tests/unit_tests/atomsLoad.dia.ref
blob: ff51b40e3914977587a5960e9e896548ba6d7c4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// =============================================================================
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2009 - DIGITEO - Pierre MARECHAL <pierre.marechal@scilab.org>
//
//  This file is distributed under the same license as the Scilab package.
// =============================================================================
// <-- CLI SHELL MODE -->
// <-- ENGLISH IMPOSED -->
load("SCI/modules/atoms/macros/atoms_internals/lib");
// We need a clean version
// =============================================================================
if ~isempty( atomsGetInstalled() ) then bugmes();quit;end
// If previous test did not end properly, restore, else backup config file
atomsRestoreConfig(%T);
atomsSaveConfig();
//force official ATOMS repository
atomsRepositorySetOfl(mgetl(SCI+"/modules/atoms/tests/unit_tests/repositories.orig"));
Scanning repository http://atoms.scilab.org/6.0 ... Done
// Set some parameters for the test
// =============================================================================
atomsSetConfig("autoloadAddAfterInstall","False");
atomsSetConfig("Verbose" ,"False");
// 1st test-case : Just install the toolbox 5
// =============================================================================
atomsInstall("toolbox_5V6");
// Check if the module is really installed
if ~ and( atomsIsInstalled( ["toolbox_5V6" "1.2" ; ..
                             "toolbox_4V6" "1.1" ; ..
                             "toolbox_2V6" "1.0" ; ..
                             "toolbox_1V6" "2.0"])) then bugmes();quit;end
atomsLoad("toolbox_5V6");
Start Toolbox 1
	Load macros
Start Toolbox 2
	Load macros
Start Toolbox 4
	Load macros
Start Toolbox 5
	Load macros
if ~ atomsIsLoaded("toolbox_5V6") then bugmes();quit;end
if ~ atomsIsLoaded(["toolbox_5V6" "1.2"]) then bugmes();quit;end
if ~ and(atomsIsLoaded(["toolbox_5V6"; ..
                        "toolbox_2V6"; ..
                        "toolbox_1V6"; ..
                        "toolbox_4V6"])) then bugmes();quit;end
if ~ and(atomsIsLoaded(["toolbox_5V6" "1.2"; ..
                        "toolbox_2V6" "1.0"; ..
                        "toolbox_1V6" "2.0"; ..
                        "toolbox_4V6" "1.1"])) then bugmes();quit;end
if or( t5_version() <> ["Toolbox 5 -> version = 1.2"; ..
                        "Toolbox 4 -> version = 1.1"; ..
                        "Toolbox 2 -> version = 1.0"; ..
                        "Toolbox 1 -> version = 2.0" ] ) then bugmes();quit;end
atomsRemove("toolbox_5V6");
	the package toolbox_5V6 (1.2-1) is currently loaded, It will be removed at next Scilab start
	the package toolbox_4V6 (1.1-1) is currently loaded, It will be removed at next Scilab start
	the package toolbox_2V6 (1.0-1) is currently loaded, It will be removed at next Scilab start
	the package toolbox_1V6 (2.0-1) is currently loaded, It will be removed at next Scilab start
// Restore original values
// =============================================================================
atomsRestoreConfig(%T);