File: t.interactive

package info (click to toggle)
xdg-utils 1.0-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,268 kB
  • ctags: 321
  • sloc: sh: 7,394; perl: 274; makefile: 190; xml: 32
file content (20 lines) | stat: -rwxr-xr-x 413 bytes parent folder | download | duplicates (9)
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 functionallity 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