~sircmpwn/ctools

efd4c32022a9aaced9232a14704e352901f7281c — Drew DeVault 1 year, 9 months ago 08754b6
logname: add conformance test
2 files changed, 14 insertions(+), 0 deletions(-)

A test/logname
M test/meson.build
A test/logname => test/logname +13 -0
@@ 0,0 1,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

M test/meson.build => test/meson.build +1 -0
@@ 8,6 8,7 @@ test_files = [
	'cksum',
	'cmp',
	'false',
	'logname',
]

foreach test_file : test_files