|
1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- |
|
2 # vim: set filetype=python: |
|
3 # This Source Code Form is subject to the terms of the Mozilla Public |
|
4 # License, v. 2.0. If a copy of the MPL was not distributed with this |
|
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
|
6 |
|
7 TEST_TOOL_DIRS += ['httpserver'] |
|
8 |
|
9 FAIL_ON_WARNINGS = True |
|
10 |
|
11 BROWSER_CHROME_MANIFESTS += ['browser/browser.ini'] |
|
12 MOCHITEST_MANIFESTS += ['mochitests/mochitest.ini'] |
|
13 XPCSHELL_TESTS_MANIFESTS += ['unit/xpcshell.ini'] |
|
14 |
|
15 # FIXME/bug 575918: out-of-process xpcshell is broken on OS X |
|
16 if CONFIG['OS_ARCH'] != 'Darwin': |
|
17 XPCSHELL_TESTS_MANIFESTS += ['unit_ipc/xpcshell.ini'] |
|
18 |
|
19 SIMPLE_PROGRAMS = [ |
|
20 'PropertiesTest', |
|
21 'ReadNTLM', |
|
22 'TestBlockingSocket', |
|
23 'TestCallbacks', |
|
24 'TestCookie', |
|
25 'TestDNS', |
|
26 'TestIncrementalDownload', |
|
27 'TestOpen', |
|
28 'TestPageLoad', |
|
29 'TestProtocols', |
|
30 'TestServ', |
|
31 'TestStandardURL', |
|
32 'TestStreamLoader', |
|
33 'TestUpload', |
|
34 'TestURLParser', |
|
35 'urltest', |
|
36 ] |
|
37 |
|
38 # XXX Make this work in libxul builds. |
|
39 #SIMPLE_PROGRAMS += [ |
|
40 # TestIDN', |
|
41 # TestIOThreads', |
|
42 # TestPerf', |
|
43 # TestSocketTransport', |
|
44 # TestStreamChannel', |
|
45 # TestStreamPump', |
|
46 # TestStreamTransport', |
|
47 # TestUDPSocketProvider', |
|
48 #] |
|
49 |
|
50 SOURCES += [ |
|
51 '%s.cpp' % s for s in SIMPLE_PROGRAMS |
|
52 ] |
|
53 |
|
54 CPP_UNIT_TESTS += [ |
|
55 'TestSTSParser.cpp', |
|
56 'TestUDPSocket.cpp', |
|
57 ] |
|
58 |
|
59 RESOURCE_FILES += [ |
|
60 'urlparse.dat', |
|
61 'urlparse_unx.dat', |
|
62 ] |