@@ -1476,23 +1476,23 @@ def reftest(self, expected, manually_trigger=False):
1476
1476
}
1477
1477
''' % (reporting .read (), basename , int (manually_trigger )))
1478
1478
1479
- def compile_btest (self , args , reporting = True , native_reporting = True ):
1479
+ def compile_btest (self , args , js_reporting = True , c_reporting = True ):
1480
1480
# add in support for reporting results. this adds an include a header so testcases can
1481
1481
# use REPORT_RESULT, and also adds a cpp file to be compiled alongside the testcase, which
1482
1482
# contains the implementation of REPORT_RESULT (we can't just include that implementation in
1483
1483
# the header as there may be multiple files being compiled here).
1484
1484
args += ['-s' , 'IN_TEST_HARNESS=1' ]
1485
- if reporting :
1485
+ if js_reporting :
1486
1486
# For basic reporting we inject JS helper funtions to report result back to server.
1487
1487
args += ['-DEMTEST_PORT_NUMBER=%d' % self .port ,
1488
1488
'--pre-js' , path_from_root ('tests' , 'browser_reporting.js' )]
1489
- if native_reporting :
1490
- # If native code reporting (i.e. REPORT_RESULT macro) is required
1491
- # also compiling in report_result.cpp and forice-include report_result.h
1492
- assert (reporting )
1493
- args += ['-I' , path_from_root ('tests' ),
1494
- '-include' , path_from_root ('tests' , 'report_result.h' ),
1495
- path_from_root ('tests' , 'report_result.cpp' )]
1489
+ if c_reporting :
1490
+ # If native code reporting (i.e. REPORT_RESULT macro) is required
1491
+ # also compiling in report_result.cpp and forice-include report_result.h
1492
+ assert (js_reporting )
1493
+ args += ['-I' , path_from_root ('tests' ),
1494
+ '-include' , path_from_root ('tests' , 'report_result.h' ),
1495
+ path_from_root ('tests' , 'report_result.cpp' )]
1496
1496
self .run_process ([EMCC ] + self .get_emcc_args () + args )
1497
1497
1498
1498
def btest_exit (self , filename , expected , * args , ** kwargs ):
@@ -1503,7 +1503,7 @@ def btest_exit(self, filename, expected, *args, **kwargs):
1503
1503
REPORT_RESULT macro to the native code.
1504
1504
"""
1505
1505
self .set_setting ('EXIT_RUNTIME' )
1506
- kwargs ['native_reporting ' ] = False
1506
+ kwargs ['c_reporting ' ] = False
1507
1507
kwargs ['expected' ] = 'exit:%s' % expected
1508
1508
return self .btest (filename , * args , ** kwargs )
1509
1509
@@ -1512,7 +1512,7 @@ def btest(self, filename, expected=None, reference=None, force_c=False,
1512
1512
args = None , message = '.' , also_proxied = False ,
1513
1513
url_suffix = '' , timeout = None , also_asmjs = False ,
1514
1514
manually_trigger_reftest = False , extra_tries = 1 ,
1515
- reporting = True , native_reporting = True ):
1515
+ js_reporting = True , c_reporting = True ):
1516
1516
assert expected or reference , 'a btest must either expect an output, or have a reference image'
1517
1517
if args is None :
1518
1518
args = []
@@ -1536,7 +1536,7 @@ def btest(self, filename, expected=None, reference=None, force_c=False,
1536
1536
args = [filepath , '-o' , outfile ] + args
1537
1537
# print('all args:', args)
1538
1538
try_delete (outfile )
1539
- self .compile_btest (args , reporting = reporting , native_reporting = native_reporting )
1539
+ self .compile_btest (args , js_reporting = reporting , c_reporting = c_reporting )
1540
1540
self .assertExists (outfile )
1541
1541
if post_build :
1542
1542
post_build ()
0 commit comments