|
48 | 48 | emconfig = shared.bat_suffix(path_from_root('em-config'))
|
49 | 49 | emsize = shared.bat_suffix(path_from_root('emsize'))
|
50 | 50 | emprofile = shared.bat_suffix(path_from_root('emprofile'))
|
| 51 | +emstrip = shared.bat_suffix(path_from_root('emstrip')) |
51 | 52 | emsymbolizer = shared.bat_suffix(path_from_root('emsymbolizer'))
|
52 | 53 | wasm_opt = Path(building.get_binaryen_bin(), 'wasm-opt')
|
53 | 54 |
|
@@ -609,6 +610,14 @@ def test_emsize(self):
|
609 | 610 | output = self.run_process(cmd, stdout=PIPE).stdout
|
610 | 611 | self.assertContained(expected, output)
|
611 | 612 |
|
| 613 | + def test_emstrip(self): |
| 614 | + self.run_process([EMCC, test_file('hello_world.c'), '-g', '-o', 'hello.js']) |
| 615 | + output = self.run_process([common.LLVM_OBJDUMP, '-h', 'hello.wasm'], stdout=PIPE).stdout |
| 616 | + self.assertContained('.debug_info', output) |
| 617 | + self.run_process([emstrip, 'hello.wasm']) |
| 618 | + output = self.run_process([common.LLVM_OBJDUMP, '-h', 'hello.wasm'], stdout=PIPE).stdout |
| 619 | + self.assertNotContained('.debug_info', output) |
| 620 | + |
612 | 621 | @is_slow_test
|
613 | 622 | @parameterized({
|
614 | 623 | # ('directory to the test', 'output filename', ['extra args to pass to
|
|
0 commit comments