File: t.interactive

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 (20 lines) | stat: -rwxr-xr-x 412 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

. "$XDG_TEST_DIR/include/testassertions.sh"
. "$XDG_TEST_DIR/include/testcontrol.sh"

test_interactive() {
test_start "$FUNCNAME: verify functionality of assert_interactive"

test_procedure

assert_interactive "Enter 'y'" y
assert_interactive "Enter 'n'" n
assert_interactive "neg Enter 'y'" n
assert_interactive "neg Enter 'n'" y
assert_interactive "Wait"

test_result
}

run_test test_interactive