Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/pms-test-suite:master commit in: /, PMSTestSuite/
Date: Sun, 29 May 2011 18:57:38
Message-Id: 1c1aee40f87920237512e4a10e82459aad52bb82.mgorny@gentoo
1 commit: 1c1aee40f87920237512e4a10e82459aad52bb82
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 29 18:26:14 2011 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun May 29 18:26:14 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=1c1aee40
7
8 Add an initial code for TestRunner (no-op).
9
10 ---
11 PMSTestSuite/testrunner.py | 10 ++++++++++
12 pms-tester | 12 ++++++++++++
13 2 files changed, 22 insertions(+), 0 deletions(-)
14
15 diff --git a/PMSTestSuite/testrunner.py b/PMSTestSuite/testrunner.py
16 new file mode 100644
17 index 0000000..b3948ee
18 --- /dev/null
19 +++ b/PMSTestSuite/testrunner.py
20 @@ -0,0 +1,10 @@
21 +from PMSTestSuite.ebuildgen import EbuildGenCLI
22 +
23 +class TestRunnerCLI(EbuildGenCLI):
24 + def main(self, argv):
25 + print('-> Generating ebuilds...')
26 + ret = EbuildGenCLI.main(self, argv)
27 + if ret != 0:
28 + return ret
29 +
30 + return 0
31
32 diff --git a/pms-tester b/pms-tester
33 new file mode 100755
34 index 0000000..ededbef
35 --- /dev/null
36 +++ b/pms-tester
37 @@ -0,0 +1,12 @@
38 +#!/usr/bin/python
39 +# vim:fileencoding=utf-8
40 +# (c) 2011 Michał Górny <mgorny@g.o>
41 +# Released under the terms of the 2-clause BSD license.
42 +
43 +import sys
44 +
45 +from PMSTestSuite.testrunner import TestRunnerCLI
46 +
47 +if __name__ == '__main__':
48 + cli = TestRunnerCLI()
49 + sys.exit(cli.main(sys.argv))