Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/benchmark_sse.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def run_benchmark(benchmark_file, results_file, build_args):

# Run emscripten build
out_file = os.path.join(temp_dir, 'benchmark_sse_html.js')
cmd = [EMCC, benchmark_file, '-O3', '-s', 'TOTAL_MEMORY=536870912', '-o', out_file] + build_args
cmd = [EMCC, benchmark_file, '-O3', '-sTOTAL_MEMORY=536870912', '-o', out_file] + build_args
print('Building Emscripten version of the benchmark:')
print(' '.join(cmd))
run_process(cmd)
Expand Down
10 changes: 5 additions & 5 deletions tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,7 @@ def _test_dylink_dso_needed(self, do_run):
so = '.wasm' if self.is_wasm() else '.js'

def ccshared(src, linkto=[]):
cmdv = [EMCC, src, '-o', shared.unsuffixed(src) + so, '-s', 'SIDE_MODULE'] + self.get_emcc_args()
cmdv = [EMCC, src, '-o', shared.unsuffixed(src) + so, '-sSIDE_MODULE'] + self.get_emcc_args()
cmdv += linkto
self.run_process(cmdv)

Expand Down Expand Up @@ -1542,7 +1542,7 @@ def compile_btest(self, args, reporting=Reporting.FULL):
# use REPORT_RESULT, and also adds a cpp file to be compiled alongside the testcase, which
# contains the implementation of REPORT_RESULT (we can't just include that implementation in
# the header as there may be multiple files being compiled here).
args += ['-s', 'IN_TEST_HARNESS']
args += ['-sIN_TEST_HARNESS']
if reporting != Reporting.NONE:
# For basic reporting we inject JS helper funtions to report result back to server.
args += ['-DEMTEST_PORT_NUMBER=%d' % self.port,
Expand Down Expand Up @@ -1589,7 +1589,7 @@ def btest(self, filename, expected=None, reference=None,
expected = [str(i) for i in range(0, reference_slack + 1)]
self.reftest(test_file(reference), manually_trigger=manually_trigger_reftest)
if not manual_reference:
args += ['--pre-js', 'reftest.js', '-s', 'GL_TESTING']
args += ['--pre-js', 'reftest.js', '-sGL_TESTING']
outfile = 'test.html'
args += [filename, '-o', outfile]
# print('all args:', args)
Expand All @@ -1612,7 +1612,7 @@ def btest(self, filename, expected=None, reference=None,
if 'WASM=0' not in original_args and (also_wasm2js or self.also_wasm2js):
print('WASM=0')
self.btest(filename, expected, reference, reference_slack, manual_reference, post_build,
original_args + ['-s', 'WASM=0'], message, also_proxied=False, timeout=timeout)
original_args + ['-sWASM=0'], message, also_proxied=False, timeout=timeout)

if also_proxied:
print('proxied...')
Expand All @@ -1623,7 +1623,7 @@ def btest(self, filename, expected=None, reference=None,
post_build = self.post_manual_reftest
# run proxied
self.btest(filename, expected, reference, reference_slack, manual_reference, post_build,
original_args + ['--proxy-to-worker', '-s', 'GL_TESTING'], message, timeout=timeout)
original_args + ['--proxy-to-worker', '-sGL_TESTING'], message, timeout=timeout)


###################################################################################################
Expand Down
24 changes: 12 additions & 12 deletions tests/test_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ def build(self, parent, filename, args, shared_args, emcc_args, native_args, nat
cmd = [
EMCC, filename,
OPTIMIZATIONS,
'-s', 'INITIAL_MEMORY=256MB',
'-s', 'ENVIRONMENT=node,shell',
'-s', 'BENCHMARK=%d' % (1 if IGNORE_COMPILATION and not has_output_parser else 0),
'-sINITIAL_MEMORY=256MB',
'-sENVIRONMENT=node,shell',
'-sBENCHMARK=%d' % (1 if IGNORE_COMPILATION and not has_output_parser else 0),
'-o', final
] + shared_args + LLVM_FEATURE_FLAGS
if common.EMTEST_FORCE64:
Expand All @@ -216,7 +216,7 @@ def build(self, parent, filename, args, shared_args, emcc_args, native_args, nat
# above, such as minimal runtime
cmd += emcc_args + self.extra_args
if 'FORCE_FILESYSTEM' not in cmd:
cmd += ['-s', 'FILESYSTEM=0']
cmd += ['-sFILESYSTEM=0']
if PROFILING:
cmd += ['--profiling-funcs']
self.cmd = cmd
Expand Down Expand Up @@ -253,9 +253,9 @@ def build(self, parent, filename, args, shared_args, emcc_args, native_args, nat
# wasm2c doesn't want minimal runtime which the normal emscripten
# benchmarker defaults to, as we don't have any JS anyhow
emcc_args = emcc_args + [
'-s', 'STANDALONE_WASM',
'-s', 'MINIMAL_RUNTIME=0',
'-s', 'WASM2C'
'-sSTANDALONE_WASM',
'-sMINIMAL_RUNTIME=0',
'-sWASM2C'
]

global LLVM_FEATURE_FLAGS
Expand Down Expand Up @@ -971,7 +971,7 @@ def lib_builder(name, native, env_init):

self.do_benchmark('lua_' + benchmark, '', expected,
force_c=True, args=[benchmark + '.lua', DEFAULT_ARG],
emcc_args=['--embed-file', benchmark + '.lua', '-s', 'FORCE_FILESYSTEM', '-s', 'MINIMAL_RUNTIME=0'], # not minimal because of files
emcc_args=['--embed-file', benchmark + '.lua', '-sFORCE_FILESYSTEM', '-sMINIMAL_RUNTIME=0'], # not minimal because of files
lib_builder=lib_builder, native_exec=os.path.join('building', 'third_party', 'lua_native', 'src', 'lua'),
output_parser=output_parser, args_processor=args_processor)

Expand Down Expand Up @@ -1048,7 +1048,7 @@ def lib_builder(name, native, env_init):
def test_zzz_sqlite(self):
src = read_file(test_file('third_party/sqlite/sqlite3.c')) + read_file(test_file('sqlite/speedtest1.c'))
self.do_benchmark('sqlite', src, 'TOTAL...', native_args=['-ldl', '-pthread'], shared_args=['-I' + test_file('third_party', 'sqlite')],
emcc_args=['-s', 'FILESYSTEM', '-s', 'MINIMAL_RUNTIME=0'], # not minimal because of files
emcc_args=['-sFILESYSTEM', '-sMINIMAL_RUNTIME=0'], # not minimal because of files
force_c=True)

def test_zzz_poppler(self):
Expand Down Expand Up @@ -1097,7 +1097,7 @@ def lib_builder(name, native, env_init):
# TODO: Fix poppler native build and remove skip_native=True
self.do_benchmark('poppler', '', 'hashed printout',
shared_args=['-I' + test_file('poppler', 'include'), '-I' + test_file('freetype', 'include')],
emcc_args=['-s', 'FILESYSTEM', '--pre-js', 'pre.js', '--embed-file',
test_file('poppler', 'emscripten_html5.pdf') + '@input.pdf', '-s', 'ERROR_ON_UNDEFINED_SYMBOLS=0',
'-s', 'MINIMAL_RUNTIME=0'], # not minimal because of files
emcc_args=['-sFILESYSTEM', '--pre-js', 'pre.js', '--embed-file',
test_file('poppler', 'emscripten_html5.pdf') + '@input.pdf', '-sERROR_ON_UNDEFINED_SYMBOLS=0',
'-sMINIMAL_RUNTIME=0'], # not minimal because of files
lib_builder=lib_builder, skip_native=True)
Loading