Changeset 2076 for trunk/src/libctests/glibc/Makefile
- Timestamp:
- Jun 26, 2005, 12:42:04 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libctests/glibc/Makefile
-
Property cvs2svn:cvs-rev
changed from
1.5
to1.6
r2075 r2076 1 1 # $Id$ 2 3 4 # default rule 5 all: test -logged2 3 4 # default rule 5 all: tests-logged 6 6 7 7 # … … 12 12 LOG = $(OUTDIR)/$(1)-$(TS).log 13 13 CC = gcc 14 LDFLAGS= 14 15 CFLAGS = -O -D_GNU_SOURCE -std=gnu99 -DOBJPFX=\"$(OUTDIR)/\" 15 16 ifeq ($(shell uname -m),amd64) … … 24 25 # 25 26 ifeq ($(TARGET),) 26 TARGET := bsd27 TARGET := innoteklibc 27 28 endif 28 29 29 30 ifeq ($(TARGET),glibc) 30 SKIPPED := 31 EX CEPTIONS :=31 SKIPPED := 32 EXPECTED := 32 33 _TARGET_OK := ok 33 34 CFLAGS += \ … … 44 45 45 46 ifeq ($(TARGET),innoteklibc) 46 SKIPPED := 47 EXCEPTIONS := 47 SKIPPED := \ 48 \ 49 string/test-ffs.c \ 50 string/test-stpncpy.c \ 51 string/tst-bswap.c \ 52 string/tst-strfry.c \ 53 \ 54 time/tst_wcsftime.c \ 55 time/tst-ftime_l.c \ 56 time/tst-getdate.c \ 57 \ 58 timezone/test-tz.c \ 59 timezone/tst-timezone.c \ 60 \ 61 wcsmbs/tst-wcpncpy.c \ 62 wcsmbs/tst-wcsnlen.c \ 63 64 EXPECTED := \ 65 wcsmbs/tst-mbrtowc.c \ 66 wcsmbs/tst-wcrtomb.c \ 67 time/tst-posixtz.c 68 69 CFLAGS += -Zomf -g \ 70 -DHAVE_STRNLEN \ 71 -DHAVE_MEMPCPY 72 LDFLAGS += -Zstack 512 48 73 _TARGET_OK := ok 49 74 endif … … 72 97 string/tst-strfry.c 73 98 EXCEPTIONS := \ 74 catgets/test-gencat.c 99 catgets/test-gencat.c 75 100 _TARGET_OK := ok 76 101 CFLAGS += -I sysdeps/unix/bsd -D__BSD__ … … 85 110 @echo TS=$(TS) 86 111 87 112 88 113 # 89 114 # The test. … … 135 160 136 161 GRP := \ 137 grp/testgrp.c 162 grp/testgrp.c 138 163 # grp/tst_fgetgrent.c 139 164 … … 213 238 libio/tst_wprintf2.c \ 214 239 libio/tst_wscanf.c 215 240 216 241 libio/tst-widetext.c_INPUT = libio/tst-widetext.input 217 242 libio/tst_getwc.c_INPUT = libio/tst_getwc.input … … 240 265 malloc/tst-valloc.c 241 266 # malloc/tst-mtrace.c 242 # malloc/tst-mtrace.sh 267 # malloc/tst-mtrace.sh 243 268 244 269 MATH := \ … … 260 285 math/test-tgmath.c \ 261 286 math/tst-definitions.c 262 # math/atest-exp2.c 263 # math/atest-sincos.c 264 # math/atest-exp.c 287 # math/atest-exp2.c 288 # math/atest-sincos.c 289 # math/atest-exp.c 265 290 # math/gen-libm-test.pl 266 291 $(foreach t,$(MATH),$(eval $(t)_LDFLAGS := -lm)) … … 369 394 # posix/tst-sysconf.c - too new? 370 395 # todo: 371 # posix/wordexp-test.c 372 # posix/wordexp-tst.sh 373 # posix/globtest.c 374 # posix/globtest.sh 375 # posix/tst-getconf.sh 396 # posix/wordexp-test.c 397 # posix/wordexp-tst.sh 398 # posix/globtest.c 399 # posix/globtest.sh 400 # posix/tst-getconf.sh 376 401 377 402 posix/tst-fnmatch.c_INPUT = posix/tst-fnmatch.input … … 387 412 posix/bug-glob1.c_ARGS = "$(OBJDIR)/posix/" 388 413 posix/tst-execvp3.c_ARGS = --test-dir="$(OBJDIR)/posix/" 389 414 390 415 391 416 PWD := \ … … 444 469 stdio-common/tstgetln.c_INPUT = stdio-common/tstgetln.input 445 470 stdio-common/tstscanf.c_INPUT = stdio-common/tstscanf.input 446 # stdio-common/tst-printf.c 447 # stdio-common/tst-printf.sh 448 # stdio-common/tst-unbputc.c 449 # stdio-common/tst-unbputc.sh 471 # stdio-common/tst-printf.c 472 # stdio-common/tst-printf.sh 473 # stdio-common/tst-unbputc.c 474 # stdio-common/tst-unbputc.sh 450 475 451 476 STDLIB := \ … … 474 499 stdlib/testdiv.c 475 500 # todo: 476 # stdlib/tst-fmtmsg.c 501 # stdlib/tst-fmtmsg.c 477 502 # stdlib/tst-fmtmsg.sh 478 503 # stdlib/tst-putenvmod.c … … 611 636 # 612 637 # Generate test rules 613 # 638 # 614 639 _TESTS := 615 640 … … 617 642 define def_simple 618 643 619 $(OUTDIR)/$2.exe: $1 $(OUTDIR)/$(dir $1).dir_created $($(1)_DEPS) 620 @echo "* COMPILING: $1" 621 @$$(CC) $$(CFLAGS) -o $$@ $($(1)_CFLAGS) $($(1)_LDFLAGS) $$< || (echo "$$(CC) $$(CFLAGS) -o $$@ $$<" && exit 1) 622 623 $(OUTDIR)/$2.result: $(OUTDIR)/$2.exe 624 @echo "* TESTING : $1" 625 @if LC_ALL=C $($1_ENVS) $$< $($1_ARGS) $(if $($(1)_INPUT), < $($(1)_INPUT),) ; then echo OK > $$@; else echo FAILURE > $$@; fi 626 @echo "* RESULT : $1 - `cat $$@`" 644 $(OUTDIR)/$2.result: $1 $(OUTDIR)/$(dir $1).dir_created $($(1)_DEPS) 645 @echo "########## $1"; \ 646 echo "## BUILDING: $$(CC) $$(CFLAGS) -o $(OUTDIR)/$2.exe $($(1)_CFLAGS) $($(1)_LDFLAGS) $$<"; \ 647 if $$(CC) $$(CFLAGS) -o $(OUTDIR)/$2.exe $($(1)_CFLAGS) $($(1)_LDFLAGS) $$<; then \ 648 echo "## RUNNING : LC_ALL=C $($1_ENVS) $(OUTDIR)/$2.exe $($1_ARGS) $(if $($(1)_INPUT), < $($(1)_INPUT),)"; \ 649 if LC_ALL=C $($1_ENVS) $(OUTDIR)/$2.exe $($1_ARGS) $(if $($(1)_INPUT), < $($(1)_INPUT),); then\ 650 echo OK > $$@; \ 651 printf "########## %-26s - SUCCESS\n" "$1"; \ 652 else \ 653 echo "## rc=$$$$?"; \ 654 printf "########## %-26s - $(if $(filter $1,$(EXPECTED)),EXPECTED FAILURE,FAILURE)\n" "$1"; \ 655 echo "$(if $(filter $1,$(EXPECTED)),EXPECTED,FAILURE)" > $$@; \ 656 fi \ 657 else \ 658 echo "## rc=$$$$? "; \ 659 echo "## $$(CC) $$(CFLAGS) -o $(OUTDIR)/$2.exe $($(1)_CFLAGS) $($(1)_LDFLAGS) $$<"; \ 660 printf "########## %-26s - BUILD FAILURE\n" "$1"; \ 661 echo "FAILURE - $$(CC) $$(CFLAGS) -o $(OUTDIR)/$2.exe $($(1)_CFLAGS) $($(1)_LDFLAGS) $$<" > $$@; \ 662 fi 663 664 $2: $(OUTDIR)/$2.result 665 @ 627 666 628 667 _TESTS += $(OUTDIR)/$2.result … … 633 672 define def_skipped 634 673 $(OUTDIR)/$2.result: 635 @ echo "* SKIPPING : $1"636 @echo "SKIPPED" > $$@674 @printf "########## %-26s - SKIPPED\n" "$1"; \ 675 echo "SKIPPED" > $$@ 637 676 638 677 _TESTS += $(OUTDIR)/$2.result … … 656 695 @echo " SUCCESS : `cat /dev/null $$^ | grep OK | wc -l`" 657 696 @echo " SKIPPED : `cat /dev/null $$^ | grep SKIPPED | wc -l`" 697 @echo " EXPECTED: `cat /dev/null $$^ | grep EXPECTED | wc -l`" 658 698 @echo " FAILURES: `cat /dev/null $$^ | grep FAILURE | wc -l`" 659 699 … … 664 704 665 705 666 # 667 # generate directory rules 706 # 707 # generate directory rules 668 708 # 669 709 define def_dir 670 710 $1.dir_created: 671 mkdir -p $1672 echo > $$@711 @mkdir -p $1 712 @echo > $$@ 673 713 endef 674 714 … … 679 719 # 680 720 # All tests (expect the ones in the next sections). 681 # 721 # 682 722 tests: $(_TESTS) 683 723 @echo "***************" 684 724 @echo " SUCCESS : `cat /dev/null $^ | grep OK | wc -l`" 685 725 @echo " SKIPPED : `cat /dev/null $^ | grep SKIPPED | wc -l`" 726 @echo " EXPECTED: `cat /dev/null $^ | grep EXPECTED | wc -l`" 686 727 @echo " FAILURES: `cat /dev/null $^ | grep FAILURE | wc -l`" 687 728 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.