Files: 05c4e2d027ee79f709d87c92e48f83e9cb3489ad / tests / buildTests.js
476 bytesRaw
1 | const fs = require('fs') |
2 | const cp = require('child_process') |
3 | const path = require('path') |
4 | |
5 | const dir = path.join(__dirname, '/interface') |
6 | // get the test names |
7 | let tests = fs.readdirSync(dir).filter((file) => file.endsWith('.wast')) |
8 | // tests = ['balance.wast'] |
9 | // run the tests |
10 | for (let testName of tests) { |
11 | testName = testName.split('.')[0] |
12 | // Compile Command |
13 | cp.execSync(`${__dirname}/../tools/wabt/out/wast2wasm ${dir}/${testName}.wast -o ${dir}/${testName}.wasm`) |
14 | } |
15 |
Built with git-ssb-web