build/pymake/tests/file-functions-symlinks.mk
author Simon Sapin <simon.sapin@exyr.org>
Tue, 06 Jun 2017 08:13:39 -0700
changeset 1150023 c6508a9f0fb5f1648b37f299be7f3e481cb26c31
parent 26359 80da01543b565978817c19ad3c739fda73784a79
permissions -rw-r--r--
servo: Merge #17185 - Fix some "unused" warnings (from servo:unused); r=emilio Source-Repo: https://github.com/servo/servo Source-Revision: 87005a0df33531995635728989c929572de429e7

#T returncode-on: {'win32': 2}
$(shell \
touch test.file; \
ln -s test.file test.symlink; \
ln -s test.missing missing.symlink; \
touch .testhidden; \
mkdir foo; \
touch foo/testfile; \
ln -s foo symdir; \
)

all:
	test "$(abspath test.file test.symlink)" = "$(CURDIR)/test.file $(CURDIR)/test.symlink"
	test "$(realpath test.file test.symlink)" = "$(CURDIR)/test.file $(CURDIR)/test.file"
	test "$(sort $(wildcard *))" = "foo symdir test.file test.symlink"
	test "$(sort $(wildcard .*))" = ". .. .testhidden"
	test "$(sort $(wildcard test*))" = "test.file test.symlink"
	test "$(sort $(wildcard foo/*))" = "foo/testfile"
	test "$(sort $(wildcard ./*))" = "./foo ./symdir ./test.file ./test.symlink"
	test "$(sort $(wildcard f?o/*))" = "foo/testfile"
	test "$(sort $(wildcard */*))" = "foo/testfile symdir/testfile"
	@echo TEST-PASS