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

Side by Side Diff: tools/wine_valgrind/chrome_tests.sh

Issue 5535006: Add unittests for net::TestRootCerts and regenerate test certificates (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address wtc feedback Created 10 years 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
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 # chromium-runtests.sh [testsuite] 2 # chromium-runtests.sh [testsuite]
3 # Script to run a respectable subset of Chromium's test suite 3 # Script to run a respectable subset of Chromium's test suite
4 # (excepting parts that run the browser itself, and excepting layout tests). 4 # (excepting parts that run the browser itself, and excepting layout tests).
5 # Run from parent of src directory. 5 # Run from parent of src directory.
6 # By default, runs all test suites. If you specify one testsuite 6 # By default, runs all test suites. If you specify one testsuite
7 # (e.g. base_unittests), it only runs that one. 7 # (e.g. base_unittests), it only runs that one.
8 # 8 #
9 # Chromium's test suite uses gtest, so each executable obeys the options 9 # Chromium's test suite uses gtest, so each executable obeys the options
10 # documented in the wiki at http://code.google.com/p/googletest 10 # documented in the wiki at http://code.google.com/p/googletest
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 WINEPREFIX=${WINEPREFIX:-$HOME/.wine-chromium-tests} 234 WINEPREFIX=${WINEPREFIX:-$HOME/.wine-chromium-tests}
235 export WINEPREFIX 235 export WINEPREFIX
236 WINE_HEAP_REDZONE=16 236 WINE_HEAP_REDZONE=16
237 export WINE_HEAP_REDZONE 237 export WINE_HEAP_REDZONE
238 238
239 if netstat -tlnp | grep :1337 239 if netstat -tlnp | grep :1337
240 then 240 then
241 echo Please kill the server listening on port 1337, or reboot. The net te sts need this port. 241 echo Please kill the server listening on port 1337, or reboot. The net te sts need this port.
242 exit 1 242 exit 1
243 fi 243 fi
244 if test ! -f /usr/share/ca-certificates/root_ca_cert.crt
245 then
246 echo "You need to do"
247 echo "sudo cp src/net/data/ssl/certificates/root_ca_cert.crt /usr/share/ ca-certificates/"
248 echo "sudo vi /etc/ca-certificates.conf (and add the line root_ca_cer t.crt)"
249 echo "sudo update-ca-certificates"
250 echo "else ssl tests will fail."
251 echo "(Alternately, modify this script to run Juan's importer, http://bugs .winehq.org/show_bug.cgi?id=20370#c4 )"
252 exit 1
253 fi
254 244
255 if test -n "$VNC" 245 if test -n "$VNC"
256 then 246 then
257 export DISPLAY=":$VNC" 247 export DISPLAY=":$VNC"
258 vncserver -kill "$DISPLAY" || true 248 vncserver -kill "$DISPLAY" || true
259 # VNC servers don't clean these up if they get a SIGKILL, and would then 249 # VNC servers don't clean these up if they get a SIGKILL, and would then
260 # refuse to start because these files are there. 250 # refuse to start because these files are there.
261 rm -f "/tmp/.X${VNC}-lock" "/tmp/.X11-unix/X${VNC}" 251 rm -f "/tmp/.X${VNC}-lock" "/tmp/.X11-unix/X${VNC}"
262 vncserver "$DISPLAY" -ac -depth 24 -geometry 1024x768 252 vncserver "$DISPLAY" -ac -depth 24 -geometry 1024x768
263 fi 253 fi
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 esac 437 esac
448 done 438 done
449 i=`expr $i + 1` 439 i=`expr $i + 1`
450 done 440 done
451 441
452 case "$errors" in 442 case "$errors" in
453 yes) echo "Errors detected, condition red. Battle stations!" ; exit 1;; 443 yes) echo "Errors detected, condition red. Battle stations!" ; exit 1;;
454 *) echo "No errors detected." ;; 444 *) echo "No errors detected." ;;
455 esac 445 esac
456 446
OLDNEW
« tools/valgrind/valgrind_test.py ('K') | « tools/valgrind/valgrind_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698