mirror of
https://github.com/yshui/picom.git
synced 2024-10-27 05:24:17 -04:00
33aa805048
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
19 lines
368 B
Bash
Executable file
19 lines
368 B
Bash
Executable file
#!/bin/sh
|
|
set -x
|
|
if [ -z $DISPLAY ]; then
|
|
exec xvfb-run -s "+extension composite" -a $0 $1 $2 $3
|
|
fi
|
|
|
|
echo "Running test $2"
|
|
|
|
# TODO keep the log file, and parse it to see if test is successful
|
|
($1 --experimental-backends --backend dummy --log-level=debug --log-file=$PWD/log --config=$2) &
|
|
compton_pid=$!
|
|
$3
|
|
|
|
kill -INT $compton_pid
|
|
wait $compton_pid
|
|
cat log
|
|
rm log
|
|
|
|
|