File: cli-tests

package info (click to toggle)
spin 6.5.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,512 kB
  • sloc: ansic: 39,876; yacc: 1,021; makefile: 58; sh: 13
file content (21 lines) | stat: -rwxr-xr-x 355 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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
}

test_nxt() {
    if ! spin -f 'X a' >/dev/null 2>&1; then
        fail "compiled without -DNXT"
    fi
}

# TODO more tests here

. shunit2