diff options
author | Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | 2013-04-18 09:45:34 +0200 |
---|---|---|
committer | Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | 2013-04-18 09:45:34 +0200 |
commit | bbbc060a10fbf96d0241d88d35b10410a8d914e4 (patch) | |
tree | 11e69b5f6b6060d74377eac7250a69b64e65c7b7 | |
parent | fe414ccdda51b17f583c18dd8d94aaba54554aaa (diff) |
OpenEmbedded: added tests for C/C++ compiler
Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
-rwxr-xr-x | openembedded/scripts/sdkhelloc.sh | 34 | ||||
-rwxr-xr-x | openembedded/scripts/sdkhellocxx.sh | 34 | ||||
-rw-r--r-- | openembedded/sdkhelloc.yaml | 19 | ||||
-rw-r--r-- | openembedded/sdkhellocxx.yaml | 19 |
4 files changed, 106 insertions, 0 deletions
diff --git a/openembedded/scripts/sdkhelloc.sh b/openembedded/scripts/sdkhelloc.sh new file mode 100755 index 0000000..163bd6b --- /dev/null +++ b/openembedded/scripts/sdkhelloc.sh @@ -0,0 +1,34 @@ +#!/bin/bash +# +# SDK hello.c test. +# +# Copyright (C) 2013, Linaro Limited. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# Author: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> +# + +cd +gcc hello.c -o hello > sdkhelloc.log + +if [ 0 -eq $? ] +then + echo "sdkhelloc: pass" + exit 0 +else + echo "sdkhelloc: fail" + exit 1 +fi diff --git a/openembedded/scripts/sdkhellocxx.sh b/openembedded/scripts/sdkhellocxx.sh new file mode 100755 index 0000000..bc5e195 --- /dev/null +++ b/openembedded/scripts/sdkhellocxx.sh @@ -0,0 +1,34 @@ +#!/bin/bash +# +# SDK hello.cc test. +# +# Copyright (C) 2013, Linaro Limited. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# Author: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> +# + +cd +g++ hello.cc -o hello > sdkhellocxx.log + +if [ 0 -eq $? ] +then + echo "sdkhellocxx: pass" + exit 0 +else + echo "sdkhellocxx: fail" + exit 1 +fi diff --git a/openembedded/sdkhelloc.yaml b/openembedded/sdkhelloc.yaml new file mode 100644 index 0000000..a4ebf78 --- /dev/null +++ b/openembedded/sdkhelloc.yaml @@ -0,0 +1,19 @@ +metadata: + name: sdkhelloc + format: "Lava-Test-Shell Test Definition 1.0" + description: "Test for C compiler in OE." + +install: + git-repos: + - git://git.linaro.org/qa/test-definitions.git + +run: + steps: + - "cd test-definitions/oe/scripts" + - "./sdkhelloc.sh" + +parse: + pattern: "^(?P<test_case_id>[a-zA-Z0-9_-]+):\\s(?P<result>\\w+)" + fixupdict: + PASS: pass + FAIL: fail diff --git a/openembedded/sdkhellocxx.yaml b/openembedded/sdkhellocxx.yaml new file mode 100644 index 0000000..a370d82 --- /dev/null +++ b/openembedded/sdkhellocxx.yaml @@ -0,0 +1,19 @@ +metadata: + name: sdkhellocxx + format: "Lava-Test-Shell Test Definition 1.0" + description: "Test for C++ compiler in OE." + +install: + git-repos: + - git://git.linaro.org/qa/test-definitions.git + +run: + steps: + - "cd test-definitions/oe/scripts" + - "./sdkhellocxx.sh" + +parse: + pattern: "^(?P<test_case_id>[a-zA-Z0-9_-]+):\\s(?P<result>\\w+)" + fixupdict: + PASS: pass + FAIL: fail |