pantry/scripts/test-all.ts
Max Howell e968bff3f1 Openssl portable (#132)
* +scripts/test-all.ts
2022-09-14 11:43:44 -04:00

29 lines
553 B
TypeScript
Executable file

#!/usr/bin/env -S tea -E
/*---
args:
- deno
- run
- --allow-run
- --allow-read
- --allow-env
- --import-map={{ srcroot }}/import-map.json
---*/
import { Path } from "types"
import { ls } from "./ls.ts"
const cwd = new Path(new URL(import.meta.url).pathname).parent().string
for await (const { project } of ls()) {
const proc = Deno.run({
stdout: "null", stderr: "null",
cmd: ["./test.ts", project],
cwd
})
const status = await proc.status()
if (status.code !== 0) {
console.error(`test failed: ${project}`)
}
}