Ignore:
Timestamp:
Jul 3, 2005, 5:48:26 AM (20 years ago)
Author:
bird
Message:

..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libctests/glibc/Makefile

    • Property cvs2svn:cvs-rev changed from 1.13 to 1.14
    r2175 r2176  
    99#
    1010OUTDIR = ./out
     11ABSOUTDIR = $(CURDIR)/out
    1112TS     = $(shell date '+"%Y-%m-%d-%H-%M-%S"')
    1213LOG    = $(OUTDIR)/$(1)-$(TS).log
     
    4748        -DHAVE_64BIT_FILEIO_TYPES \
    4849        -DHAVE_SWPRINTF \
    49         -DHAVE_RPC_NETDB_H
     50        -DHAVE_RPC_NETDB_H \
     51        -DHAVE_NL_LANGINFO_EXTENTIONS
    5052endif
    5153
    5254ifeq ($(TARGET),innoteklibc)
    5355SKIPPED    := \
     56        io/test-stat.c \
     57        io/test-stat2.c \
     58        \
     59        login/tst-grantpt.c \
     60        login/tst-utmpx.c \
     61        \
    5462        malloc/tst-mallocstate.c \
    5563        \
     
    153161        posix/tst-pcre.c \
    154162        misc/tst-tsearch.c  \
    155         misc/tst-dirname.c
     163        misc/tst-dirname.c \
     164        io/bug-ftw4.c
    156165       
    157166# NOTES:       
     
    164173# posix/tst-fnmatch.c:                          This too!
    165174# misc/tst-tsearch.c:                           This really needs looking at on BSD.
     175# io/bug-ftw4.c:                                        open("dir")
    166176       
    167177CFLAGS     += -Zomf -g -I sysdeps/os2 \
     
    313323        io/tst-statvfs.c
    314324# todo io/ftwtest.sh
     325io/bug-ftw2.c_DIR = ./io
    315326
    316327LIBIO := \
     
    761772define def_simple
    762773
     774$(eval _EXEC := $(strip $(if $($1_DIR),\
     775        cd $($(1)_DIR) && LC_ALL=C $($1_ENVS) $(ABSOUTDIR)/$(2).exe $($1_ARGS),\
     776        cd $(dir $(OUTDIR)/$2) && LC_ALL=C $($1_ENVS) $(notdir $2).exe $($1_ARGS))))
     777
    763778$(OUTDIR)/$2.result: $1 $(OUTDIR)/$(dir $1).dir_created $($(1)_DEPS)
    764779        @echo "########## $1"; \
    765780        echo  "##  BUILDING: $$(CC) $$(CFLAGS) $$(LDFLAGS) -o $(OUTDIR)/$2.exe $($(1)_CFLAGS) $($(1)_LDFLAGS) $$<"; \
    766781        if $$(CC) $$(CFLAGS) $$(LDFLAGS) -o $(OUTDIR)/$2.exe $($(1)_CFLAGS) $($(1)_LDFLAGS) $$<; then \
    767                 echo "##  RUNNING : (cd $$(dir $$@) && LC_ALL=C $($1_ENVS) $(notdir $2).exe $($1_ARGS)) $(if $($(1)_INPUT), < $($(1)_INPUT),)"; \
    768                 if (cd $$(dir $$@) && LC_ALL=C $($1_ENVS) $(notdir $2).exe $($1_ARGS)) $(if $($(1)_INPUT), < $($(1)_INPUT),); then\
     782                echo "##  RUNNING : ( $(_EXEC) )$(if $($(1)_INPUT), < $($(1)_INPUT))"; \
     783                if ( $(_EXEC) )$(if $($(1)_INPUT), < $($(1)_INPUT)); then \
    769784                        echo OK > $$@; \
    770785                        printf "########## %-26s - SUCCESS\n" "$1"; \
     
    793808        @printf "########## %-26s - SKIPPED\n" "$1"; \
    794809        echo "SKIPPED" > $$@
    795        
     810
     811$2: $(OUTDIR)/$2.result
     812        @
     813
    796814_TESTS += $(OUTDIR)/$2.result
    797815$(eval _$(TEST) += $(OUTDIR)/$2.result)
Note: See TracChangeset for help on using the changeset viewer.