summaryrefslogtreecommitdiff
path: root/test/Makefile
blob: dcd5fd41147622e16e72b0cb87bc83a46a2e63ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
TESTS = ascii.t iso.t utf8.t utf16.t misc.t

d2u_os=$(shell uname -s)

# GB18030 test is not working on Cygwin and MSYS. They do not support zh_CN.GB18030 locale.
ifeq ($(findstring CYGWIN,$(d2u_os)),)
ifeq ($(findstring MSYS,$(d2u_os)),)
TESTS += gb18030.t
endif
endif

# Windows version does not support symlinks like the Unix version.
ifneq ($(findstring MINGW,$(d2u_os)),MINGW)
TESTS += symlink.t
endif


all: test

check: test

test:
	prove -v $(TESTS)


ascii:
	prove -v $@.t

iso:
	prove -v $@.t

misc:
	prove -v $@.t

utf8:
	prove -v $@.t

utf16:
	prove -v $@.t

gb18030:
	prove -v $@.t

symlink:
	prove -v $@.t

clean:
	rm -f out*.txt in_link.txt