"Fossies" - the Fresh Open Source Software Archive

Member "bwping-1.15/tests/bwping6" (9 May 2019, 366 Bytes) of package /linux/privat/bwping-1.15.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "bwping6": 1.14_vs_1.15.

    1 #!/bin/sh
    2 
    3 OUTPUT=$(./bwping -6 -u 10000 -r 1 -T 255 -B localhost -b 800 -s 500 -v 200000 localhost 2>&1)
    4 STATUS=$?
    5 
    6 echo "$OUTPUT"
    7 
    8 if test "$STATUS" != "0"; then
    9     exit $STATUS
   10 else
   11     ISSUES=$(echo "$OUTPUT" | grep -v "^Target: " | grep -v "^Periodic: " | grep -v "^Total: ")
   12 
   13     if test "$ISSUES" != ""; then
   14         exit 1
   15     else
   16         exit 0
   17     fi
   18 fi