Commit Graph

10 Commits

Author SHA1 Message Date
kjellander@webrtc.org
b5b155b8a9 This CL introduces a new directory for WebRTC utility scripts for Valgrind: tools/valgrind-webrtc
To be able to re-use as much as possible from Chromium's scripts, I've created two customized scripts for running tests:
- webrtc_tests.py: a customized version of chrome_tests.py with WebRTC tests instead.
- webrtc_tests.sh: a customized version of the chrome_tests.sh wrapper script, to launch the above script.

The webrtc_tests.sh script is setting up PYTHONPATH so that tools/valgrind is available for the webrtc_tests.py script.
The webrtc_tests.py script inherits the chrome_tests.py script as much as possible, to minimize maintenance and maximize readability.
Having this mirrored setup of directories, allows us to use the same directory hierarchy for suppression files too. This CL only adds suppression files for memcheck, but we can add files for tsan later easily.

The suppression file is currently empty for Linux. For Mac I copied all the Chromium third-party suppressions. We will need a lot more added for Mac before Valgrind runs becomes usable for that platform.
The platform specific naming of the suppression files are handled automatically when webrtc_tests.sh  is used to launch the tests.

Example:
Plain memcheck (default tool): tools/valgrind-webrtc/webrtc_tests.sh -t system_wrappers
Run ThreadSanitizer: tools/valgrind-webrtc/webrtc_tests.sh  --tool=tsan -t system_wrappers

Previously mentioned AddressSanitizer requires additional scripts to be added and it not covered in this CL.

BUG=
TEST=

Review URL: http://webrtc-codereview.appspot.com/322010

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1240 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-12-20 08:53:41 +00:00
andrew@webrtc.org
a98124542a Add third_party/libyuv to .gitignore.
Review URL: http://webrtc-codereview.appspot.com/290010

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1065 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-11-30 18:03:35 +00:00
kjellander@webrtc.org
ae5cb5b2e6 Adding valgrind to .gitignore
Review URL: http://webrtc-codereview.appspot.com/289005

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1032 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-11-25 14:19:40 +00:00
andrew@webrtc.org
2740f66d22 Remove output files from .gitignore.
Review URL: http://webrtc-codereview.appspot.com/292003

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1017 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-11-24 17:49:17 +00:00
kjellander@webrtc.org
0c80c7fec8 Script for automatic download of resources.
Tested successfully on Linux, Mac and Windows (Python 2.6)

The script works executing from different working directories too (like project root vs. location of script).

Review URL: http://webrtc-codereview.appspot.com/280002

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1003 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-11-23 14:11:16 +00:00
kjellander@webrtc.org
1310e0b092 Adding third_party/cygwin to git ignore
Review URL: http://webrtc-codereview.appspot.com/280003

git-svn-id: http://webrtc.googlecode.com/svn/trunk@963 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-11-17 11:35:59 +00:00
phoglund@webrtc.org
8f89f09626 Note: this patch may seem intimidating but it mostly moves code around and renames things. There are quite few actual changes.
Separated new-style tests from old-style tests. Abstracted code for reuse.

Fully separated the new automated tests from the old-style tests. We now have old-style tests running in manual mode, old-style tests running in automated mode and new-style tests that uses input files and make actual video comparisons.

Introduced a small "library" of helper functions in order to move a lot
of stuff out of the original base and codec tests, which have been made
dependent on the new "library" (which is a header file and a source
file). The new-style tests also depends on this "library".
The comparison test flags are now required only when the comparison tests actually runs.

Separated comparison tests into its own test since it seems we will be running classic vie_auto_test using a fake video driver on Linux.

Made tbInterfaces follow Google conventions.
Merge branch 'render_to_file' into vivi_driver

Resolution alignment testing is now optional behind a flag.

BUG=
TEST=

Review URL: http://webrtc-codereview.appspot.com/269011

git-svn-id: http://webrtc.googlecode.com/svn/trunk@962 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-11-17 10:46:59 +00:00
kjellander@webrtc.org
aedf3a765c Loosening makefile rule so it matches *.target.mk but not Android.mk files.
Add ignore of Python project files.

Review URL: http://webrtc-codereview.appspot.com/270010

git-svn-id: http://webrtc.googlecode.com/svn/trunk@944 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-11-15 08:53:12 +00:00
andrew@webrtc.org
e2d2801e0d Update .gitignore.
Review URL: http://webrtc-codereview.appspot.com/266001

git-svn-id: http://webrtc.googlecode.com/svn/trunk@886 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-11-04 01:24:01 +00:00
kjellander@webrtc.org
dca57bddf8 Adding git ignore file.
BUG=
TEST=

Review URL: http://webrtc-codereview.appspot.com/173001

git-svn-id: http://webrtc.googlecode.com/svn/trunk@638 4adac7df-926f-26a2-2b94-8c16560cd09d
2011-09-23 11:15:35 +00:00