mirror of
https://git.yoctoproject.org/matchbox-tests
synced 2025-11-04 04:56:03 +08:00
Fixes [YOCTO #13319] Signed-off-by: Mingde (Matthew) Zeng <matthewzmd@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
31 lines
425 B
Bash
Executable File
31 lines
425 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# test-argb.sh
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
#
|
|
# ====
|
|
#
|
|
# basically tests a argb window is rendered ok and doesn't crash matchbox
|
|
#
|
|
|
|
if [ -z "$SLEEP" ]; then
|
|
SLEEP="0"
|
|
fi
|
|
|
|
function waitamo()
|
|
{
|
|
if [ "$SLEEP" == "0" ]; then
|
|
echo "Hit a key"
|
|
read
|
|
else
|
|
sleep $SLEEP
|
|
fi
|
|
}
|
|
|
|
echo; echo "ARGB dialog ( transient for root )"; waitamo
|
|
./argbtest &
|
|
TEST=$!; waitamo; kill $TEST;
|
|
|
|
exit 0
|