test(build):case with llgo test ./...

This commit is contained in:
luoliwoshang
2025-06-24 15:23:12 +08:00
parent b469fc990f
commit 3df783de13
9 changed files with 73 additions and 2 deletions

View File

@@ -137,8 +137,7 @@ jobs:
go-version: ${{matrix.go}}
- name: run llgo test
run: |
llgo test ./...
run: bash .github/workflows/llgo_test.sh
hello:
continue-on-error: true

17
.github/workflows/llgo_test.sh vendored Normal file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
set -e
output=$(llgo test ./... 2>&1)
echo "$output"
pass_count=$(echo "$output" | grep -c "^PASS$")
echo "llgo test pass count: $pass_count"
if [ "$pass_count" -gt 1 ]; then
echo "llgo test ./... passed"
exit 0
else
echo "llgo test ./... failed: PASS count is not greater than 1"
exit 1
fi