/
glscene
/
pasdoc
Обзор
Документация
Войти
/
glscene
/
pasdoc
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/scripts/validate_simplexml.sh
20 строк
533 B
Michalis Kamburelis
Clear error message when missing php, xmllint
30 май 2022, 03:17
30 май 2022, 03:17
2026c10
Код
Авторство
О чём код?
#!/bin/bash set -eu # This scripts runs xmllint to check every *.xml file in simplexml/ # subdirectory, recursively. # It's meant to be run using `make validate_simplexml' in parent directory. # # See ../README for comments. # check if xmllint is available and fail otherwise if ! which xmllint > /dev/null; then echo 'xmllint missing' exit 1 fi echo 'Validating simplexml output using xmllint.' find testcases_output/simplexml/ -iname '*.xml' \ -exec sh -c 'echo ---- Validating {}' ';' \ -exec xmllint --noout '{}' ';'