/
githubmirror
/
rsyslog
Обзор
Документация
Войти
/
githubmirror
/
rsyslog
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/loop.sh
29 строк
769 B
Josh Soref
fix spelling errors in testbench
27 дек 2019, 15:57
27 дек 2019, 15:57
af19128
Код
Авторство
О чём код?
#!/bin/bash # this is a small helper script used to run testbench tests # repetitively. It is meant for manual use and not included # in any testbench functionality. # There are some options commented out, e.g. exit on first # failure. If that option is desired, it must be "commented # in" -- we don't think it's worth to add proper options for that. # Copyright (2015) by Rainer Gerhards, released under ASL 2.0 RUN=1 MAXRUN=50 SUCCESS=0 FAIL=0 while [ $RUN -le $MAXRUN ]; do echo echo "###### RUN: " $RUN "success" $SUCCESS "fail" $FAIL $1 if [ "$?" -ne "0" ]; then ((FAIL++)) echo "FAIL!" #vi work exit 1 else ((SUCCESS++)) fi ((RUN++)) done echo echo "Nbr success: " $SUCCESS echo "Nbr fail...: " $FAIL