git ssb

0+

wanderer🌟 / js-primea-hypervisor



Tree: 51739ba9fc171bb7d0f5e1bfee7b9021587cdede

Files: 51739ba9fc171bb7d0f5e1bfee7b9021587cdede / tests / buildTests.js

493 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 testName = testName.split('.')[0]
12 // Compile Command
13 cp.execSync(`${__dirname}/../tools/sexpr-wasm-prototype/out/sexpr-wasm ${dir}/${testName}.wast -o ${dir}/${testName}.wasm`)
14}
15

Built with git-ssb-web