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
|
/*
* Copyright (C) 2010 Canonical Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Authored by Neil Jagdish Patel <neil.patel@canonical.com>
*
*/
using Unity.Test;
public class Main
{
public static int main (string[] args)
{
IOSuite io;
AppInfoManagerSuite appinfo_manager;
LauncherSuite launcher;
FilterSuite filter_suite;
PreferencesSuite preferences_suite;
PreviewSuite preview_suite;
ScopeSuite scope_suite;
DiffSuite diff_suite;
ScopeDiscoveryTestSuite scope_discovery;
ResultsSynchronizerTestSuite synchronizer_suite;
ScopeGroupTestSuite scope_group;
string gsettings_schema_dir = Config.BUILDDIR+"/data";
Environment.set_variable ("XDG_DATA_HOME", Config.TESTDIR+"/data", true);
Environment.set_variable ("GSETTINGS_SCHEMA_DIR", gsettings_schema_dir, true);
Environment.set_variable ("GSETTINGS_BACKEND", "memory", true);
try {
Process.spawn_command_line_sync ("glib-compile-schemas " + gsettings_schema_dir);
} catch (SpawnError e) {
stderr.printf ("%s\n", e.message);
return 1;
}
Test.init (ref args);
/* IO utility tests */
io = new IOSuite ();
appinfo_manager = new AppInfoManagerSuite ();
launcher = new LauncherSuite ();
/* Lens Filters */
filter_suite = new FilterSuite ();
/* Lens Preferences */
preferences_suite = new PreferencesSuite ();
/* Preview test suite */
preview_suite = new PreviewSuite ();
/* Scope test suite */
scope_suite = new ScopeSuite ();
/* Diff test suite */
diff_suite = new DiffSuite ();
/* Scope discovery test suite */
scope_discovery = new ScopeDiscoveryTestSuite ();
/* Scope group test suite */
scope_group = new ScopeGroupTestSuite ();
synchronizer_suite = new ResultsSynchronizerTestSuite ();
Test.run ();
return 0;
}
}
|