poky/scripts/qemuimage-tests/toolchain/cvs
Jiajun Xu ea4857a98b qemuimagetest: Enable toolchain automation tests in qemuimagetest
Enable toolchain automation tests in qemuimagetest framework. 3 C/C++ test
projects are added to test toolchain - cvs, iptables and sudoku-savant. User
needs to set TEST_SCEN to "toolchain" in local.conf to enable tests. Test case
will check if toolchain tarball exists under "${DEPLOY_DIR}/sdk". And it will
extract toolchain tarball into /opt. It requires user to chown /opt to non-root
user, who will run qemuimagetest.

Signed-off-by Jiajun Xu <jiajun.xu@intel.com>

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-05-04 00:56:33 +01:00

673 B

#!/bin/bash

CVS compile Test for toolchain test

The case extract toolchain tarball into temp folder

Then compile CVS with the toolchain environment

Author: Jiajun Xu jiajun.xu@intel.com

This file is licensed under the GNU General Public License,

Version 2.

. $COREBASE/scripts/qemuimage-testlib

TIMEOUT=120

Extract and test toolchain tarball

Test_Toolchain cvs ${TIMEOUT}

if [ $? -eq 0 ]; then Test_Info "CVS Test PASS" Test_Print_Result "CVS" 0 exit 0 elif [ $? -eq 1 ]; then Test_Info "CVS Test FAIL" Test_Print_Result "CVS" 1 exit 1 else Test_Info "Skip CVS Test due to some configuration problem" Test_Print_Result "CVS" 2 exit 2 fi