1function testall
2%TESTALL test all CSparse functions (run tests 1 to 28 below)
3%
4% Example:
5%   testall
6% See also: cs_demo
7
8% Copyright 2006-2012, Timothy A. Davis, http://www.suitesparse.com
9
10h = waitbar (0, 'CXSparse') ;
11
12cs_test_make        % compile all CSparse, Demo, Text, and Test mexFunctions
13
14ntests = 29 ;
15
16testwait (1,  ntests, h) ; test1  ;
17testwait (2,  ntests, h) ; test2  ;
18testwait (3,  ntests, h) ; test3  ;
19testwait (4,  ntests, h) ; test4  ;
20testwait (5,  ntests, h) ; test5  ;
21testwait (6,  ntests, h) ; test6  ;
22testwait (7,  ntests, h) ; test7  ;
23testwait (8,  ntests, h) ; test8  ;
24testwait (9,  ntests, h) ; test9  ;
25testwait (10, ntests, h) ; test10 ;
26testwait (11, ntests, h) ; test11 ;
27testwait (12, ntests, h) ; test12 ;
28testwait (13, ntests, h) ; test13 ;
29testwait (14, ntests, h) ; test14 ;
30testwait (15, ntests, h) ; test15 ;
31testwait (16, ntests, h) ; test16 ;
32testwait (17, ntests, h) ; test17 ;
33testwait (18, ntests, h) ; test18 ;
34testwait (19, ntests, h) ; test19 ;
35testwait (20, ntests, h) ; test20 ;
36testwait (21, ntests, h) ; test21 ;
37testwait (22, ntests, h) ; test22 ;
38testwait (23, ntests, h) ; test23 ;
39testwait (24, ntests, h) ; test24 ;
40testwait (25, ntests, h) ; test25 ;
41testwait (26, ntests, h) ; test26 ;
42testwait (27, ntests, h) ; test27 ;
43testwait (28, ntests, h) ; test28 ;
44testwait (29, ntests, h) ; test_qr ;
45
46close (h)
47fprintf ('\nCXSparse: all tests passed\n') ;
48
49function testwait (n,ntests,h)
50fprintf ('\n------------------------ test%d\n', n) ;
51waitbar (n/(ntests+1), h, sprintf ('CXSparse test %d of %d\n', n, ntests)) ;
52
53