mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-06 14:10:30 +08:00
Correct dependencies for test-tz.
This commit is contained in:
parent
43e2ba6ef6
commit
66284f47ac
@ -35,7 +35,7 @@ routines := offtime asctime clock ctime ctime_r difftime \
|
||||
strptime
|
||||
|
||||
others := ap zdump zic
|
||||
tests := test_time clocktest
|
||||
tests := test_time clocktest test-tz
|
||||
|
||||
tzbases := africa antarctica asia australasia europe northamerica \
|
||||
southamerica etcetera factory systemv \
|
||||
@ -54,15 +54,6 @@ all: # Make this the default target; it will be defined in Rules.
|
||||
|
||||
include ../Makeconfig # Get objpfx defined so we can use it below.
|
||||
|
||||
ifeq (no,$(cross-compiling))
|
||||
# We can run the test-tz test only if we can install the test data using
|
||||
# zic. This isn't possible when cross-compiling.
|
||||
tests += test-tz
|
||||
|
||||
# Before the test-tz test can be run we need the data to be installed.
|
||||
tests: install-test-data
|
||||
endif
|
||||
|
||||
# z.* use this variable.
|
||||
define nl
|
||||
|
||||
@ -71,7 +62,7 @@ endef
|
||||
-include $(addprefix $(objpfx)z.,$(tzfiles))
|
||||
|
||||
# Make these absolute file names.
|
||||
installed-localtime-file := $(firstword $(filter /%,$(localtime-file)) \
|
||||
installed-localtime-file := $(firstword $(filter /%,$(inst_localtime-file)) \
|
||||
$(addprefix $(inst_zonedir)/, \
|
||||
$(localtime-file)))
|
||||
installed-posixrules-file := $(firstword $(filter /%,$(posixrules-file)) \
|
||||
@ -178,15 +169,21 @@ CFLAGS-tzfile.c = $(tz-cflags)
|
||||
CFLAGS-tzset.c = $(tz-cflags)
|
||||
|
||||
# We have to make sure the data for testing the tz functions is available.
|
||||
.PHONY: install-test-data
|
||||
install-test-data: northamerica $(objpfx)zic $(leapseconds) yearistype \
|
||||
etcetera simplebackw
|
||||
$(objpfx)test-tz.out: $(addprefix $(objpfx)testdata/, America/New_York \
|
||||
Etc/UTC UTC)
|
||||
|
||||
$(objpfx)testdata/America/New_York: northamerica $(objpfx)zic \
|
||||
$(leapseconds) yearistype
|
||||
$(built-program-cmd) -d $(objpfx)testdata -L $(leapseconds) \
|
||||
-y yearistype northamerica
|
||||
$(objpfx)testdata/Etc/UTC: etcetera $(objpfx)zic $(leapseconds) yearistype
|
||||
$(built-program-cmd) -d $(objpfx)testdata -L $(leapseconds) \
|
||||
-y yearistype etcetera
|
||||
$(objpfx)testdata/UTC: simplebackw $(objpfx)zic $(objpfx)testdata/Etc/UTC \
|
||||
$(leapseconds) yearistype
|
||||
$(built-program-cmd) -d $(objpfx)testdata -L $(leapseconds) \
|
||||
-y yearistype simplebackw
|
||||
|
||||
test-tz-ENV = TZDIR=$(objpfx)testdata
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user