File: t.version

package info (click to toggle)
xdg-utils 1.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,652 kB
  • sloc: sh: 8,244; xml: 3,474; perl: 335; makefile: 188; awk: 41
file content (26 lines) | stat: -rwxr-xr-x 443 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash

. "$XDG_TEST_DIR/include/testassertions.sh"


generic_version() {
test_start "$FUNCNAME: generic version arg - $XDGUTIL"

test_purpose "Ensure that $XDGUTIL prints the version information and exists with code 0."

# Dependencies section
test_init

assert_util_var
set_no_display

# Test steps section
test_procedure

assert_exit 0 "$XDGUTIL" "--version"
assert_stdout
assert_nostderr

test_result
}
GENERIC_TEST="generic_version"