Github Actions: Remove --disable-tests
With --disable-tests, for example for Go the `make check` under `lib/go`
would only run unit tests under `lib/go/thrift` but not the unit tests
under `lib/go/test`.
Also some changes in lib/go/test/fuzz/Makefile.am so it works in both go
1.20 and 1.21 (The current state breaks in 1.21 but because of
`--disable-tests` we never noticed that).
diff --git a/lib/go/test/fuzz/Makefile.am b/lib/go/test/fuzz/Makefile.am
index 56f138a..9677f4f 100644
--- a/lib/go/test/fuzz/Makefile.am
+++ b/lib/go/test/fuzz/Makefile.am
@@ -18,19 +18,16 @@
#
gopathfuzz: $(THRIFT) fuzz.go
- $(THRIFT) -r --gen go:thrift_import=github.com/apache/thrift/lib/go/thrift$(COMPILER_EXTRAFLAG) ../../../../tutorial/tutorial.thrift
- cd gen-go/shared && go mod init shared
- cd gen-go/tutorial && go mod init tutorial
+ $(THRIFT) -r --gen go:thrift_import=github.com/apache/thrift/lib/go/thrift,package_prefix=github.com/apache/thrift/lib/go/test/fuzz/gen-go/$(COMPILER_EXTRAFLAG) ../../../../tutorial/tutorial.thrift
touch gopathfuzz
check: gopathfuzz
go test -tags gofuzz
clean-local:
- $(RM) -r gopathfuzz gen-go
+ $(RM) -rf gopathfuzz gen-go
EXTRA_DIST = \
fuzz.go \
fuzz_test.go \
- go.mod \
- go.sum
+ go.mod