blob: a887686e1b59af87f93c72a1adfcc35d82e63ae0 (
plain)
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
|
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import sys
import test_support
EXPECT_EQ = test_support.EXPECT_EQ
EXPECT_TRUE = test_support.EXPECT_TRUE
RunTest = test_support.RunTest
ModulesAreEqual = test_support.ModulesAreEqual
BuildTestModule = test_support.BuildTestModule
TestTestModule = test_support.TestTestModule
def BuildAndTestModule():
return TestTestModule(BuildTestModule())
def TestModulesEqual():
return EXPECT_TRUE(ModulesAreEqual(BuildTestModule(), BuildTestModule()))
def Main(args):
errors = 0
errors += RunTest(BuildAndTestModule)
errors += RunTest(TestModulesEqual)
return errors
if __name__ == '__main__':
sys.exit(Main(sys.argv[1:]))
|