chiark / gitweb /
debian: Use debhelper to generate maint scripts
[userv.git] / tests / t-config
1 #!/bin/bash
2 set -ex
3
4 . tests/lib
5
6 prep_tmp
7 prep_cuser
8 prep_config_t_env games /etc/userv
9
10 : '---------- test service invocation ----------'
11
12 really -u $cuser \
13 userv games userv-t-env >"$tmp"/env
14
15 check_expected_env "$tmp"/env
16
17 : '---------- test rejection (wrong calling user) ----------'
18
19 expect_output 255 '' \
20 really -u daemon \
21 userv games userv-t-env
22
23
24 echo ok.