git ssb

0+

wanderer🌟 / js-primea-hypervisor



Tree: 153d7d5e0c516e7c72aadb4a57a7087c0a50ace6

Files: 153d7d5e0c516e7c72aadb4a57a7087c0a50ace6 / tests / buildTests.js

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

Built with git-ssb-web