(self)
| 766 | ]) |
| 767 | |
| 768 | def testTwoRuns_Trybot(self): |
| 769 | test_input = dict(V8_JSON) |
| 770 | test_input['run_count'] = 2 |
| 771 | self._WriteTestInput(test_input) |
| 772 | self._MockCommand(['.', '.', '.', '.'], |
| 773 | ['Richards: 100\nDeltaBlue: 200\n', |
| 774 | 'Richards: 200\nDeltaBlue: 20\n', |
| 775 | 'Richards: 50\nDeltaBlue: 200\n', |
| 776 | 'Richards: 100\nDeltaBlue: 20\n']) |
| 777 | test_output_secondary = os.path.join( |
| 778 | TEST_WORKSPACE, 'results_secondary.json') |
| 779 | self.assertEqual(0, self._CallMain( |
| 780 | '--outdir-secondary', 'out-secondary', |
| 781 | '--json-test-results-secondary', test_output_secondary, |
| 782 | )) |
| 783 | self._VerifyResults('test', 'score', [ |
| 784 | {'name': 'Richards', 'results': [100.0, 200.0], 'stddev': ''}, |
| 785 | {'name': 'DeltaBlue', 'results': [20.0, 20.0], 'stddev': ''}, |
| 786 | ]) |
| 787 | self._VerifyResults('test', 'score', [ |
| 788 | {'name': 'Richards', 'results': [50.0, 100.0], 'stddev': ''}, |
| 789 | {'name': 'DeltaBlue', 'results': [200.0, 200.0], 'stddev': ''}, |
| 790 | ], test_output_secondary) |
| 791 | self._VerifyRunnableDurations(2, 60, test_output_secondary) |
| 792 | self._VerifyErrors([]) |
| 793 | self._VerifyMockMultiple( |
| 794 | (os.path.join('out', 'x64.release', 'd7'), '--flag', 'run.js'), |
| 795 | (os.path.join('out-secondary', 'x64.release', 'd7'), |
| 796 | '--flag', 'run.js'), |
| 797 | (os.path.join('out', 'x64.release', 'd7'), '--flag', 'run.js'), |
| 798 | (os.path.join('out-secondary', 'x64.release', 'd7'), |
| 799 | '--flag', 'run.js'), |
| 800 | ) |
| 801 | |
| 802 | def testWrongBinaryWithProf(self): |
| 803 | test_input = dict(V8_JSON) |
nothing calls this directly
no test coverage detected