forked from 12to11/12to11
* tests/run_test.sh: Allow running select tests.
This commit is contained in:
parent
0bdc502068
commit
456537aee9
1 changed files with 26 additions and 1 deletions
|
@ -45,6 +45,31 @@ do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# TODO: figure out how to run some tests under Xvfb.
|
echo "Starting Xvfb at :27"
|
||||||
|
|
||||||
|
Xvfb :27 &
|
||||||
|
sleep 1
|
||||||
|
exec 4< <(DISPLAY=:27 stdbuf -oL ../12to11 -printsocket)
|
||||||
|
read -u 4 WAYLAND_DISPLAY
|
||||||
|
export WAYLAND_DISPLAY
|
||||||
|
|
||||||
|
declare -a vfb_tests=(
|
||||||
|
select_test
|
||||||
|
)
|
||||||
|
|
||||||
|
echo "Compositor for vfb tests started at ${WAYLAND_DISPLAY}"
|
||||||
|
|
||||||
|
for test_executable in "${vfb_tests[@]}"
|
||||||
|
do
|
||||||
|
echo "Running test ${test_executable}"
|
||||||
|
|
||||||
|
if ./${test_executable}; then
|
||||||
|
echo "${test_executable} completed successfully"
|
||||||
|
else
|
||||||
|
echo "${test_executable} failed; see its output for more details"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
trap 'jobs -p | xargs kill' EXIT
|
||||||
|
|
Loading…
Add table
Reference in a new issue