diff options
Diffstat (limited to 'openembedded/scripts/sdkhellocxx.sh')
-rwxr-xr-x | openembedded/scripts/sdkhellocxx.sh | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/openembedded/scripts/sdkhellocxx.sh b/openembedded/scripts/sdkhellocxx.sh index bc5e195..08b50fd 100755 --- a/openembedded/scripts/sdkhellocxx.sh +++ b/openembedded/scripts/sdkhellocxx.sh @@ -19,16 +19,29 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # Author: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> +# Author: Milosz Wasilewski <milosz.wasilewski@linaro.org> # cd g++ hello.cc -o hello > sdkhellocxx.log +EXIT=0 if [ 0 -eq $? ] then echo "sdkhellocxx: pass" - exit 0 else echo "sdkhellocxx: fail" - exit 1 + EXIT=1 fi + +HELLO_OUT=$(./hello) + +if [ "$HELLO_OUT" != 'hello world' ] +then + echo "sdkhellocixxout: fail" + EXIT=1 +else + echo "sdkhellocxxout: pass" +fi + +exit $EXIT |