aboutsummaryrefslogtreecommitdiffstats
path: root/test-argb.sh
blob: 1b3d45bd9cd32829b1172c0456f59c9ad708b856 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/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