@@ -72,19 +72,19 @@ def run_wasm_opt_tests():
7272 print ('\n [ checking wasm-opt -o notation... ]\n ' )
7373
7474 for extra_args in [[], ['--no-validation' ]]:
75- wast = os .path .join (shared .options .binaryen_test , 'hello_world.wast ' )
76- shared .delete_from_orbit ('a.wast ' )
77- out = 'a.wast '
75+ wast = os .path .join (shared .options .binaryen_test , 'hello_world.wat ' )
76+ shared .delete_from_orbit ('a.wat ' )
77+ out = 'a.wat '
7878 cmd = shared .WASM_OPT + [wast , '-o' , out , '-S' ] + extra_args
7979 support .run_command (cmd )
8080 shared .fail_if_not_identical_to_file (open (out ).read (), wast )
8181
8282 print ('\n [ checking wasm-opt binary reading/writing... ]\n ' )
8383
84- shutil .copyfile (os .path .join (shared .options .binaryen_test , 'hello_world.wast ' ), 'a.wast ' )
84+ shutil .copyfile (os .path .join (shared .options .binaryen_test , 'hello_world.wat ' ), 'a.wat ' )
8585 shared .delete_from_orbit ('a.wasm' )
8686 shared .delete_from_orbit ('b.wast' )
87- support .run_command (shared .WASM_OPT + ['a.wast ' , '-o' , 'a.wasm' ])
87+ support .run_command (shared .WASM_OPT + ['a.wat ' , '-o' , 'a.wasm' ])
8888 assert open ('a.wasm' , 'rb' ).read ()[0 ] == 0 , 'we emit binary by default'
8989 support .run_command (shared .WASM_OPT + ['a.wasm' , '-o' , 'b.wast' , '-S' ])
9090 assert open ('b.wast' , 'rb' ).read ()[0 ] != 0 , 'we emit text with -S'
@@ -222,9 +222,9 @@ def run_ctor_eval_tests():
222222 for t in shared .get_tests (shared .get_test_dir ('ctor-eval' ), ['.wast' , '.wasm' ]):
223223 print ('..' , os .path .basename (t ))
224224 ctors = open (t + '.ctors' ).read ().strip ()
225- cmd = shared .WASM_CTOR_EVAL + [t , '-o' , 'a.wast ' , '-S' , '--ctors' , ctors ]
225+ cmd = shared .WASM_CTOR_EVAL + [t , '-o' , 'a.wat ' , '-S' , '--ctors' , ctors ]
226226 support .run_command (cmd )
227- actual = open ('a.wast ' ).read ()
227+ actual = open ('a.wat ' ).read ()
228228 out = t + '.out'
229229 shared .fail_if_not_identical_to_file (actual , out )
230230
@@ -235,10 +235,10 @@ def run_wasm_metadce_tests():
235235 for t in shared .get_tests (shared .get_test_dir ('metadce' ), ['.wast' , '.wasm' ]):
236236 print ('..' , os .path .basename (t ))
237237 graph = t + '.graph.txt'
238- cmd = shared .WASM_METADCE + [t , '--graph-file=' + graph , '-o' , 'a.wast ' , '-S' , '-all' ]
238+ cmd = shared .WASM_METADCE + [t , '--graph-file=' + graph , '-o' , 'a.wat ' , '-S' , '-all' ]
239239 stdout = support .run_command (cmd )
240240 expected = t + '.dced'
241- with open ('a.wast ' ) as seen :
241+ with open ('a.wat ' ) as seen :
242242 shared .fail_if_not_identical_to_file (seen .read (), expected )
243243 shared .fail_if_not_identical_to_file (stdout , expected + '.stdout' )
244244
@@ -257,8 +257,8 @@ def run_wasm_reduce_tests():
257257 support .run_command (shared .WASM_AS + [t , '-o' , 'a.wasm' ])
258258 support .run_command (shared .WASM_REDUCE + ['a.wasm' , '--command=%s b.wasm --fuzz-exec -all' % shared .WASM_OPT [0 ], '-t' , 'b.wasm' , '-w' , 'c.wasm' , '--timeout=4' ])
259259 expected = t + '.txt'
260- support .run_command (shared .WASM_DIS + ['c.wasm' , '-o' , 'a.wast ' ])
261- with open ('a.wast ' ) as seen :
260+ support .run_command (shared .WASM_DIS + ['c.wasm' , '-o' , 'a.wat ' ])
261+ with open ('a.wat ' ) as seen :
262262 shared .fail_if_not_identical_to_file (seen .read (), expected )
263263
264264 # run on a nontrivial fuzz testcase, for general coverage
0 commit comments