~sircmpwn/ctools

ref: bb5007143abfc22d947c422bfade941e2a741c8c ctools/test/link -rwxr-xr-x 276 bytes
bb500714Drew DeVault link: add conformance test 1 year, 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
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