summaryrefslogtreecommitdiff
path: root/test/unit/test_dwarf.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/test_dwarf.py')
-rw-r--r--test/unit/test_dwarf.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/unit/test_dwarf.py b/test/unit/test_dwarf.py
new file mode 100644
index 000000000..5078efeeb
--- /dev/null
+++ b/test/unit/test_dwarf.py
@@ -0,0 +1,16 @@
+import os
+
+from scripts.test import shared
+from . import utils
+
+
+class DWARFTest(utils.BinaryenTestCase):
+ def test_no_crash(self):
+ # run dwarf processing on some interesting large files, too big to be
+ # worth putting in passes where the text output would be massive. We
+ # just check that no assertion are hit.
+ path = self.input_path('dwarf')
+ for name in os.listdir(path):
+ args = [os.path.join(path, name)] + \
+ ['-g', '--dwarfdump', '--roundtrip', '--dwarfdump']
+ shared.run_process(shared.WASM_OPT + args, capture_output=True)