blob: 2502a8e833cebc1cc0822cb1b10d067ac234f964 [file] [log] [blame]
bartd4e751b2008-03-24 11:01:45 +00001How to test DRD
2~~~~~~~~~~~~~~~
3
41. Run the regression tests. After having compiled DRD, run the following
5 command:
bartef1b9722008-07-04 15:34:23 +00006 perl tests/vg_regtest drd
bart7f912c02008-07-07 08:45:55 +000072. Run Konstantin's regression tests:
8 svn checkout http://data-race-test.googlecode.com/svn/trunk drt
9 make -C drt/unittest -s build
10 ./vg-in-place --tool=drd drt/unittest/racecheck_unittest 2>&1|less
113. Test the slowdown for matinv for various matrix sizes via the script
bartef1b9722008-07-04 15:34:23 +000012 drd/scripts/run-matinv (must be about 24 for i == 1 and about
bart8b4b2ee2008-06-11 13:17:56 +000013 31 for i == 10 with n == 200).
bart7f912c02008-07-07 08:45:55 +0000144. Test whether DRD works with standard KDE applications and whether it does
bartb3d0c142008-06-08 08:09:50 +000015 not print any false positives:
bartef1b9722008-07-04 15:34:23 +000016 ./vg-in-place --tool=drd kate
17 ./vg-in-place --tool=drd --check-stack-var=yes kate
18 ./vg-in-place --trace-children=yes --tool=drd knode
19 ./vg-in-place --trace-children=yes --tool=drd --check-stack-var=yes knode
20 ./vg-in-place --trace-children=yes --tool=drd amarokapp
bart7f912c02008-07-07 08:45:55 +0000215. Test whether DRD works with standard GNOME applications. Expect
bartdbac6252008-07-03 16:23:48 +000022 race reports triggered by ORBit_RootObject_duplicate() and after
23 having closed the GNOME terminal window:
bartef1b9722008-07-04 15:34:23 +000024 ./vg-in-place --trace-children=yes --tool=drd gnome-terminal
bart7f912c02008-07-07 08:45:55 +0000256. Test DRD with Firefox. First of all, build and install Firefox 3:
26 drd/scripts/download-and-build-firefox
27 Next, run the following command:
bartef1b9722008-07-04 15:34:23 +000028 LD_LIBRARY_PATH=$HOME/software/mozilla-build/dist/lib: ./vg-in-place --trace-children=yes --tool=drd $HOME/software/mozilla-build/dist/bin/firefox-bin