Debian Codegraph @

debian/tests/less-than-five-percent-failures

raw
1 #! /bin/sh
2
3 jsdoc2 -T | tee /tmp/logfile
4 failures=$(grep "NOT OK " /tmp/logfile | wc -l)
5 tests=$(grep "... OK " /tmp/logfile | wc -l)
6 test 1 -eq $(echo "$failures < 0.05 * $tests" | bc)