1 |
commit: 16e1360444abb8e6c691cddc3c845c7db21d5e7c |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Mar 2 11:56:42 2019 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 2 20:05:56 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16e13604 |
7 |
|
8 |
sys-devel/binutils: remove unused file |
9 |
|
10 |
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/11211 |
12 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
13 |
|
14 |
sys-devel/binutils/files/binutils-2.31-test-driver | 148 --------------------- |
15 |
1 file changed, 148 deletions(-) |
16 |
|
17 |
diff --git a/sys-devel/binutils/files/binutils-2.31-test-driver b/sys-devel/binutils/files/binutils-2.31-test-driver |
18 |
deleted file mode 100644 |
19 |
index 0218a01f616..00000000000 |
20 |
--- a/sys-devel/binutils/files/binutils-2.31-test-driver |
21 |
+++ /dev/null |
22 |
@@ -1,148 +0,0 @@ |
23 |
-#! /bin/sh |
24 |
-# test-driver - basic testsuite driver script. |
25 |
- |
26 |
-scriptversion=2016-01-11.22; # UTC |
27 |
- |
28 |
-# Copyright (C) 2011-2017 Free Software Foundation, Inc. |
29 |
-# |
30 |
-# This program is free software; you can redistribute it and/or modify |
31 |
-# it under the terms of the GNU General Public License as published by |
32 |
-# the Free Software Foundation; either version 2, or (at your option) |
33 |
-# any later version. |
34 |
-# |
35 |
-# This program is distributed in the hope that it will be useful, |
36 |
-# but WITHOUT ANY WARRANTY; without even the implied warranty of |
37 |
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
38 |
-# GNU General Public License for more details. |
39 |
-# |
40 |
-# You should have received a copy of the GNU General Public License |
41 |
-# along with this program. If not, see <http://www.gnu.org/licenses/>. |
42 |
- |
43 |
-# As a special exception to the GNU General Public License, if you |
44 |
-# distribute this file as part of a program that contains a |
45 |
-# configuration script generated by Autoconf, you may include it under |
46 |
-# the same distribution terms that you use for the rest of that program. |
47 |
- |
48 |
-# This file is maintained in Automake, please report |
49 |
-# bugs to <bug-automake@×××.org> or send patches to |
50 |
-# <automake-patches@×××.org>. |
51 |
- |
52 |
-# Make unconditional expansion of undefined variables an error. This |
53 |
-# helps a lot in preventing typo-related bugs. |
54 |
-set -u |
55 |
- |
56 |
-usage_error () |
57 |
-{ |
58 |
- echo "$0: $*" >&2 |
59 |
- print_usage >&2 |
60 |
- exit 2 |
61 |
-} |
62 |
- |
63 |
-print_usage () |
64 |
-{ |
65 |
- cat <<END |
66 |
-Usage: |
67 |
- test-driver --test-name=NAME --log-file=PATH --trs-file=PATH |
68 |
- [--expect-failure={yes|no}] [--color-tests={yes|no}] |
69 |
- [--enable-hard-errors={yes|no}] [--] |
70 |
- TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS] |
71 |
-The '--test-name', '--log-file' and '--trs-file' options are mandatory. |
72 |
-END |
73 |
-} |
74 |
- |
75 |
-test_name= # Used for reporting. |
76 |
-log_file= # Where to save the output of the test script. |
77 |
-trs_file= # Where to save the metadata of the test run. |
78 |
-expect_failure=no |
79 |
-color_tests=no |
80 |
-enable_hard_errors=yes |
81 |
-while test $# -gt 0; do |
82 |
- case $1 in |
83 |
- --help) print_usage; exit $?;; |
84 |
- --version) echo "test-driver $scriptversion"; exit $?;; |
85 |
- --test-name) test_name=$2; shift;; |
86 |
- --log-file) log_file=$2; shift;; |
87 |
- --trs-file) trs_file=$2; shift;; |
88 |
- --color-tests) color_tests=$2; shift;; |
89 |
- --expect-failure) expect_failure=$2; shift;; |
90 |
- --enable-hard-errors) enable_hard_errors=$2; shift;; |
91 |
- --) shift; break;; |
92 |
- -*) usage_error "invalid option: '$1'";; |
93 |
- *) break;; |
94 |
- esac |
95 |
- shift |
96 |
-done |
97 |
- |
98 |
-missing_opts= |
99 |
-test x"$test_name" = x && missing_opts="$missing_opts --test-name" |
100 |
-test x"$log_file" = x && missing_opts="$missing_opts --log-file" |
101 |
-test x"$trs_file" = x && missing_opts="$missing_opts --trs-file" |
102 |
-if test x"$missing_opts" != x; then |
103 |
- usage_error "the following mandatory options are missing:$missing_opts" |
104 |
-fi |
105 |
- |
106 |
-if test $# -eq 0; then |
107 |
- usage_error "missing argument" |
108 |
-fi |
109 |
- |
110 |
-if test $color_tests = yes; then |
111 |
- # Keep this in sync with 'lib/am/check.am:$(am__tty_colors)'. |
112 |
- red='[0;31m' # Red. |
113 |
- grn='[0;32m' # Green. |
114 |
- lgn='[1;32m' # Light green. |
115 |
- blu='[1;34m' # Blue. |
116 |
- mgn='[0;35m' # Magenta. |
117 |
- std='[m' # No color. |
118 |
-else |
119 |
- red= grn= lgn= blu= mgn= std= |
120 |
-fi |
121 |
- |
122 |
-do_exit='rm -f $log_file $trs_file; (exit $st); exit $st' |
123 |
-trap "st=129; $do_exit" 1 |
124 |
-trap "st=130; $do_exit" 2 |
125 |
-trap "st=141; $do_exit" 13 |
126 |
-trap "st=143; $do_exit" 15 |
127 |
- |
128 |
-# Test script is run here. |
129 |
-"$@" >$log_file 2>&1 |
130 |
-estatus=$? |
131 |
- |
132 |
-if test $enable_hard_errors = no && test $estatus -eq 99; then |
133 |
- tweaked_estatus=1 |
134 |
-else |
135 |
- tweaked_estatus=$estatus |
136 |
-fi |
137 |
- |
138 |
-case $tweaked_estatus:$expect_failure in |
139 |
- 0:yes) col=$red res=XPASS recheck=yes gcopy=yes;; |
140 |
- 0:*) col=$grn res=PASS recheck=no gcopy=no;; |
141 |
- 77:*) col=$blu res=SKIP recheck=no gcopy=yes;; |
142 |
- 99:*) col=$mgn res=ERROR recheck=yes gcopy=yes;; |
143 |
- *:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;; |
144 |
- *:*) col=$red res=FAIL recheck=yes gcopy=yes;; |
145 |
-esac |
146 |
- |
147 |
-# Report the test outcome and exit status in the logs, so that one can |
148 |
-# know whether the test passed or failed simply by looking at the '.log' |
149 |
-# file, without the need of also peaking into the corresponding '.trs' |
150 |
-# file (automake bug#11814). |
151 |
-echo "$res $test_name (exit status: $estatus)" >>$log_file |
152 |
- |
153 |
-# Report outcome to console. |
154 |
-echo "${col}${res}${std}: $test_name" |
155 |
- |
156 |
-# Register the test result, and other relevant metadata. |
157 |
-echo ":test-result: $res" > $trs_file |
158 |
-echo ":global-test-result: $res" >> $trs_file |
159 |
-echo ":recheck: $recheck" >> $trs_file |
160 |
-echo ":copy-in-global-log: $gcopy" >> $trs_file |
161 |
- |
162 |
-# Local Variables: |
163 |
-# mode: shell-script |
164 |
-# sh-indentation: 2 |
165 |
-# eval: (add-hook 'write-file-hooks 'time-stamp) |
166 |
-# time-stamp-start: "scriptversion=" |
167 |
-# time-stamp-format: "%:y-%02m-%02d.%02H" |
168 |
-# time-stamp-time-zone: "UTC0" |
169 |
-# time-stamp-end: "; # UTC" |
170 |
-# End: |