summaryrefslogtreecommitdiff
path: root/build/pymake/tests/file-functions.mk
blob: 7e4c68e85e98adb9cc0a0e5bb7d469ccfc160707 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$(shell \
touch test.file; \
touch .testhidden; \
mkdir foo; \
touch foo/testfile; \
)

all:
	test "$(abspath test.file)" = "$(CURDIR)/test.file"
	test "$(realpath test.file)" = "$(CURDIR)/test.file"
	test "$(sort $(wildcard *))" = "foo test.file"
# commented out because GNU make matches . and .. while python doesn't, and I don't
# care enough
#	test "$(sort $(wildcard .*))" = ". .. .testhidden"
	test "$(sort $(wildcard test*))" = "test.file"
	test "$(sort $(wildcard foo/*))" = "foo/testfile"
	test "$(sort $(wildcard ./*))" = "./foo ./test.file"
	test "$(sort $(wildcard f?o/*))" = "foo/testfile"
	@echo TEST-PASS