Skip to content

Commit 717c76c

Browse files
committed
more tests, except parallism
1 parent 92aef26 commit 717c76c

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

scripts/ciTest.js

+17-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function main() {
9696
cp.execSync('npm i -g .', {cwd : path.join(__dirname, '..'), stdio: [0,1,2]})
9797
}
9898

99-
var bsbDir = cp.execSync(`bsb -where`, {cwd : path.join(__dirname, '..'), stdio : [0,1,2], encoding : 'utf8' })
99+
var bsbDir = cp.execSync(`bsb -where`, {cwd : path.join(__dirname, '..'), encoding : 'utf8' }).trim()
100100

101101
console.log("BSBDIR:", bsbDir)
102102

@@ -121,6 +121,22 @@ function main() {
121121

122122
})
123123
}
124+
125+
if (bsbTest){
126+
var buildTestDir = path.join(__dirname,'..','jscomp','build_tests')
127+
var files = fs.readdirSync(buildTestDir)
128+
files.forEach(function(file){
129+
130+
var testDir = path.join(buildTestDir, file)
131+
132+
if(!fs.existsSync(path.join(testDir,'input.js'))){
133+
throw new Error(`input.js does not exist in ${testDir}`)
134+
}
135+
136+
cp.execSync(`node input.js`, {cwd : testDir, stdio : [0,1,2]})
137+
138+
})
139+
}
124140
}
125141

126142

0 commit comments

Comments
 (0)