Gentoo Archives: gentoo-commits

From: "Markos Chandras (hwoarang)" <hwoarang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-benchmarks/ltp/files: runltp-path.patch
Date: Sat, 03 Nov 2012 18:58:50
Message-Id: 20121103185832.9F0DC215FF@flycatcher.gentoo.org
1 hwoarang 12/11/03 18:58:32
2
3 Modified: runltp-path.patch
4 Log:
5 Version bump. Clean up ebuild. Remove old. Take maintainership
6
7 (Portage version: 2.1.11.30/cvs/Linux x86_64, signed Manifest commit with key B4AFF2C2)
8
9 Revision Changes Path
10 1.4 app-benchmarks/ltp/files/runltp-path.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/ltp/files/runltp-path.patch?rev=1.4&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/ltp/files/runltp-path.patch?rev=1.4&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/ltp/files/runltp-path.patch?r1=1.3&r2=1.4
15
16 Index: runltp-path.patch
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-benchmarks/ltp/files/runltp-path.patch,v
19 retrieving revision 1.3
20 retrieving revision 1.4
21 diff -u -r1.3 -r1.4
22 --- runltp-path.patch 11 Mar 2006 11:17:19 -0000 1.3
23 +++ runltp-path.patch 3 Nov 2012 18:58:32 -0000 1.4
24 @@ -1,11 +1,199 @@
25 ---- runltp.orig 2004-11-06 11:40:02.729295792 +0100
26 -+++ runltp 2004-11-06 11:40:25.758808272 +0100
27 -@@ -43,7 +43,7 @@
28 +Index: ltp-full-20120903/runltp
29 +===================================================================
30 +--- ltp-full-20120903.orig/runltp
31 ++++ ltp-full-20120903/runltp
32 +@@ -76,7 +76,7 @@ setup()
33 echo "FATAL: unable to change directory to $(dirname $0)"
34 exit 1
35 }
36 - export LTPROOT=${PWD}
37 -+ export LTPROOT=/usr/libexec/ltp/
38 ++ export LTPROOT=/usr/libexec/ltp
39 export TMPBASE="/tmp"
40 - export TMP="${TMPBASE}/ltp-$$"
41 export PATH="${PATH}:${LTPROOT}/testcases/bin"
42 +
43 +@@ -230,7 +230,7 @@ main()
44 + /*)
45 + FAILCMDFILE="-C $OPTARG" ;;
46 + *)
47 +- FAILCMDFILE="-C $LTPROOT/output/$OPTARG"
48 ++ FAILCMDFILE="-C $TMPBASE/output/$OPTARG"
49 + ALT_DIR_OUT=1 ;;
50 + esac ;;
51 +
52 +@@ -298,7 +298,7 @@ main()
53 + /*)
54 + HTMLFILE="$OPTARG";;
55 + *)
56 +- HTMLFILE="$LTPROOT/output/$OPTARG";;
57 ++ HTMLFILE="$TMPBASE/output/$OPTARG";;
58 + esac
59 + ALT_DIR_OUT=1
60 + ALT_HTML_OUT=1;;
61 +@@ -319,7 +319,7 @@ main()
62 + /*)
63 + DMESG_DIR="$OPTARG-dmesg-output-`echo $$-``date +%X | tr -d ' '`";;
64 + *)
65 +- DMESG_DIR="$LTPROOT/output/$OPTARG-dmesg-output-`echo $$-``date +%X | tr -d ' '`";;
66 ++ DMESG_DIR="$TMPBASE/output/$OPTARG-dmesg-output-`echo $$-``date +%X | tr -d ' '`";;
67 + esac
68 + mkdir -p $DMESG_DIR
69 + ALT_DMESG_OUT=1;;
70 +@@ -329,7 +329,7 @@ main()
71 + /*)
72 + LOGFILE="-l $OPTARG" ;;
73 + *)
74 +- LOGFILE="-l $LTPROOT/results/$OPTARG"
75 ++ LOGFILE="-l $TMPBASE/results/$OPTARG"
76 + ALT_DIR_RES=1 ;;
77 + esac ;;
78 +
79 +@@ -384,7 +384,7 @@ main()
80 + /*)
81 + OUTPUTFILE="-o $OPTARG";;
82 + *)
83 +- OUTPUTFILE="-o $LTPROOT/output/$OPTARG"
84 ++ OUTPUTFILE="-o $TMPBASE/output/$OPTARG"
85 + ALT_DIR_OUT=1 ;;
86 + esac ;;
87 +
88 +@@ -431,7 +431,7 @@ main()
89 + ## It would be nice to create a default log file even if the user has not mentioned
90 + if [ ! "$LOGFILE" ]; then ## User has not mentioned about Log File name
91 + LOGFILE_NAME=$DEFAULT_FILE_NAME_GENERATION_TIME
92 +- LOGFILE="-l $LTPROOT/results/LTP_RUN_ON-$LOGFILE_NAME.log"
93 ++ LOGFILE="-l $TMPBASE/results/LTP_RUN_ON-$LOGFILE_NAME.log"
94 + ALT_DIR_RES=1
95 + PRETTY_PRT=" -p "
96 + fi
97 +@@ -443,14 +443,14 @@ main()
98 + if [ ! "$OUTPUTFILE" ]; then ## User has not mentioned about Output File name either
99 + if [ ! "$LOGFILE" ]; then ## User has not mentioned about Log File name either
100 + FAILED_FILE_NAME=$DEFAULT_FILE_NAME_GENERATION_TIME
101 +- FAILCMDFILE="-C $LTPROOT/output/LTP_RUN_ON-$FAILED_FILE_NAME.failed"
102 ++ FAILCMDFILE="-C $TMPBASE/output/LTP_RUN_ON-$FAILED_FILE_NAME.failed"
103 + else ## User Fortunately wanted a log file,
104 + FAILED_FILE_NAME=`basename $LOGFILE_NAME` ## Extract log file name and use it to construct Failed file name
105 +- FAILCMDFILE="-C $LTPROOT/output/LTP_RUN_ON-$FAILED_FILE_NAME.failed"
106 ++ FAILCMDFILE="-C $TMPBASE/output/LTP_RUN_ON-$FAILED_FILE_NAME.failed"
107 + fi
108 + else ## User Fortunately wanted a Output file
109 + FAILED_FILE_NAME=`basename $OUTPUTFILE_NAME` ## Extract output file name and use it to construct Failed file name
110 +- FAILCMDFILE="-C $LTPROOT/output/LTP_RUN_ON-$FAILED_FILE_NAME.failed"
111 ++ FAILCMDFILE="-C $TMPBASE/output/LTP_RUN_ON-$FAILED_FILE_NAME.failed"
112 + fi
113 + fi
114 +
115 +@@ -459,11 +459,11 @@ main()
116 + ## which the HTML parser will require
117 + if [ ! "$OUTPUTFILE" ]; then ## User has not mentioned about the Outputfile name, then we need to definitely generate one
118 + OUTPUTFILE_NAME=$DEFAULT_FILE_NAME_GENERATION_TIME
119 +- OUTPUTFILE="-o $LTPROOT/output/LTP_RUN_ON-$OUTPUTFILE_NAME.output"
120 ++ OUTPUTFILE="-o $TMPBASE/output/LTP_RUN_ON-$OUTPUTFILE_NAME.output"
121 + ALT_DIR_OUT=1
122 + if [ ! "$HTMLFILE" ] ; then ## User has not mentioned HTML File name, We need to create one
123 + HTMLFILE_NAME=`basename $OUTPUTFILE_NAME`
124 +- HTMLFILE="$LTPROOT/output/$HTMLFILE_NAME.html"
125 ++ HTMLFILE="$TMPBASE/output/$HTMLFILE_NAME.html"
126 + fi
127 + fi
128 + fi
129 +@@ -471,12 +471,12 @@ main()
130 + # If we need, create the output directory
131 + [ "$ALT_DIR_OUT" -eq 1 ] && \
132 + {
133 +- [ ! -d $LTPROOT/output ] && \
134 ++ [ ! -d $TMPBASE/output ] && \
135 + {
136 +- echo "INFO: creating $LTPROOT/output directory"
137 +- mkdir -p $LTPROOT/output || \
138 ++ echo "INFO: creating $TMPBASE/output directory"
139 ++ mkdir -p $TMPBASE/output || \
140 + {
141 +- echo "ERROR: failed to create $LTPROOT/output"
142 ++ echo "ERROR: failed to create $TMPBASE/output"
143 + exit 1
144 + }
145 + }
146 +@@ -484,12 +484,12 @@ main()
147 + # If we need, create the results directory
148 + [ "$ALT_DIR_RES" -eq 1 ] && \
149 + {
150 +- echo "INFO: creating $LTPROOT/results directory"
151 +- [ ! -d $LTPROOT/results ] && \
152 ++ echo "INFO: creating $TMPBASE/results directory"
153 ++ [ ! -d $TMPBASE/results ] && \
154 + {
155 +- mkdir -p $LTPROOT/results || \
156 ++ mkdir -p $TMPBASE/results || \
157 + {
158 +- echo "ERROR: failed to create $LTPROOT/results"
159 ++ echo "ERROR: failed to create $TMPBASE/results"
160 + exit 1
161 + }
162 + }
163 +@@ -867,8 +867,8 @@ main()
164 + export TEST_START_TIME=$test_start_time
165 + export TEST_END_TIME=$(date)
166 + OUTPUT_DIRECTORY=`echo $OUTPUTFILE | cut -c4-`
167 +- LOGS_DIRECTORY="$LTPROOT/results"
168 +- export TEST_OUTPUT_DIRECTORY="$LTPROOT/output"
169 ++ LOGS_DIRECTORY="$TMPBASE/results"
170 ++ export TEST_OUTPUT_DIRECTORY="$TMPBASE/output"
171 + export TEST_LOGS_DIRECTORY=$LOGS_DIRECTORY
172 + echo "Generating HTML Output.....!!"
173 + ( perl $LTPROOT/bin/genhtml.pl $LTPROOT/bin/html_report_header.txt test_start test_end test_output execution_status $OUTPUT_DIRECTORY > $HTMLFILE; )
174 +@@ -884,37 +884,37 @@ main()
175 + else
176 + TAR_FILE_NAME=LTP_RUN_$version_date$DEFAULT_FILE_NAME_GENERATION_TIME.tar
177 + if [ "$HTMLFILE_NAME" ] ; then ## HTML file Exists
178 +- if [ "$ALT_HTML_OUT" -ne 1 ] ; then ## The HTML file path is absolute and not $LTPROOT/output
179 +- mkdir -p $LTPROOT/output ## We need to create this Directory
180 +- cp $HTMLFILE_NAME $LTPROOT/output/
181 ++ if [ "$ALT_HTML_OUT" -ne 1 ] ; then ## The HTML file path is absolute and not $TMPBASE/output
182 ++ mkdir -p $TMPBASE/output ## We need to create this Directory
183 ++ cp $HTMLFILE_NAME $TMPBASE/output/
184 + fi
185 + fi
186 + if [ "$OUTPUTFILE_NAME" ] ; then ## Output file exists
187 +- if [ "$ALT_DIR_OUT" -ne 1 ] ; then ## The Output file path is absolute and not $LTPROOT/output
188 +- mkdir -p $LTPROOT/output ## We need to create this Directory
189 +- cp $OUTPUTFILE_NAME $LTPROOT/output/
190 ++ if [ "$ALT_DIR_OUT" -ne 1 ] ; then ## The Output file path is absolute and not $TMPBASE/output
191 ++ mkdir -p $TMPBASE/output ## We need to create this Directory
192 ++ cp $OUTPUTFILE_NAME $TMPBASE/output/
193 + fi
194 + fi
195 + if [ "$LOGFILE_NAME" ] ; then ## Log file exists
196 +- if [ "$ALT_DIR_RES" -ne 1 ] ; then ## The Log file path is absolute and not $LTPROOT/results
197 +- mkdir -p $LTPROOT/results ## We need to create this Directory
198 +- cp $LOGFILE_NAME $LTPROOT/results/
199 ++ if [ "$ALT_DIR_RES" -ne 1 ] ; then ## The Log file path is absolute and not $TMPBASE/results
200 ++ mkdir -p $TMPBASE/results ## We need to create this Directory
201 ++ cp $LOGFILE_NAME $TMPBASE/results/
202 + fi
203 + fi
204 +- if [ -d $LTPROOT/output ] ; then
205 +- tar -cf ./$TAR_FILE_NAME $LTPROOT/output
206 ++ if [ -d $TMPBASE/output ] ; then
207 ++ tar -cf ./$TAR_FILE_NAME $TMPBASE/output
208 + if [ $? -eq 0 ]; then
209 +- echo "Created TAR File: ./$TAR_FILE_NAME successfully, added $LTPROOT/output"
210 ++ echo "Created TAR File: ./$TAR_FILE_NAME successfully, added $TMPBASE/output"
211 + else
212 +- echo "Cannot Create TAR File: ./$TAR_FILE_NAME for adding $LTPROOT/output"
213 ++ echo "Cannot Create TAR File: ./$TAR_FILE_NAME for adding $TMPBASE/output"
214 + fi
215 + fi
216 +- if [ -d $LTPROOT/results ] ; then
217 +- tar -uf ./$TAR_FILE_NAME $LTPROOT/results
218 ++ if [ -d $TMPBASE/results ] ; then
219 ++ tar -uf ./$TAR_FILE_NAME $TMPBASE/results
220 + if [ $? -eq 0 ]; then
221 +- echo "Updated TAR File: ./$TAR_FILE_NAME successfully, added $LTPROOT/results"
222 ++ echo "Updated TAR File: ./$TAR_FILE_NAME successfully, added $TMPBASE/results"
223 + else
224 +- echo "Cannot Update TAR File: ./$TAR_FILE_NAME for adding $LTPROOT/results"
225 ++ echo "Cannot Update TAR File: ./$TAR_FILE_NAME for adding $TMPBASE/results"
226 + fi
227 + fi
228 + if [ -e $LTPROOT/nohup.out ] ; then ## If User would have Chosen nohup to do ltprun