blob: 7d4ee9e4e919339d66dee60da931dcefc2e26429 (
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
|
#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "non-existent eventscript directory"
setup_eventd
required_error ENOENT <<EOF
Event dir for foobar does not exist
EOF
simple_test status foobar monitor
required_error ENOENT <<EOF
Event dir for foobar does not exist
EOF
simple_test run 10 foobar monitor
required_error ENOENT <<EOF
Script 01.test does not exist in foobar
EOF
simple_test script enable foobar 01.test
required_error ENOENT <<EOF
Command script list finished with result=$(errcode ENOENT)
EOF
simple_test script list foobar
|