From ea4857a98b500e0b73d875b28c43e2d1d0f740b6 Mon Sep 17 00:00:00 2001 From: Jiajun Xu Date: Tue, 3 May 2011 10:07:30 +0800 Subject: 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 Signed-off-by: Richard Purdie --- scripts/qemuimage-tests/toolchain/iptables | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 scripts/qemuimage-tests/toolchain/iptables (limited to 'scripts/qemuimage-tests/toolchain/iptables') diff --git a/scripts/qemuimage-tests/toolchain/iptables b/scripts/qemuimage-tests/toolchain/iptables new file mode 100644 index 0000000000..af89bbe7b3 --- /dev/null +++ b/scripts/qemuimage-tests/toolchain/iptables @@ -0,0 +1,31 @@ +#!/bin/bash +# +# iptables compile Test for toolchain test +# The case extract toolchain tarball into temp folder +# Then compile iptables with the toolchain environment +# +# Author: Jiajun Xu +# +# 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 iptables ${TIMEOUT} + +if [ $? -eq 0 ]; then + Test_Info "iptables Test PASS" + Test_Print_Result "iptables" 0 + exit 0 +elif [ $? -eq 1 ]; then + Test_Info "iptables Test FAIL" + Test_Print_Result "iptables" 1 + exit 1 +else + Test_Info "Skip iptables Test due to some configuration problem" + Test_Print_Result "iptables" 2 + exit 2 +fi -- cgit v1.2.3-54-g00ecf