summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAllan Cornet <allan.cornet@scilab.org>2007-08-23 13:47:26 +0000
committerAllan Cornet <allan.cornet@scilab.org>2007-08-23 13:47:26 +0000
commit56b32988648093322e1cbe9af3de7bcec767ae28 (patch)
tree63ee0d6ee74e72b67edcadd45ef05af80e82aeb8 /tests
parentb2c8d363b3b32b24570cbe0fe56ac4ad573aae3e (diff)
downloadscilab-56b32988648093322e1cbe9af3de7bcec767ae28.zip
scilab-56b32988648093322e1cbe9af3de7bcec767ae28.tar.gz
rename file
Diffstat (limited to 'tests')
-rw-r--r--tests/basic_tests/filesassociation.tst (renamed from tests/basic_tests/filesassocation.tst)58
-rw-r--r--tests/basic_tests/maketests.sci2
2 files changed, 33 insertions, 27 deletions
diff --git a/tests/basic_tests/filesassocation.tst b/tests/basic_tests/filesassociation.tst
index 7712152..d34bbfa 100644
--- a/tests/basic_tests/filesassocation.tst
+++ b/tests/basic_tests/filesassociation.tst
@@ -3,8 +3,6 @@
3// Tests files Association by Inno Setup in registry 3// Tests files Association by Inno Setup in registry
4// Tests for Default Installation 4// Tests for Default Installation
5//--------------------------------------------------------------------------------- 5//---------------------------------------------------------------------------------
6global LANGUAGE;
7//---------------------------------------------------------------------------------
8v=getversion('scilab'); 6v=getversion('scilab');
9 7
10if (v(4)<>0) then 8if (v(4)<>0) then
@@ -28,7 +26,8 @@ endfunction;
28PATHREF=convstr(getlongpathname(strsubst(SCI,'/','\'))+'\bin\wscilex.exe','u'); 26PATHREF=convstr(getlongpathname(strsubst(SCI,'/','\'))+'\bin\wscilex.exe','u');
29NBRTESTOK=0; 27NBRTESTOK=0;
30//--------------------------------------------------------------------------------- 28//---------------------------------------------------------------------------------
31SCE1DIA=winqueryreg('HKEY_CLASSES_ROOT','SCE_scilab_file\shell\open\command'); 29SCE_ENTRY = ".sce File (Scilab 5.x)";
30SCE1DIA=winqueryreg('HKEY_CLASSES_ROOT',SCE_ENTRY+'\shell\open\command');
32[PATHSCE1DIA,OPTIONSSCE1DIA]=GetPathAndOptionsInThisString(SCE1DIA); 31[PATHSCE1DIA,OPTIONSSCE1DIA]=GetPathAndOptionsInThisString(SCE1DIA);
33OPTIONSSCE1REF='""'+' -O ""%1""'; 32OPTIONSSCE1REF='""'+' -O ""%1""';
34if ( (PATHSCE1DIA==PATHREF) & (OPTIONSSCE1DIA==OPTIONSSCE1REF) ) then 33if ( (PATHSCE1DIA==PATHREF) & (OPTIONSSCE1DIA==OPTIONSSCE1REF) ) then
@@ -40,10 +39,10 @@ else
40end; 39end;
41clear SCE1DIA PATHSCE1DIA OPTIONSSCE1DIA OPTIONSSCE1REF; 40clear SCE1DIA PATHSCE1DIA OPTIONSSCE1DIA OPTIONSSCE1REF;
42//--------------------------------------------------------------------------------- 41//---------------------------------------------------------------------------------
43if (LANGUAGE=='fr') then 42if (getlanguage() == 'fr_FR') then
44 SCE2DIA=winqueryreg('HKEY_CLASSES_ROOT','SCE_scilab_file\shell\Executer avec '+VERSTRING+'\command'); 43 SCE2DIA=winqueryreg('HKEY_CLASSES_ROOT',SCE_ENTRY+'\shell\Executer avec '+VERSTRING+'\command');
45else 44else
46 SCE2DIA=winqueryreg('HKEY_CLASSES_ROOT','SCE_scilab_file\shell\Run with '+VERSTRING+'\command'); 45 SCE2DIA=winqueryreg('HKEY_CLASSES_ROOT',SCE_ENTRY+'\shell\Run with '+VERSTRING+'\command');
47end 46end
48[PATHSCE2DIA,OPTIONSSCE2DIA]=GetPathAndOptionsInThisString(SCE2DIA); 47[PATHSCE2DIA,OPTIONSSCE2DIA]=GetPathAndOptionsInThisString(SCE2DIA);
49OPTIONSSCE2REF='""'+' -X ""%1""'; 48OPTIONSSCE2REF='""'+' -X ""%1""';
@@ -56,7 +55,7 @@ else
56end; 55end;
57clear SCE2DIA PATHSCE2DIA OPTIONSSCE2DIA OPTIONSSCE2REF; 56clear SCE2DIA PATHSCE2DIA OPTIONSSCE2DIA OPTIONSSCE2REF;
58//--------------------------------------------------------------------------------- 57//---------------------------------------------------------------------------------
59SCE3DIA=winqueryreg('HKEY_CLASSES_ROOT','SCE_scilab_file\shell\print\command'); 58SCE3DIA=winqueryreg('HKEY_CLASSES_ROOT',SCE_ENTRY+'\shell\print\command');
60[PATHSCE3DIA,OPTIONSSCE3DIA]=GetPathAndOptionsInThisString(SCE3DIA); 59[PATHSCE3DIA,OPTIONSSCE3DIA]=GetPathAndOptionsInThisString(SCE3DIA);
61OPTIONSSCE3REF='""'+' -P ""%1""'; 60OPTIONSSCE3REF='""'+' -P ""%1""';
62if ( (PATHSCE3DIA==PATHREF) & (OPTIONSSCE3DIA==OPTIONSSCE3REF) ) then 61if ( (PATHSCE3DIA==PATHREF) & (OPTIONSSCE3DIA==OPTIONSSCE3REF) ) then
@@ -68,7 +67,8 @@ else
68end; 67end;
69clear SCE3DIA PATHSCE3DIA OPTIONSSCE3DIA OPTIONSSCE3REF; 68clear SCE3DIA PATHSCE3DIA OPTIONSSCE3DIA OPTIONSSCE3REF;
70//--------------------------------------------------------------------------------- 69//---------------------------------------------------------------------------------
71SCI1DIA=winqueryreg('HKEY_CLASSES_ROOT','SCI_scilab_file\shell\open\command'); 70SCI_ENTRY = ".sci File (Scilab 5.x)";
71SCI1DIA=winqueryreg('HKEY_CLASSES_ROOT',SCI_ENTRY+'\shell\open\command');
72[PATHSCI1DIA,OPTIONSSCI1DIA]=GetPathAndOptionsInThisString(SCI1DIA); 72[PATHSCI1DIA,OPTIONSSCI1DIA]=GetPathAndOptionsInThisString(SCI1DIA);
73OPTIONSSCI1REF='""'+' -O ""%1""'; 73OPTIONSSCI1REF='""'+' -O ""%1""';
74if ( (PATHSCI1DIA==PATHREF) & (OPTIONSSCI1DIA==OPTIONSSCI1REF) ) then 74if ( (PATHSCI1DIA==PATHREF) & (OPTIONSSCI1DIA==OPTIONSSCI1REF) ) then
@@ -80,10 +80,10 @@ else
80end; 80end;
81clear SCI1DIA PATHSCI1DIA OPTIONSSCI1DIA OPTIONSSCI1REF; 81clear SCI1DIA PATHSCI1DIA OPTIONSSCI1DIA OPTIONSSCI1REF;
82//--------------------------------------------------------------------------------- 82//---------------------------------------------------------------------------------
83if (LANGUAGE=='fr') then 83if (getlanguage() == 'fr_FR') then
84 SCI2DIA=winqueryreg('HKEY_CLASSES_ROOT','SCI_scilab_file\shell\Executer avec '+VERSTRING+'\command'); 84 SCI2DIA=winqueryreg('HKEY_CLASSES_ROOT',SCI_ENTRY+'\shell\Executer avec '+VERSTRING+'\command');
85else 85else
86 SCI2DIA=winqueryreg('HKEY_CLASSES_ROOT','SCI_scilab_file\shell\Run with '+VERSTRING+'\command'); 86 SCI2DIA=winqueryreg('HKEY_CLASSES_ROOT',SCI_ENTRY+'\shell\Run with '+VERSTRING+'\command');
87end 87end
88[PATHSCI2DIA,OPTIONSSCI2DIA]=GetPathAndOptionsInThisString(SCI2DIA); 88[PATHSCI2DIA,OPTIONSSCI2DIA]=GetPathAndOptionsInThisString(SCI2DIA);
89OPTIONSSCI2REF='""'+' -X ""%1""'; 89OPTIONSSCI2REF='""'+' -X ""%1""';
@@ -96,7 +96,7 @@ else
96end; 96end;
97clear SCI2DIA PATHSCI2DIA OPTIONSSCI2DIA OPTIONSSCI2REF; 97clear SCI2DIA PATHSCI2DIA OPTIONSSCI2DIA OPTIONSSCI2REF;
98//--------------------------------------------------------------------------------- 98//---------------------------------------------------------------------------------
99SCI3DIA=winqueryreg('HKEY_CLASSES_ROOT','SCI_scilab_file\shell\print\command'); 99SCI3DIA=winqueryreg('HKEY_CLASSES_ROOT',SCI_ENTRY+'\shell\print\command');
100[PATHSCI3DIA,OPTIONSSCI3DIA]=GetPathAndOptionsInThisString(SCI3DIA); 100[PATHSCI3DIA,OPTIONSSCI3DIA]=GetPathAndOptionsInThisString(SCI3DIA);
101OPTIONSSCI3REF='""'+' -P ""%1""'; 101OPTIONSSCI3REF='""'+' -P ""%1""';
102if ( (PATHSCI3DIA==PATHREF) & (OPTIONSSCI3DIA==OPTIONSSCI3REF) ) then 102if ( (PATHSCI3DIA==PATHREF) & (OPTIONSSCI3DIA==OPTIONSSCI3REF) ) then
@@ -108,7 +108,8 @@ else
108end; 108end;
109clear SCI3DIA PATHSCI3DIA OPTIONSSCI3DIA OPTIONSSCI3REF; 109clear SCI3DIA PATHSCI3DIA OPTIONSSCI3DIA OPTIONSSCI3REF;
110//--------------------------------------------------------------------------------- 110//---------------------------------------------------------------------------------
111TST1DIA=winqueryreg('HKEY_CLASSES_ROOT','TST_scilab_file\shell\open\command'); 111TST_ENTRY = ".tst File (Scilab 5.x)";
112TST1DIA=winqueryreg('HKEY_CLASSES_ROOT',TST_ENTRY+'\shell\open\command');
112[PATHTST1DIA,OPTIONSTST1DIA]=GetPathAndOptionsInThisString(TST1DIA); 113[PATHTST1DIA,OPTIONSTST1DIA]=GetPathAndOptionsInThisString(TST1DIA);
113OPTIONSTST1REF='""'+' -O ""%1""'; 114OPTIONSTST1REF='""'+' -O ""%1""';
114if ( (PATHTST1DIA==PATHREF) & (OPTIONSTST1DIA==OPTIONSTST1REF) ) then 115if ( (PATHTST1DIA==PATHREF) & (OPTIONSTST1DIA==OPTIONSTST1REF) ) then
@@ -120,10 +121,10 @@ else
120end; 121end;
121clear TST1DIA PATHTST1DIA OPTIONSTST1DIA OPTIONSTST1REF; 122clear TST1DIA PATHTST1DIA OPTIONSTST1DIA OPTIONSTST1REF;
122//--------------------------------------------------------------------------------- 123//---------------------------------------------------------------------------------
123if (LANGUAGE=='fr') then 124if (getlanguage() == 'fr_FR') then
124 TST2DIA=winqueryreg('HKEY_CLASSES_ROOT','TST_scilab_file\shell\Executer avec '+VERSTRING+'\command'); 125 TST2DIA=winqueryreg('HKEY_CLASSES_ROOT',TST_ENTRY+'\shell\Executer avec '+VERSTRING+'\command');
125else 126else
126 TST2DIA=winqueryreg('HKEY_CLASSES_ROOT','TST_scilab_file\shell\Run with '+VERSTRING+'\command'); 127 TST2DIA=winqueryreg('HKEY_CLASSES_ROOT',TST_ENTRY+'\shell\Run with '+VERSTRING+'\command');
127end 128end
128[PATHTST2DIA,OPTIONSTST2DIA]=GetPathAndOptionsInThisString(TST2DIA); 129[PATHTST2DIA,OPTIONSTST2DIA]=GetPathAndOptionsInThisString(TST2DIA);
129OPTIONSTST2REF='""'+' -X ""%1""'; 130OPTIONSTST2REF='""'+' -X ""%1""';
@@ -136,7 +137,7 @@ else
136end; 137end;
137clear TST2DIA PATHTST2DIA OPTIONSTST2DIA OPTIONSTST2REF; 138clear TST2DIA PATHTST2DIA OPTIONSTST2DIA OPTIONSTST2REF;
138//--------------------------------------------------------------------------------- 139//---------------------------------------------------------------------------------
139TST3DIA=winqueryreg('HKEY_CLASSES_ROOT','TST_scilab_file\shell\print\command'); 140TST3DIA=winqueryreg('HKEY_CLASSES_ROOT',TST_ENTRY+'\shell\print\command');
140[PATHTST3DIA,OPTIONSTST3DIA]=GetPathAndOptionsInThisString(TST3DIA); 141[PATHTST3DIA,OPTIONSTST3DIA]=GetPathAndOptionsInThisString(TST3DIA);
141OPTIONSTST3REF='""'+' -P ""%1""'; 142OPTIONSTST3REF='""'+' -P ""%1""';
142if ( (PATHTST3DIA==PATHREF) & (OPTIONSTST3DIA==OPTIONSTST3REF) ) then 143if ( (PATHTST3DIA==PATHREF) & (OPTIONSTST3DIA==OPTIONSTST3REF) ) then
@@ -148,7 +149,8 @@ else
148end; 149end;
149clear TST3DIA PATHTST3DIA OPTIONSTST3DIA OPTIONSTST3REF; 150clear TST3DIA PATHTST3DIA OPTIONSTST3DIA OPTIONSTST3REF;
150//--------------------------------------------------------------------------------- 151//---------------------------------------------------------------------------------
151DEM1DIA=winqueryreg('HKEY_CLASSES_ROOT','DEM_scilab_file\shell\open\command'); 152DEM_ENTRY = ".dem File (Scilab 5.x)";
153DEM1DIA=winqueryreg('HKEY_CLASSES_ROOT',DEM_ENTRY+'\shell\open\command');
152[PATHDEM1DIA,OPTIONSDEM1DIA]=GetPathAndOptionsInThisString(DEM1DIA); 154[PATHDEM1DIA,OPTIONSDEM1DIA]=GetPathAndOptionsInThisString(DEM1DIA);
153OPTIONSDEM1REF='""'+' -O ""%1""'; 155OPTIONSDEM1REF='""'+' -O ""%1""';
154if ( (PATHDEM1DIA==PATHREF) & (OPTIONSDEM1DIA==OPTIONSDEM1REF) ) then 156if ( (PATHDEM1DIA==PATHREF) & (OPTIONSDEM1DIA==OPTIONSDEM1REF) ) then
@@ -160,10 +162,10 @@ else
160end; 162end;
161clear DEM1DIA PATHDEM1DIA OPTIONSDEM1DIA OPTIONSDEM1REF; 163clear DEM1DIA PATHDEM1DIA OPTIONSDEM1DIA OPTIONSDEM1REF;
162//--------------------------------------------------------------------------------- 164//---------------------------------------------------------------------------------
163if (LANGUAGE=='fr') then 165if (getlanguage() == 'fr_FR') then
164 DEM2DIA=winqueryreg('HKEY_CLASSES_ROOT','DEM_scilab_file\shell\Executer avec '+VERSTRING+'\command'); 166 DEM2DIA=winqueryreg('HKEY_CLASSES_ROOT',DEM_ENTRY+'\shell\Executer avec '+VERSTRING+'\command');
165else 167else
166 DEM2DIA=winqueryreg('HKEY_CLASSES_ROOT','DEM_scilab_file\shell\Run with '+VERSTRING+'\command'); 168 DEM2DIA=winqueryreg('HKEY_CLASSES_ROOT',DEM_ENTRY+'\shell\Run with '+VERSTRING+'\command');
167end 169end
168[PATHDEM2DIA,OPTIONSDEM2DIA]=GetPathAndOptionsInThisString(DEM2DIA); 170[PATHDEM2DIA,OPTIONSDEM2DIA]=GetPathAndOptionsInThisString(DEM2DIA);
169OPTIONSDEM2REF='""'+' -X ""%1""'; 171OPTIONSDEM2REF='""'+' -X ""%1""';
@@ -176,7 +178,7 @@ else
176end; 178end;
177clear DEM2DIA PATHDEM2DIA OPTIONSDEM2DIA OPTIONSDEM2REF; 179clear DEM2DIA PATHDEM2DIA OPTIONSDEM2DIA OPTIONSDEM2REF;
178//--------------------------------------------------------------------------------- 180//---------------------------------------------------------------------------------
179DEM3DIA=winqueryreg('HKEY_CLASSES_ROOT','DEM_scilab_file\shell\print\command'); 181DEM3DIA=winqueryreg('HKEY_CLASSES_ROOT',DEM_ENTRY+'\shell\print\command');
180[PATHDEM3DIA,OPTIONSDEM3DIA]=GetPathAndOptionsInThisString(DEM3DIA); 182[PATHDEM3DIA,OPTIONSDEM3DIA]=GetPathAndOptionsInThisString(DEM3DIA);
181OPTIONSDEM3REF='""'+' -P ""%1""'; 183OPTIONSDEM3REF='""'+' -P ""%1""';
182if ( (PATHDEM3DIA==PATHREF) & (OPTIONSDEM3DIA==OPTIONSDEM3REF) ) then 184if ( (PATHDEM3DIA==PATHREF) & (OPTIONSDEM3DIA==OPTIONSDEM3REF) ) then
@@ -188,7 +190,8 @@ else
188end; 190end;
189clear DEM3DIA PATHDEM3DIA OPTIONSDEM3DIA OPTIONSDEM3REF; 191clear DEM3DIA PATHDEM3DIA OPTIONSDEM3DIA OPTIONSDEM3REF;
190//--------------------------------------------------------------------------------- 192//---------------------------------------------------------------------------------
191GRAPH1DIA=winqueryreg('HKEY_CLASSES_ROOT','GRAPH_scilab_file\shell\open\command'); 193GRAPH_ENTRY = ".graph File (Scilab 5.x)";
194GRAPH1DIA=winqueryreg('HKEY_CLASSES_ROOT',GRAPH_ENTRY+'\shell\open\command');
192[PATHGRAPH1DIA,OPTIONSGRAPH1DIA]=GetPathAndOptionsInThisString(GRAPH1DIA); 195[PATHGRAPH1DIA,OPTIONSGRAPH1DIA]=GetPathAndOptionsInThisString(GRAPH1DIA);
193OPTIONSGRAPH1REF='""'+' -X ""%1""'; 196OPTIONSGRAPH1REF='""'+' -X ""%1""';
194if ( (PATHGRAPH1DIA==PATHREF) & (OPTIONSGRAPH1DIA==OPTIONSGRAPH1REF) ) then 197if ( (PATHGRAPH1DIA==PATHREF) & (OPTIONSGRAPH1DIA==OPTIONSGRAPH1REF) ) then
@@ -200,7 +203,8 @@ else
200end; 203end;
201clear GRAPH1DIA PATHGRAPH1DIA OPTIONSGRAPH1DIA OPTIONSGRAPH1REF; 204clear GRAPH1DIA PATHGRAPH1DIA OPTIONSGRAPH1DIA OPTIONSGRAPH1REF;
202//--------------------------------------------------------------------------------- 205//---------------------------------------------------------------------------------
203GRAPH2DIA=winqueryreg('HKEY_CLASSES_ROOT','GRAPHB_scilab_file\shell\open\command'); 206GRAPHB_ENTRY = ".graphb File (Scilab 5.x)";
207GRAPH2DIA=winqueryreg('HKEY_CLASSES_ROOT',GRAPHB_ENTRY+'\shell\open\command');
204[PATHGRAPH2DIA,OPTIONSGRAPH2DIA]=GetPathAndOptionsInThisString(GRAPH2DIA); 208[PATHGRAPH2DIA,OPTIONSGRAPH2DIA]=GetPathAndOptionsInThisString(GRAPH2DIA);
205OPTIONSGRAPH2REF='""'+' -X ""%1""'; 209OPTIONSGRAPH2REF='""'+' -X ""%1""';
206if ( (PATHGRAPH2DIA==PATHREF) & (OPTIONSGRAPH2DIA==OPTIONSGRAPH2REF) ) then 210if ( (PATHGRAPH2DIA==PATHREF) & (OPTIONSGRAPH2DIA==OPTIONSGRAPH2REF) ) then
@@ -212,7 +216,8 @@ else
212end; 216end;
213clear GRAPH2DIA PATHGRAPH2DIA OPTIONSGRAPH2DIA OPTIONSGRAPH2REF; 217clear GRAPH2DIA PATHGRAPH2DIA OPTIONSGRAPH2DIA OPTIONSGRAPH2REF;
214//--------------------------------------------------------------------------------- 218//---------------------------------------------------------------------------------
215execstr('SAVDIA=winqueryreg(''HKEY_CLASSES_ROOT'',''SAV_scilab_file\shell\open\command'');','errcatch'); 219SAV_ENTRY = ".sav File (Scilab 5.x)";
220execstr('SAVDIA=winqueryreg(''HKEY_CLASSES_ROOT'',SAV_ENTRY+''\shell\open\command'');','errcatch');
216if isdef('SAVDIA') then 221if isdef('SAVDIA') then
217 [PATHSAVDIA,OPTIONSSAVDIA]=GetPathAndOptionsInThisString(SAVDIA); 222 [PATHSAVDIA,OPTIONSSAVDIA]=GetPathAndOptionsInThisString(SAVDIA);
218 OPTIONSSAVREF='""'+' -X ""%1""'; 223 OPTIONSSAVREF='""'+' -X ""%1""';
@@ -227,7 +232,8 @@ else
227 disp('sav not associate (Default)'); 232 disp('sav not associate (Default)');
228end; 233end;
229//--------------------------------------------------------------------------------- 234//---------------------------------------------------------------------------------
230execstr('BINDIA=winqueryreg(''HKEY_CLASSES_ROOT'',''BIN_scilab_file\shell\open\command'');','errcatch'); 235BIN_ENTRY = ".bin File (Scilab 5.x)";
236execstr('BINDIA=winqueryreg(''HKEY_CLASSES_ROOT'',BIN_ENTRY+''\shell\open\command'');','errcatch');
231if isdef('BINDIA') then 237if isdef('BINDIA') then
232 [PATHBINDIA,OPTIONSBINDIA]=GetPathAndOptionsInThisString(BINDIA); 238 [PATHBINDIA,OPTIONSBINDIA]=GetPathAndOptionsInThisString(BINDIA);
233 OPTIONSBINREF='""'+' -X ""%1""'; 239 OPTIONSBINREF='""'+' -X ""%1""';
diff --git a/tests/basic_tests/maketests.sci b/tests/basic_tests/maketests.sci
index 3e35eb3..effbaa1 100644
--- a/tests/basic_tests/maketests.sci
+++ b/tests/basic_tests/maketests.sci
@@ -86,7 +86,7 @@ tests = ['arma.tst';
86 end 86 end
87 87
88 if ~MSDOS then 88 if ~MSDOS then
89 tests(find(tests=='filesassocation.tst'))=[]; 89 tests(find(tests=='filesassociation.tst'))=[];
90 tests(find(tests=='scicos_filesassociation.tst'))=[]; 90 tests(find(tests=='scicos_filesassociation.tst'))=[];
91 end 91 end
92 92