To launch separately non-regression tests and unitary tests
[scilab.git] / scilab / modules / development_tools / macros / unit_test_run.sci
1 //-----------------------------------------------------------------------------
2 // Pierre MARECHAL
3 // Scilab team
4 // Copyright INRIA
5 // Date : 22/11/2007
6 //
7 // Launch Unitary Tests
8 //-----------------------------------------------------------------------------
9
10 function unit_test_run(varargin)
11         
12         lhs = argn(1);
13         rhs = argn(2);
14         
15         if (rhs == 0) then
16                 test_run([],[],["unit_tests"]);
17                 
18         elseif rhs == 1 then
19                 argument_1 = varargin(1);
20                 test_run(argument_1,[],["unit_tests"]);
21                 
22         elseif rhs == 2 then
23                 argument_1 = varargin(1);
24                 argument_2 = varargin(2);
25                 test_run(argument_1,argument_2,["unit_tests"]);
26                 
27         elseif rhs == 3 then
28                 argument_1 = varargin(1);
29                 argument_2 = varargin(2);
30                 argument_3 = varargin(3);
31                 test_run(argument_1,argument_2,[argument_3,"unit_tests"]);
32                 
33         end
34         
35 endfunction