test(build):collect llgo test ./... output to test

This commit is contained in:
luoliwoshang
2025-06-25 14:46:44 +08:00
parent 3df783de13
commit 6e8f3d1d19
12 changed files with 62 additions and 22 deletions

View File

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

View File

@@ -1,17 +0,0 @@
#!/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