Tweak Go test.

Add more comments explaining the tests. Remove the extraneous 'superFuzz'
functionality. By default, do not compare to generated Java files.

Change-Id: Icb0aa8262e10035958639f9a88ca666694a2ce73
This commit is contained in:
rw
2014-07-21 20:12:50 -07:00
committed by Wouter van Oortmerssen
parent 9c3de1e2a0
commit 0477a54f65
2 changed files with 52 additions and 46 deletions

View File

@@ -40,15 +40,13 @@ cp -u ./go_test.go ./go_gen/src/flatbuffers_test/
# flag -test.bench and the wildcard regexp ".":
# go -test -test.bench=. ...
GOPATH=${go_path} go test flatbuffers_test \
--test.coverpkg=github.com/google/flatbuffers/go \
--cpp_data=${test_dir}/monsterdata_test.bin \
--java_data=${test_dir}/monsterdata_java_wire.bin \
--out_data=${test_dir}/monsterdata_go_wire.bin \
--fuzz=true \
--super_fuzz=false \
--fuzz_fields=4 \
--fuzz_objects=10000
--test.coverpkg=github.com/google/flatbuffers/go \
--cpp_data=${test_dir}/monsterdata_test.bin \
--out_data=${test_dir}/monsterdata_go_wire.bin \
--fuzz=true \
--fuzz_fields=4 \
--fuzz_objects=10000
rm -rf ./go_gen/{pkg,src}
rm -rf ${go_path}/{pkg,src}
echo "OK: Go tests passed."