blob: 835f3b2b84d31221a82638ef636da3a7ed950863 (
plain)
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
27
28
29
30
|
#!/bin/bash
## Include utility functions.
. "$XDG_TEST_DIR/include/testassertions.sh"
. "$XDG_TEST_DIR/include/testcontrol.sh"
## Test function
test_open_dir() {
test_start "$FUNCNAME: verify basic directory open test."
test_init
require_notroot
## Require a running X server
assert_display
test_procedure
assert_exit 0 xdg-open "$XDG_TEST_DIR"
assert_nostdout
assert_nostderr
assert_interactive "Did a file browser open to $XDG_TEST_DIR?" y
assert_interactive "Please close any windows opened by this test." C
test_result
}
run_test test_open_dir
|