Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(508)

Side by Side Diff: mozilla-tests/process-logs.sh

Issue 2865028: Update the mozilla tests to new version (as of 2010-06-29). (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « mozilla-tests/post-process-logs.pl ('k') | mozilla-tests/runtests.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash -e 1 #!/bin/bash -e
2 # -*- Mode: Shell-script; tab-width: 4; indent-tabs-mode: nil; -*- 2 # -*- Mode: Shell-script; tab-width: 4; indent-tabs-mode: nil; -*-
3 3
4 # ***** BEGIN LICENSE BLOCK ***** 4 # ***** BEGIN LICENSE BLOCK *****
5 # Version: MPL 1.1/GPL 2.0/LGPL 2.1 5 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
6 # 6 #
7 # The contents of this file are subject to the Mozilla Public License Version 7 # The contents of this file are subject to the Mozilla Public License Version
8 # 1.1 (the "License"); you may not use this file except in compliance with 8 # 1.1 (the "License"); you may not use this file except in compliance with
9 # the License. You may obtain a copy of the License at 9 # the License. You may obtain a copy of the License at
10 # http://www.mozilla.org/MPL/ 10 # http://www.mozilla.org/MPL/
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 ;; 106 ;;
107 *) 107 *)
108 echo "unknown log type: $f" 108 echo "unknown log type: $f"
109 exit 2 109 exit 2
110 ;; 110 ;;
111 esac 111 esac
112 112
113 case "$testlogfile" in 113 case "$testlogfile" in
114 *,js,*) testtype=shell;; 114 *,js,*) testtype=shell;;
115 *,firefox,*) testtype=browser;; 115 *,firefox,*) testtype=browser;;
116 *,thunderbird,*) testtype=browser;;
117 *,fennec,*) testtype=browser;;
116 *) error "unknown testtype in logfile $testlogfile" $LINENO;; 118 *) error "unknown testtype in logfile $testlogfile" $LINENO;;
117 esac 119 esac
118 120
119 debug "testtype=$testtype" 121 debug "testtype=$testtype"
120 122
121 case "$testlogfile" in 123 case "$testlogfile" in
122 *,nightly,*) buildtype=nightly;; 124 *,nightly*) buildtype=nightly;;
123 *,opt,*) buildtype=opt;; 125 *,opt,*) buildtype=opt;;
124 *,debug,*) buildtype=debug;; 126 *,debug,*) buildtype=debug;;
125 *) error "unknown buildtype in logfile $testlogfile" $LINENO; 127 *) error "unknown buildtype in logfile $testlogfile" $LINENO;
126 esac 128 esac
127 129
128 debug "buildtype=$buildtype" 130 debug "buildtype=$buildtype"
129 131
130 case "$testlogfile" in 132 branch=`echo $testlogfile | sed 's|.*,\([0-9]\.[0-9]*\.[0-9]*\).*|\1|'`
131 *,1.8.0*) branch=1.8.0;;
132 *,1.8.1*) branch=1.8.1;;
133 *,1.9.0*) branch=1.9.0;;
134 *,1.9.1*) branch=1.9.1;;
135 *)
136 branch=`grep -m 1 '^environment: TEST_BRANCH=' $worktestlogfile | se d 's|.*TEST_BRANCH=\(.*\)|\1|'`
137 if [[ -z "$branch" ]]; then
138 error "unknown branch in logfile $testlogfile" $LINENO
139 fi
140 ;;
141 esac
142 133
143 debug "branch=$branch" 134 debug "branch=$branch"
144 135
145 repo=`grep -m 1 '^environment: TEST_MOZILLA_HG=' $worktestlogfile | sed 's|. *TEST_MOZILLA_HG=http://hg.mozilla.org/\(.*\)|\1|'` 136 repo=`grep -m 1 '^environment: TEST_MOZILLA_HG=' $worktestlogfile | sed 's|. *TEST_MOZILLA_HG=http://hg.mozilla.org.*/\([^\/]*\)|\1|'`
146 if [[ -z "$repo" ]]; then 137 if [[ -z "$repo" ]]; then
147 repo=CVS 138 repo=CVS
148 fi 139 fi
149 debug "repo=$repo" 140 debug "repo=$repo"
150 141
151 case "$testlogfile" in 142 case "$testlogfile" in
152 *,nt,*) OSID=nt;; 143 *,nt,*) OSID=nt;;
153 *,linux,*) OSID=linux;; 144 *,linux,*) OSID=linux;;
154 *,darwin,*) OSID=darwin;; 145 *,darwin,*) OSID=darwin;;
155 *) 146 *)
156 OSID=`grep -m 1 '^environment: OSID=' $worktestlogfile | sed 's|.*OS ID=\(.*\)|\1|'` 147 OSID=`grep -m 1 '^environment: OSID=' $worktestlogfile | sed 's|.*OS ID=\(.*\)|\1|'`
157 if [[ -z "$OSID" ]]; then 148 if [[ -z "$OSID" ]]; then
158 error "unknown OS in logfile $testlogfile" $LINENO 149 error "unknown OS in logfile $testlogfile" $LINENO
159 fi 150 fi
160 ;; 151 ;;
161 esac 152 esac
162 153
163 debug "OSID=$OSID" 154 debug "OSID=$OSID"
164 155
165 kernel=`grep -m 1 '^environment: TEST_KERNEL=' $worktestlogfile | sed 's|.*T EST_KERNEL=\(.*\)|\1|'` 156 kernel=`grep -m 1 '^environment: TEST_KERNEL=' $worktestlogfile | sed 's|.*T EST_KERNEL=\(.*\)|\1|'`
166 if [[ "$OSID" == "linux" ]]; then 157 if [[ "$OSID" == "linux" ]]; then
167 kernel=`echo $kernel | sed 's|\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*|\1.\2 .\3|'` 158 kernel=`echo $kernel | sed 's|\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*|\1.\2 .\3|'`
168 fi 159 fi
169 debug "kernel=$kernel" 160 debug "kernel=$kernel"
170 161
171 arch=`grep -m 1 '^environment: TEST_PROCESSORTYPE=' $worktestlogfile | sed ' s|.*TEST_PROCESSORTYPE=\(.*\)|\1|'` 162 arch=`grep -m 1 '^environment: TEST_PROCESSORTYPE=' $worktestlogfile | sed ' s|.*TEST_PROCESSORTYPE=\(.*\)|\1|'`
172 debug "arch=$arch" 163 debug "arch=$arch"
173 164
174 memory=`grep -m 1 '^environment: TEST_MEMORY=' $worktestlogfile | sed 's|.*T EST_MEMORY=\(.*\)|\1|'` 165 memory=`grep -m 1 '^environment: TEST_MEMORY=' $worktestlogfile | sed 's|.*T EST_MEMORY=\(.*\)|\1|'`
175 speed=`grep -m 1 '^environment: TEST_CPUSPEED=' $worktestlogfile | sed 's|.* TEST_CPUSPEED=\(.*\)|\1|'`
176 166
177 timezone=`basename $testlogfile | sed 's|^[-0-9]*\([-+]\)\([0-9]\{4,4\}\),.* |\1\2|'` 167 timezone=`basename $testlogfile | sed 's|^[-0-9]*\([-+]\)\([0-9]\{4,4\}\),.* |\1\2|'`
168 debug "timezone=$timezone"
178 169
179 debug "timezone=$timezone" 170 jsoptions=`grep -m 1 '^arguments: javascriptoptions=' $worktestlogfile | sed 's|.*javascriptoptions=\(.*\)|\1|'`
171 if [[ -z "$jsoptions" ]]; then
172 jsoptions=none
173 fi
174 debug "jsoptions=$jsoptions"
180 175
181 outputprefix=$testlogfile 176 outputprefix=$testlogfile
182 177
183 includetests="included-$branch-$testtype-$buildtype.tests" 178 includetests="included-$branch-$testtype-$buildtype.tests"
184 excludetests="excluded-$branch-$testtype-$buildtype.tests" 179 excludetests="excluded-$branch-$testtype-$buildtype.tests"
185 180
186 grep '^include: ' $worktestlogfile | sed 's|include: ||' > $TEST_DIR/tests/m ozilla.org/js/$includetests 181 grep '^include: ' $worktestlogfile | sed 's|include: ||' > $TEST_DIR/tests/m ozilla.org/js/$includetests
187 grep '^exclude: ' $worktestlogfile | sed 's|exclude: ||' > $TEST_DIR/tests/m ozilla.org/js/$excludetests 182 grep '^exclude: ' $worktestlogfile | sed 's|exclude: ||' > $TEST_DIR/tests/m ozilla.org/js/$excludetests
188 183
189 $TEST_DIR/tests/mozilla.org/js/known-failures.pl \ 184 $TEST_DIR/tests/mozilla.org/js/known-failures.pl \
190 -b "$branch" \ 185 -b "$branch" \
191 -T "$buildtype" \ 186 -T "$buildtype" \
192 -R "$repo" \ 187 -R "$repo" \
193 -t "$testtype" \ 188 -t "$testtype" \
194 -o "$OSID" \ 189 -o "$OSID" \
195 -K "$kernel" \ 190 -K "$kernel" \
196 -A "$arch" \ 191 -A "$arch" \
197 -M "$memory" \ 192 -M "$memory" \
198 -S "$speed" \
199 -z "$timezone" \ 193 -z "$timezone" \
194 -J "$jsoptions" \
200 -r "$TEST_JSDIR/failures.txt" \ 195 -r "$TEST_JSDIR/failures.txt" \
201 -l "$worktestlogfile" \ 196 -l "$worktestlogfile" \
202 -O "$outputprefix" 197 -O "$outputprefix"
203 198
204 if [[ "$testlogfile" != "$worktestlogfile" ]]; then 199 if [[ "$testlogfile" != "$worktestlogfile" ]]; then
205 rm $worktestlogfile 200 rm $worktestlogfile
206 unset worktestlogfile 201 unset worktestlogfile
207 fi 202 fi
208 done 203 done
OLDNEW
« no previous file with comments | « mozilla-tests/post-process-logs.pl ('k') | mozilla-tests/runtests.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698