/
githubmirror
/
lsof
Обзор
Документация
Войти
/
githubmirror
/
lsof
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
4.99.2
tests/case-13-classic.bash
49 строк
965 B
Masatake YAMATO
test case: record the output of "make"
12 дек 2021, 22:56
12 дек 2021, 22:56
3734bda
Код
Авторство
О чём код?
name=$(basename $0 .bash) lsof=$1 report=$2 base=$(pwd) ( f=/tmp/${name}-$$ cd tests make > $f 2>&1 cat $f >> $report echo "------------------------------------" >> $report if ! grep -q "LTbasic \.\.\. OK" $f; then echo '"LTbasic ... OK" is not found in the output' >> $report s=1 fi if ! grep -q "LTnlink \.\.\. OK" $f; then echo '"LTnlink ... OK" is not found in the output' >> $report s=1 fi if ! grep -q "LTsock \.\.\. OK" $f; then echo '"LTsock ... OK" is not found in the output' >> $report s=1 fi if ! grep -q "LTszoff \.\.\. OK" $f; then echo '"LTszoff ... OK" is not found in the output' >> $report s=1 fi if ! grep -q "LTunix \.\.\. OK" $f; then echo '"LTunix ... OK" is not found in the output' >> $report s=1 fi { echo echo "output" echo ............................................................................. cat $f } >> $report rm $f exit $s )