]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - Rules
Generate .test-result files for ordinary tests.
[thirdparty/glibc.git] / Rules
diff --git a/Rules b/Rules
index d4a0027dd69717b8035a18e2f21d796902501fb2..3e305ddaa551a84054fc143fd76614c711337aeb 100644 (file)
--- a/Rules
+++ b/Rules
@@ -1,4 +1,4 @@
-# Copyright (C) 1991-2013 Free Software Foundation, Inc.
+# Copyright (C) 1991-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
@@ -183,42 +183,14 @@ make-test-out = $(test-wrapper-env) \
                GCONV_PATH=$(common-objpfx)iconvdata LC_ALL=C \
                $($*-ENV) $(host-test-program-cmd) $($*-ARGS)
 $(objpfx)%.out: %.input $(objpfx)%
-       $(make-test-out) > $@ < $(word 1,$^)
+       $(make-test-out) > $@ < $(word 1,$^); \
+       $(evaluate-test)
 $(objpfx)%.out: /dev/null $(objpfx)%   # Make it 2nd arg for canned sequence.
-       $(make-test-out) > $@
+       $(make-test-out) > $@; \
+       $(evaluate-test)
 
 endif  # tests
 
-# Build and run benchmark programs.
-binaries-bench := $(addprefix $(objpfx)bench-,$(bench))
-
-run-bench = $(test-wrapper-env) \
-           GCONV_PATH=$(common-objpfx)iconvdata LC_ALL=C \
-           $($*-ENV) $(run-via-rtld-prefix) $${run}
-
-bench: $(binaries-bench)
-       for run in $^; do \
-         echo "Running $${run}"; \
-         eval $(run-bench) >>  $(objpfx)bench.out-tmp; \
-       done; \
-       if [ -f $(objpfx)bench.out ]; then \
-         mv -f $(objpfx)bench.out $(objpfx)bench.out.old; \
-       fi; \
-       mv -f $(objpfx)bench.out-tmp $(objpfx)bench.out
-
-$(binaries-bench): %: %.o \
-  $(sort $(filter $(common-objpfx)lib%,$(link-libc))) \
-  $(addprefix $(csu-objpfx),start.o) $(+preinit) $(+postinit)
-       $(+link)
-
-$(objpfx)bench-%.c: %-inputs bench-skeleton.c
-       { if [ -n "$($*-INCLUDE)" ]; then \
-         cat $($*-INCLUDE); \
-       fi; \
-       $(..)scripts/bench.pl $(patsubst %-inputs,%,$<) \
-         $($*-ITER) $($*-ARGLIST) $($*-RET); } > $@-tmp
-       mv -f $@-tmp $@
-
 \f
 .PHONY: distclean realclean subdir_distclean subdir_realclean \
        subdir_clean subdir_mostlyclean subdir_testclean