/
glscene
/
pasdoc
Обзор
Документация
Войти
/
glscene
/
pasdoc
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dodi
tests/scripts/check_cache.sh
45 строк
983 B
Michalis Kamburelis
* Use find_all_tests_for_check_cache.sh in check_cache.sh and check_cache_format_independent.sh to check using only ok_* and warning_* that pass with default command-line
05 ноя 2005, 17:52
05 ноя 2005, 17:52
bdf18b5
Код
Авторство
О чём код?
#!/bin/bash set -eu # When running this script, the current directory # must be the directory of the script, i.e. tests/scripts/ # in pasdoc's sources. # # See ../README file for docs for this script. # functions ------------------------------------------------------------ run_echo () { echo "$@" scripts/find_all_tests_for_check_cache.sh | "$@" } pasdoc_call () { echo 'Running pasdoc:' run_echo pasdoc \ --format="$OUTPUT_FORMAT" -S - \ --exclude-generator \ --cache-dir=scripts/check_cache_tmp/cache/ \ "$@" } # ------------------------------------------------------------ OUTPUT_FORMAT="$1" shift 1 rm -Rf check_cache_tmp/ mkdir -p check_cache_tmp/cache/ check_cache_tmp/1/ check_cache_tmp/2/ cd .. pasdoc_call --output=scripts/check_cache_tmp/1/ pasdoc_call --output=scripts/check_cache_tmp/2/ echo 'Comparing two outputs:' diff -u scripts/check_cache_tmp/1/ scripts/check_cache_tmp/2/ echo 'OK, test passed.' rm -Rf scripts/check_cache_tmp/