2017-05-04 11:45:11 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
tests=(
|
|
|
|
run_errormsg_test
|
|
|
|
run_switchdialog_test
|
|
|
|
run_dmenu_test
|
|
|
|
run_dmenu_custom_test
|
|
|
|
run_run_test
|
|
|
|
run_script_test
|
|
|
|
run_issue_256
|
|
|
|
run_issue_275
|
|
|
|
run_dmenu_empty
|
|
|
|
run_dmenu_issue_292
|
|
|
|
run_screenshot_test
|
|
|
|
xr_dump_test
|
|
|
|
run_drun_test
|
|
|
|
run_combi_test
|
|
|
|
run_regex_test
|
|
|
|
run_glob_test
|
|
|
|
run_issue333_test
|
|
|
|
help_output_test
|
2017-05-27 22:21:57 +00:00
|
|
|
default_theme_test
|
|
|
|
convert_old_theme_test
|
2017-05-04 11:45:11 +00:00
|
|
|
run_dmenu_normal_window_test
|
|
|
|
run_window_test
|
|
|
|
)
|
|
|
|
|
|
|
|
cd ${MESON_BUILD_ROOT}
|
2017-05-27 22:43:46 +00:00
|
|
|
mkdir -p test-x-logs
|
2017-05-04 11:45:11 +00:00
|
|
|
rm -f core
|
|
|
|
display=200
|
|
|
|
for test in "${tests[@]}"; do
|
2017-07-27 15:30:39 +00:00
|
|
|
log_prefix=test-x-logs/${display}
|
|
|
|
echo -n "Test ${test}: "
|
|
|
|
${MESON_SOURCE_ROOT}/test/run_test.sh ${display} ${log_prefix} ${MESON_SOURCE_ROOT}/test/${test}.sh ${MESON_BUILD_ROOT} ${MESON_SOURCE_ROOT} &> ${log_prefix}-wrapper.log
|
2017-05-04 11:45:11 +00:00
|
|
|
ret=$?
|
|
|
|
if [[ -f core ]]; then
|
2017-07-27 15:30:39 +00:00
|
|
|
echo "COREDUMP"
|
2017-05-04 11:45:11 +00:00
|
|
|
echo "bt" | gdb ./rofi core
|
2017-07-27 15:30:39 +00:00
|
|
|
more ${log_prefix}*.log | cat
|
2017-05-04 11:45:11 +00:00
|
|
|
exit ${ret}
|
|
|
|
elif [[ ${ret} != 0 ]]; then
|
2017-07-27 15:30:39 +00:00
|
|
|
echo "FAIL"
|
|
|
|
more ${log_prefix}*.log | cat
|
2017-05-04 11:45:11 +00:00
|
|
|
exit ${ret}
|
|
|
|
fi
|
2017-07-27 15:30:39 +00:00
|
|
|
echo "PASS"
|
2017-05-04 11:45:11 +00:00
|
|
|
display=$(( ${display} + 1 ))
|
|
|
|
done
|