1 parent
9f65c60600
commit
3fd8facbdb
2 files changed
+2
-1
No files matched your search
@@ -11,6 +11,7 @@ const read = relative => readFile(path.join(root, relative), 'utf8')
|
||||
|
||||
test('跨平台构建输出不得越过项目 out 目录', async () => {
|
||||
const content = await read('Makefile')
|
||||
assert.match(content, /GO_VERSION \?= \$\(shell cd backend && go version\)/)
|
||||
const commands = [...content.matchAll(/cd ([^\s]+) && [^\n]*go build [^\n]* -o ([^\s]+) /g)]
|
||||
assert.equal(commands.length, 12)
|
||||
for (const [, directory, output] of commands) {
|
||||
|
||||
Reference in new issue
Block a user