Skip to content

Commit

Permalink
Add codesize test for EXPORT_ES6. NFC (#23215)
Browse files Browse the repository at this point in the history
I don't think there any any other codesize tests that cover this.
  • Loading branch information
sbc100 authored Dec 18, 2024
1 parent c26d805 commit 4ba4c60
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/other/codesize/test_codesize_minimal_esm.exports
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
a (memory)
b (__wasm_call_ctors)
c (add)
d (__indirect_function_table)
2 changes: 2 additions & 0 deletions test/other/codesize/test_codesize_minimal_esm.funcs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
$__wasm_call_ctors
$add
1 change: 1 addition & 0 deletions test/other/codesize/test_codesize_minimal_esm.gzsize
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1400
1 change: 1 addition & 0 deletions test/other/codesize/test_codesize_minimal_esm.imports
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions test/other/codesize/test_codesize_minimal_esm.jssize
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2865
1 change: 1 addition & 0 deletions test/other/codesize/test_codesize_minimal_esm.sent
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions test/other/codesize/test_codesize_minimal_esm.size
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
73
1 change: 1 addition & 0 deletions test/test_other.py
Original file line number Diff line number Diff line change
Expand Up @@ -8846,6 +8846,7 @@ def strip_numeric_suffixes(funcname):
'64': (['-Oz', '-sMEMORY64'], [], []), # noqa
# WasmFS should not be fully linked into a minimal program.
'wasmfs': (['-Oz', '-sWASMFS'], [], []), # noqa
'esm': (['-Oz', '-sEXPORT_ES6'], [], []), # noqa
})
def test_codesize_minimal(self, *args):
self.set_setting('STRICT')
Expand Down

0 comments on commit 4ba4c60

Please sign in to comment.