/
githubmirror
/
lsof
Обзор
Документация
Войти
/
githubmirror
/
lsof
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
4.94.0
tests/case-13-classic.bash
45 строк
882 B
Masatake YAMATO
test case: recort the output of classic test cases regardless of the their results
01 июн 2019, 04:37
01 июн 2019, 04:37
83800f1
Код
Авторство
О чём код?
name=$(basename $0 .bash) lsof=$1 report=$2 base=$(pwd) ( f=/tmp/${name}-$$ cd tests make > $f 2>&1 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 )