mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
6 lines
274 B
Bash
6 lines
274 B
Bash
#!/usr/bin/env bash
|
|
|
|
cd src
|
|
rg -l "^test " --type zig | sed -e 's/\(.*\)/@import\(\".\/\1"\);/' | sed '/schema/d' | sed '/deps/d' > /tmp/tests.zig
|
|
awk '{printf "const Test%d = %s\ntest { const Foo = Test%d; }\n", NR, $0, NR}' < /tmp/tests.zig > tests.zig
|
|
zig fmt tests.zig |