1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/build/pymake/tests/file-functions.mk Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,19 @@ 1.4 +$(shell \ 1.5 +touch test.file; \ 1.6 +touch .testhidden; \ 1.7 +mkdir foo; \ 1.8 +touch foo/testfile; \ 1.9 +) 1.10 + 1.11 +all: 1.12 + test "$(abspath test.file)" = "$(CURDIR)/test.file" 1.13 + test "$(realpath test.file)" = "$(CURDIR)/test.file" 1.14 + test "$(sort $(wildcard *))" = "foo test.file" 1.15 +# commented out because GNU make matches . and .. while python doesn't, and I don't 1.16 +# care enough 1.17 +# test "$(sort $(wildcard .*))" = ". .. .testhidden" 1.18 + test "$(sort $(wildcard test*))" = "test.file" 1.19 + test "$(sort $(wildcard foo/*))" = "foo/testfile" 1.20 + test "$(sort $(wildcard ./*))" = "./foo ./test.file" 1.21 + test "$(sort $(wildcard f?o/*))" = "foo/testfile" 1.22 + @echo TEST-PASS