File: testlib.sh

package info (click to toggle)
nocache 0.9-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 164 kB
  • ctags: 70
  • sloc: ansic: 512; makefile: 74; sh: 26
file content (8 lines) | stat: -rw-r--r-- 128 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
t() {
    NR=$(expr $NR + 1)
    if eval "$1"; then
        echo "ok $NR - $2"
    else
        echo "not ok $NR - $2"
    fi
}