1

add unit test

This commit is contained in:
Motiejus Jakštys
2022-01-28 15:49:24 +02:00
parent 47f1b10370
commit 3d8cc9c38c
4 changed files with 18 additions and 4 deletions

View File

@@ -19,6 +19,9 @@ tasks:
shellcheck -x $(awk '/#!\/bin\/(ba)?sh/&&FNR==1{print FILENAME}' $(git ls-files))
bazel run //:buildifier
git diff --exit-code
- test_native: |
cd bazel-zig-cc; . .envrc
bazel test //...
- test_list_toolchains: |
cd bazel-zig-cc; . .envrc; echo "Available toolchains:"
bazel query @zig_sdk//... | sed -En '/.*_toolchain$/ s/.*:(.*)_toolchain$/\1/p'