~sircmpwn/ctools

ref: 0e9f63c42367ef836a3dbe9369cb987558b0d9e3 ctools/test/link -rwxr-xr-x 276 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" 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