File: t-config

package info (click to toggle)
userv 1.2.3
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 832 kB
  • sloc: ansic: 4,228; lex: 287; sh: 247; makefile: 159
file content (24 lines) | stat: -rwxr-xr-x 368 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
21
22
23
24
#!/bin/bash
set -ex

. tests/lib

prep_tmp
prep_cuser
prep_config_t_env games /etc/userv

: '---------- test service invocation ----------'

really -u $cuser \
userv games userv-t-env >"$tmp"/env

check_expected_env "$tmp"/env

: '---------- test rejection (wrong calling user) ----------'

expect_output 255 '' \
really -u daemon \
userv games userv-t-env


echo ok.