bart | d4e751b | 2008-03-24 11:01:45 +0000 | [diff] [blame] | 1 | How to test DRD |
| 2 | ~~~~~~~~~~~~~~~ |
| 3 | |
| 4 | 1. Run the regression tests. After having compiled DRD, run the following |
| 5 | command: |
bart | ef1b972 | 2008-07-04 15:34:23 +0000 | [diff] [blame] | 6 | perl tests/vg_regtest drd |
bart | 7f912c0 | 2008-07-07 08:45:55 +0000 | [diff] [blame^] | 7 | 2. 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 |
| 11 | 3. Test the slowdown for matinv for various matrix sizes via the script |
bart | ef1b972 | 2008-07-04 15:34:23 +0000 | [diff] [blame] | 12 | drd/scripts/run-matinv (must be about 24 for i == 1 and about |
bart | 8b4b2ee | 2008-06-11 13:17:56 +0000 | [diff] [blame] | 13 | 31 for i == 10 with n == 200). |
bart | 7f912c0 | 2008-07-07 08:45:55 +0000 | [diff] [blame^] | 14 | 4. Test whether DRD works with standard KDE applications and whether it does |
bart | b3d0c14 | 2008-06-08 08:09:50 +0000 | [diff] [blame] | 15 | not print any false positives: |
bart | ef1b972 | 2008-07-04 15:34:23 +0000 | [diff] [blame] | 16 | ./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 |
bart | 7f912c0 | 2008-07-07 08:45:55 +0000 | [diff] [blame^] | 21 | 5. Test whether DRD works with standard GNOME applications. Expect |
bart | dbac625 | 2008-07-03 16:23:48 +0000 | [diff] [blame] | 22 | race reports triggered by ORBit_RootObject_duplicate() and after |
| 23 | having closed the GNOME terminal window: |
bart | ef1b972 | 2008-07-04 15:34:23 +0000 | [diff] [blame] | 24 | ./vg-in-place --trace-children=yes --tool=drd gnome-terminal |
bart | 7f912c0 | 2008-07-07 08:45:55 +0000 | [diff] [blame^] | 25 | 6. 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: |
bart | ef1b972 | 2008-07-04 15:34:23 +0000 | [diff] [blame] | 28 | 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 |