blob: effbaa1b8cd64428f474ae29eeeffb53e563aada (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
//================================
//
// Copyright INRIA 2005
// Scilab team
// Date : 08/05/2006
//
//================================
function tests=testslist()
tests = ['arma.tst';
'auto.tst';
'binary.tst';
'binary_representation.tst';
'breakpoints.tst';
'bvode.tst';
'calpol.tst';
'clause.tst';
'cmp.tst';
'comand.tst';
'comment.tst';
'dassldasrt.tst';
'date.tst';
'dcd.tst';
'display.tst';
'errcatch.tst';
'feval.tst';
'fptr.tst';
'fscanfMat.tst';
'function.tst';
'global.tst';
'grand.tst';
'grandb.tst';
'gsort.tst';
'hypermat.tst'
'listextraction.tst';
'listinsertion.tst';
'lsparse.tst';
'lstops.tst';
'lstops.tst';
'macro.tst';
'matelm.tst';
'matimp.tst';
'matode.tst';
'matops.tst';
'matopt.tst';
'maxi.tst';
'metanet.tst';
'mfprintf.tst';
'mfscanf.tst';
'msprintf.tst';
'msscanf.tst';
'norm.tst';
'odedc.tst';
'odedi.tst';
'opcode.tst';
'pause.tst';
'polelm.tst';
'polops.tst';
'pvm.tst';
'resume.tst';
'saveload.tst';
'scicos.tst';
'scilab.tst';
'slicot.tst';
'sound.tst';
'sparse.tst';
'specfun.tst';
'sprintf.tst';
'sscanf.tst';
'strelm.tst';
'swap_handles.tst';
'trycatch.tst';
'parse.tst';
'TCL_SetGet.tst';
'filesassocation.tst';
'scicos_filesassociation.tst';
'basiclink.tst';
'links.tst';
'algebra.tst';
'intops.tst';
'matsys.tst';];
if ~%scicos then
tests(find(tests=='scicos.tst'))=[];
tests(find(tests=='scicos_filesassociation.tst'))=[];
end
if ~MSDOS then
tests(find(tests=='filesassociation.tst'))=[];
tests(find(tests=='scicos_filesassociation.tst'))=[];
end
if ~%tk then
tests(find(tests=='TCL_SetGet.tst'))=[];
end
if ~%pvm then
tests(find(tests=='pvm.tst'))=[];
end
if MSDOS then
tests(find(tests=='pvm.tst'))=[];
end
endfunction
function maketests(job)
lines(0) // to disable line control
if argn(2)<1 then job='tests',end
if job=='clean' then //remove .dia files
cleantests()
else
tests=testslist()
for k1=1:size(tests,'*') // loop on .tst files
scitest(tests(k1))
end
end
endfunction
function cleantests()
if MSDOS then
path=SCI+'\tests\basic_tests'
file_to_clean=path+strsubst(testslist(),'.tst','.dia')
unix_s('del '+'""'+strcat(file_to_clean,'"" ""')+'""')
else
path=SCI+'/tests/basic_tests'
file_to_clean=path+strsubst(testslist(),'.tst','.dia')
unix_s('rm -f '+strcat(file_to_clean,' '))
end
endfunction
|