File: cli-tests

package info (click to toggle)
spin 6.5.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 2,512 kB
  • sloc: ansic: 39,876; yacc: 1,021; makefile: 58; sh: 8
file content (15 lines) | stat: -rwxr-xr-x 249 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

exec 2>&1

test_spin_usage() {
    local output="$(spin --bogus 2>&1 || true)"
    if ! echo "$output" | grep -q 'use: spin'; then
        fail "expected to find 'use: spin' in usage output"
    fi
}

# TODO more tests here

. shunit2