~sircmpwn/ctools

bb5007143abfc22d947c422bfade941e2a741c8c — Drew DeVault 1 year, 9 months ago efd4c32
link: add conformance test
2 files changed, 14 insertions(+), 0 deletions(-)

A test/link
M test/meson.build
A test/link => test/link +13 -0
@@ 0,0 1,13 @@
#!/bin/sh
. "$HARNESS" link

should_make_link() {
	echo "hello world" >"$TMPDIR"/foo
	link "$TMPDIR"/foo "$TMPDIR"/bar
	[ "$(cat "$TMPDIR"/bar)" = "hello world" ]
	link -- "$TMPDIR"/foo "$TMPDIR"/baz
	[ "$(cat "$TMPDIR"/baz)" = "hello world" ]
}

runtests \
	should_make_link

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