/srv/osrm/osrm-backend/third_party/flatbuffers/tests
NameSizeModeActions
docker/-0755rm
FlatBuffers.Benchmarks/-0755rm
FlatBuffers.Test/-0755rm
fuzzer/-0755rm
include_test/-0755rm
MyGame/-0755rm
namespace_test/-0755rm
prototest/-0755rm
rust_usage_test/-0755rm
union_vector/-0755rm
arrays_test.bfbs10640644editdlrm
arrays_test.fbs3170644editdlrm
arrays_test.golden2500644editdlrm
arrays_test.schema.json16560644editdlrm
arrays_test_generated.h130440644editdlrm
DartTest.sh12790755editdlrm
generate_code.bat30570644editdlrm
generate_code.sh22650755editdlrm
GoTest.sh27350755editdlrm
go_test.go556660644editdlrm
JavaScriptTest.js143240644editdlrm
JavaScriptTest.sh7500755editdlrm
JavaScriptUnionVectorTest.js17060644editdlrm
JavaTest.bat9870644editdlrm
javatest.bin5120644editdlrm
JavaTest.java191590644editdlrm
JavaTest.sh12490755editdlrm
KotlinTest.kt164500644editdlrm
KotlinTest.sh14020755editdlrm
lobstertest.lobster47360644editdlrm
LuaTest.bat1450644editdlrm
luatest.lua82350644editdlrm
LuaTest.sh7470755editdlrm
monsterdata_extra.json4200644editdlrm
monsterdata_python_wire.mon3440644editdlrm
monsterdata_test.golden11020644editdlrm
monsterdata_test.json12250644editdlrm
monsterdata_test.mon4400644editdlrm
monster_extra.fbs4840644editdlrm
monster_extra_generated.h140390644editdlrm
monster_test.bfbs117920644editdlrm
monster_test.fbs42550644editdlrm
monster_test.grpc.fb.cc91130644editdlrm
monster_test.grpc.fb.h257510644editdlrm
monster_test.schema.json101480644editdlrm
monster_test_generated.h1363020644editdlrm
monster_test_generated.js872990644editdlrm
monster_test_generated.lobster268490644editdlrm
monster_test_generated.rs638400644editdlrm
monster_test_generated.ts790870644editdlrm
monster_test_my_game.example2_generated.dart15200644editdlrm
monster_test_my_game.example_generated.dart478610644editdlrm
monster_test_my_game_generated.dart16590644editdlrm
native_type_test.fbs2270644editdlrm
native_type_test_generated.h83740644editdlrm
native_type_test_impl.cpp3420644editdlrm
native_type_test_impl.h4930644editdlrm
phpTest.php243900644editdlrm
phpUnionVectorTest.php39060644editdlrm
phpUnionVectorTest.sh1370755editdlrm
PythonTest.sh27850755editdlrm
py_test.py662370644editdlrm
RustTest.bat8740644editdlrm
RustTest.sh12980755editdlrm
test.cpp1242610644editdlrm
TestAll.sh9850644editdlrm
test_assert.cpp20430644editdlrm
test_assert.h25800644editdlrm
test_builder.cpp55000644editdlrm
test_builder.h103950644editdlrm
TypeScriptTest.sh13870755editdlrm
unicode_test.json5030644editdlrm
Edit: /srv/osrm/osrm-backend/third_party/flatbuffers/tests/GoTest.sh (2735B)
#!/bin/bash -eu # # Copyright 2014 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. pushd "$(dirname $0)" >/dev/null test_dir="$(pwd)" go_path=${test_dir}/go_gen go_src=${go_path}/src # Emit Go code for the example schema in the test dir: ../flatc -g -I include_test monster_test.fbs # Go requires a particular layout of files in order to link multiple packages. # Copy flatbuffer Go files to their own package directories to compile the # test binary: mkdir -p ${go_src}/MyGame/Example mkdir -p ${go_src}/MyGame/Example2 mkdir -p ${go_src}/github.com/google/flatbuffers/go mkdir -p ${go_src}/flatbuffers_test cp -a MyGame/*.go ./go_gen/src/MyGame/ cp -a MyGame/Example/*.go ./go_gen/src/MyGame/Example/ cp -a MyGame/Example2/*.go ./go_gen/src/MyGame/Example2/ # do not compile the gRPC generated files, which are not tested by go_test.go # below, but have their own test. rm ./go_gen/src/MyGame/Example/*_grpc.go cp -a ../go/* ./go_gen/src/github.com/google/flatbuffers/go cp -a ./go_test.go ./go_gen/src/flatbuffers_test/ # Run tests with necessary flags. # Developers may wish to see more detail by appending the verbosity flag # -test.v to arguments for this command, as in: # go -test -test.v ... # Developers may also wish to run benchmarks, which may be achieved with the # 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.mon \ --out_data=${test_dir}/monsterdata_go_wire.mon \ --test.bench=. \ --test.benchtime=3s \ --fuzz=true \ --fuzz_fields=4 \ --fuzz_objects=10000 GO_TEST_RESULT=$? rm -rf ${go_path}/{pkg,src} if [[ $GO_TEST_RESULT == 0 ]]; then echo "OK: Go tests passed." else echo "KO: Go tests failed." exit 1 fi NOT_FMT_FILES=$(gofmt -l MyGame) if [[ ${NOT_FMT_FILES} != "" ]]; then echo "These files are not well gofmt'ed:" echo echo "${NOT_FMT_FILES}" # enable this when enums are properly formated # exit 1 fi