poky/scripts/qemuimage-tests/toolchain/iptables
Jiajun Xu d2e078aa04 qemuimagetest: Add executable permission to test scripts for toolchain
The file mode bits of toolchain test scripts is 644, which could not be
executed by user. Fix the issue by adding executable permission(755) to
all test scripts for toolchain test.

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

(From OE-Core rev: 106517c40e929009bf63d806747dc613333c66e8)

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

32 lines
718 B
Bash
Executable File

#!/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 <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 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