/
githubmirror
/
lsof
Обзор
Документация
Войти
/
githubmirror
/
lsof
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/case-14-classic-opt.bash
44 строки
887 B
Jiajie Chen
[openbsd] Fix testing on legacy build system
11 апр 2023, 03:24
11 апр 2023, 03:24
32f444a
Код
Авторство
О чём код?
#!/bin/sh name=$(basename $0 .bash) lsof=$1 report=$2 dialect=$4 base=$(pwd) ( s=0 f=/tmp/${name}-$$ cd tests make opt > $f 2>&1 if ! grep -q "LTbigf \.\.\. OK" $f; then echo '"LTbigf ... OK" is not found in the output' >> $report s=1 fi # TODO: don't ignore "OK". if ! grep -q "LTdnlc \.\.\. .*/tests found: 100.00%" $f; then echo '"LTdnlc ... .*/tests found: 100.00%" is not found in the output' >> $report s=1 fi if [ -n "$CI" ] && { [ "$dialect" = "darwin" ] || [ "$dialect" = "openbsd" ]; }; then : # TODO: temporary skip this elif ! grep -q "LTlock \.\.\. OK" $f; then echo '"LTlock ... OK" is not found in the output' >> $report s=1 fi # TODO: LTnfs { echo echo "output" echo ............................................................................. cat $f } >> $report rm $f exit $s )