diff options
Diffstat (limited to 'meta/lib/oeqa/runtime/gcc.py')
-rw-r--r-- | meta/lib/oeqa/runtime/gcc.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/gcc.py b/meta/lib/oeqa/runtime/gcc.py index b63badd3e4..08b3cf1230 100644 --- a/meta/lib/oeqa/runtime/gcc.py +++ b/meta/lib/oeqa/runtime/gcc.py | |||
@@ -15,18 +15,21 @@ class GccCompileTest(oeRuntimeTest): | |||
15 | oeRuntimeTest.tc.target.copy_to(os.path.join(oeRuntimeTest.tc.filesdir, "test.c"), "/tmp/test.c") | 15 | oeRuntimeTest.tc.target.copy_to(os.path.join(oeRuntimeTest.tc.filesdir, "test.c"), "/tmp/test.c") |
16 | oeRuntimeTest.tc.target.copy_to(os.path.join(oeRuntimeTest.tc.filesdir, "testmakefile"), "/tmp/testmakefile") | 16 | oeRuntimeTest.tc.target.copy_to(os.path.join(oeRuntimeTest.tc.filesdir, "testmakefile"), "/tmp/testmakefile") |
17 | 17 | ||
18 | @testcase(203) | ||
18 | def test_gcc_compile(self): | 19 | def test_gcc_compile(self): |
19 | (status, output) = self.target.run('gcc /tmp/test.c -o /tmp/test -lm') | 20 | (status, output) = self.target.run('gcc /tmp/test.c -o /tmp/test -lm') |
20 | self.assertEqual(status, 0, msg="gcc compile failed, output: %s" % output) | 21 | self.assertEqual(status, 0, msg="gcc compile failed, output: %s" % output) |
21 | (status, output) = self.target.run('/tmp/test') | 22 | (status, output) = self.target.run('/tmp/test') |
22 | self.assertEqual(status, 0, msg="running compiled file failed, output %s" % output) | 23 | self.assertEqual(status, 0, msg="running compiled file failed, output %s" % output) |
23 | 24 | ||
25 | @testcase(200) | ||
24 | def test_gpp_compile(self): | 26 | def test_gpp_compile(self): |
25 | (status, output) = self.target.run('g++ /tmp/test.c -o /tmp/test -lm') | 27 | (status, output) = self.target.run('g++ /tmp/test.c -o /tmp/test -lm') |
26 | self.assertEqual(status, 0, msg="g++ compile failed, output: %s" % output) | 28 | self.assertEqual(status, 0, msg="g++ compile failed, output: %s" % output) |
27 | (status, output) = self.target.run('/tmp/test') | 29 | (status, output) = self.target.run('/tmp/test') |
28 | self.assertEqual(status, 0, msg="running compiled file failed, output %s" % output) | 30 | self.assertEqual(status, 0, msg="running compiled file failed, output %s" % output) |
29 | 31 | ||
32 | @testcase(204) | ||
30 | def test_make(self): | 33 | def test_make(self): |
31 | (status, output) = self.target.run('cd /tmp; make -f testmakefile') | 34 | (status, output) = self.target.run('cd /tmp; make -f testmakefile') |
32 | self.assertEqual(status, 0, msg="running make failed, output %s" % output) | 35 | self.assertEqual(status, 0, msg="running make failed, output %s" % output) |