/
githubmirror
/
lsof
Обзор
Документация
Войти
/
githubmirror
/
lsof
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
4.96.2
tests/case-14-classic-opt.bash
44 строки
852 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
Код
Авторство
О чём код?
#!/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" ]; 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 )