-
Notifications
You must be signed in to change notification settings - Fork 45
/
run_all_unit_tests.m
80 lines (56 loc) · 2.2 KB
/
run_all_unit_tests.m
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
% The library contains several unit tests written using
% XUnit test framework. To execute these tests, the
% library must be installed.
close all; clear all; clc;
globals = spx_setup();
include_long_tests = 0;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cd (fullfile(globals.commons, 'tests'));
runtests;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cd (fullfile(globals.clustering, 'tests'));
runtests;
cd (fullfile(globals.spectral_clustering, 'tests'));
runtests;
cd (fullfile(globals.clustering_kmeans, 'tests'));
runtests;
if include_long_tests
cd (fullfile(globals.sparse_subspace_clustering, 'tests'));
runtests;
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cd (fullfile(globals.data_signals, 'tests'));
runtests;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cd (fullfile(globals.dictionary, 'tests'));
runtests;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cd (fullfile(globals.conjugate_gradient, 'tests'));
runtests;
cd (fullfile(globals.steepest_descent, 'tests'));
runtests;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cd (fullfile(globals.probability, 'tests'));
runtests;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cd (fullfile(globals.single_recovery, 'tests'));
runtests;
if include_long_tests
cd (fullfile(globals.single_recovery, 'tests', 'long'));
runtests;
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cd (fullfile(globals.signal_processing, 'tests'));
runtests;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cd (fullfile(globals.statistical_signal_processing, 'tests'));
runtests;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cd (fullfile(globals.statistics, 'tests'));
runtests;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
cd (fullfile(globals.wavelet, 'tests'));
runtests;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Finally return to the main directory
cd(globals.root);