mirror of
https://git.yoctoproject.org/poky
synced 2026-04-27 03:32:12 +02:00
qemuimagetest: basic function to check bash exists
one test case to check bash command availability on qemu target. Signed-off-by: veerabrahmam <veerabrahmamvr@huawei.com> (From OE-Core rev: 357478b624b27fdfce25b6064b0f64717db75fa6) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
208ff62db4
commit
ea55ec97c0
17
scripts/qemuimage-tests/tools/bash.sh
Normal file
17
scripts/qemuimage-tests/tools/bash.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
# bash test script running in qemu
|
||||
#
|
||||
# Author: veera <veerabrahmamvr@huawei.com>
|
||||
#
|
||||
# This file is licensed under the GNU General Public License,
|
||||
# Version 2.
|
||||
#
|
||||
|
||||
which bash
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "QEMU: bash is exist in the target by default"
|
||||
exit 0
|
||||
else
|
||||
echo "QEMU: No bash command in the qemu target"
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user