summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime
diff options
context:
space:
mode:
authorCorneliu Stoicescu <corneliux.stoicescu@intel.com>2014-08-09 14:01:25 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-11 12:30:52 +0100
commitfe5b333e1a82174287bea0ef6a6620bf9eb69e46 (patch)
treef54ba01a81348c596179ce08810767bcf3678d75 /meta/lib/oeqa/runtime
parent92785a1a96607f236c26bb656438b5d0511f82fe (diff)
downloadpoky-fe5b333e1a82174287bea0ef6a6620bf9eb69e46.tar.gz
oeqa/runtime: add new cpp test and file
This tests out the limits header which we've noticed does have problems in some SDK builds. (From OE-Core rev: 63cbed337241191f33fe951662a39ce59dce6774) Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime')
-rw-r--r--meta/lib/oeqa/runtime/files/test.cpp3
-rw-r--r--meta/lib/oeqa/runtime/gcc.py7
2 files changed, 10 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/files/test.cpp b/meta/lib/oeqa/runtime/files/test.cpp
new file mode 100644
index 0000000000..9e1a76473d
--- /dev/null
+++ b/meta/lib/oeqa/runtime/files/test.cpp
@@ -0,0 +1,3 @@
1#include <limits>
2
3int main() {} \ No newline at end of file
diff --git a/meta/lib/oeqa/runtime/gcc.py b/meta/lib/oeqa/runtime/gcc.py
index 08b3cf1230..a7f62e1758 100644
--- a/meta/lib/oeqa/runtime/gcc.py
+++ b/meta/lib/oeqa/runtime/gcc.py
@@ -14,6 +14,7 @@ class GccCompileTest(oeRuntimeTest):
14 def setUpClass(self): 14 def setUpClass(self):
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 oeRuntimeTest.tc.target.copy_to(os.path.join(oeRuntimeTest.tc.filesdir, "test.cpp"), "/tmp/test.cpp")
17 18
18 @testcase(203) 19 @testcase(203)
19 def test_gcc_compile(self): 20 def test_gcc_compile(self):
@@ -29,6 +30,12 @@ class GccCompileTest(oeRuntimeTest):
29 (status, output) = self.target.run('/tmp/test') 30 (status, output) = self.target.run('/tmp/test')
30 self.assertEqual(status, 0, msg="running compiled file failed, output %s" % output) 31 self.assertEqual(status, 0, msg="running compiled file failed, output %s" % output)
31 32
33 def test_gpp2_compile(self):
34 (status, output) = self.target.run('g++ /tmp/test.cpp -o /tmp/test -lm')
35 self.assertEqual(status, 0, msg="g++ compile failed, output: %s" % output)
36 (status, output) = self.target.run('/tmp/test')
37 self.assertEqual(status, 0, msg="running compiled file failed, output %s" % output)
38
32 @testcase(204) 39 @testcase(204)
33 def test_make(self): 40 def test_make(self):
34 (status, output) = self.target.run('cd /tmp; make -f testmakefile') 41 (status, output) = self.target.run('cd /tmp; make -f testmakefile')