Skip to content

Commit

Permalink
chore: output version of kitex (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaost authored Jul 23, 2024
1 parent 593fa06 commit 68da309
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ else
go_install github.com/cloudwego/kitex/tool/cmd/kitex@develop
fi

kitex -version

go mod init github.com/cloudwego/kitex-tests
test -d kitex_gen && rm -rf kitex_gen
kitex -module github.com/cloudwego/kitex-tests ./idl/stability.thrift
Expand Down
4 changes: 4 additions & 0 deletions thrift_streaming/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ function generate_old() {
exit 1
fi

kitex -version

# Thrift Old
rm -rf kitex_gen_old
kitex -gen-path kitex_gen_old $module $idl
Expand Down Expand Up @@ -83,6 +85,7 @@ function generate_new() {
fi

rm -rf kitex_gen
kitex -version

# Thrift
kitex $module $idl
Expand Down Expand Up @@ -119,6 +122,7 @@ function generate_new_thriftgo_old_kitex() {
fi

rm -rf kitex_gen_cross
kitex -version
# Thrift
kitex -gen-path kitex_gen_cross $module $idl
}
Expand Down
4 changes: 4 additions & 0 deletions thrift_streaming/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
package thrift_streaming

import (
"log"
"net"
"strconv"
"sync/atomic"
"testing"
"time"

"github.com/cloudwego/kitex"
"github.com/cloudwego/kitex-tests/common"
"github.com/cloudwego/kitex-tests/thrift_streaming/kitex_gen/combine/combineservice"
"github.com/cloudwego/kitex-tests/thrift_streaming/kitex_gen/echo"
Expand Down Expand Up @@ -157,5 +159,7 @@ func TestMain(m *testing.M) {
common.WaitServer(pbAddr)
common.WaitServer(slimAddr)
common.WaitServer(combineAddr)
log.Printf("testing Kitex %s", kitex.Version)

m.Run()
}

0 comments on commit 68da309

Please sign in to comment.