mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-11 03:40:06 +00:00
f8c17e79fa
This patch, an updated version of <https://sourceware.org/ml/libc-alpha/2014-01/msg00195.html>, makes it possible for .test-result files for individual tests to contain XPASS and XFAIL rather than PASS and FAIL in cases where failure is expected. This replaces the marking of two individual tests with "-" to cause them to be expected at makefile level to fail; evaluate-test.sh will ensure it exits with status 0 for an expected failure. Tested x86_64. * scripts/evaluate-test.sh: Take new argument indicating whether failure is expected. * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh indicating whether failure is expected. * conform/Makefile (test-xfail-run-conformtest): New variable. ($(objpfx)run-conformtest.out): Don't expect to fail at makefile level. * posix/Makefile (test-xfail-annexc): New variable. ($(objpfx)annexc.out): Don't expect to fail at makefile level.
42 lines
1.3 KiB
Makefile
42 lines
1.3 KiB
Makefile
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
|
|
# This file is part of the GNU C Library.
|
|
|
|
# The GNU C Library is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
# License as published by the Free Software Foundation; either
|
|
# version 2.1 of the License, or (at your option) any later version.
|
|
|
|
# The GNU C Library is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
# Lesser General Public License for more details.
|
|
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
# License along with the GNU C Library; if not, see
|
|
# <http://www.gnu.org/licenses/>.
|
|
|
|
#
|
|
# Sub-makefile for conform portion of the library.
|
|
#
|
|
subdir := conform
|
|
|
|
include ../Makeconfig
|
|
|
|
include ../Rules
|
|
|
|
ifneq (yes,$(fast-check))
|
|
ifeq (no,$(cross-compiling))
|
|
tests: $(objpfx)run-conformtest.out
|
|
endif
|
|
endif
|
|
|
|
test-xfail-run-conformtest = yes
|
|
$(objpfx)run-conformtest.out: run-conformtest.sh conformtest.pl \
|
|
$(wildcard data/*.h-data) \
|
|
$(wildcard data/*/*.h-data)
|
|
$(BASH) -e $< $(objpfx) $(PERL) '$(CC)' \
|
|
'-I../include $(+sysdep-includes) $(sysincludes) -I..'; \
|
|
$(evaluate-test)
|
|
|
|
generated = $(wildcard $(objpfx)conform-*.out)
|