~sircmpwn/ctools

ref: 0e9f63c42367ef836a3dbe9369cb987558b0d9e3 ctools/test/logname -rwxr-xr-x 233 bytes
0e9f63c4 — Christopher Vittal Add dirname 1 year, 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
. "$HARNESS" logname

should_give_logname() {
	# These are not necessarily the same, but are usually so
	[ "$(logname)" = "$(id -un)" ]
}

should_handle_ddash logname

runtests \
	should_handle_ddash \
	should_give_logname