/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/PythonTest.sh (2785B)
#!/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)" gen_code_path=${test_dir} runtime_library_dir=${test_dir}/../python # Emit Python code for the example schema in the test dir: ${test_dir}/../flatc -p -o ${gen_code_path} -I include_test monster_test.fbs # Syntax: run_tests # interpreters_tested=() function run_tests() { if $(which ${1} >/dev/null); then echo "Testing with interpreter: ${1}" PYTHONDONTWRITEBYTECODE=1 \ JYTHONDONTWRITEBYTECODE=1 \ PYTHONPATH=${runtime_library_dir}:${gen_code_path} \ JYTHONPATH=${runtime_library_dir}:${gen_code_path} \ COMPARE_GENERATED_TO_GO=0 \ COMPARE_GENERATED_TO_JAVA=0 \ $1 py_test.py $2 $3 $4 interpreters_tested+=(${1}) echo fi } # Run test suite with these interpreters. The arguments are benchmark counts. run_tests python2.6 100 100 100 run_tests python2.7 100 100 100 run_tests python3 100 100 100 run_tests pypy 100 100 100 # NOTE: We'd like to support python2.5 in the future. # NOTE: Jython 2.7.0 fails due to a bug in the stdlib `struct` library: # http://bugs.jython.org/issue2188 if [ ${#interpreters_tested[@]} -eq 0 ]; then echo "No Python interpeters found on this system, could not run tests." exit 1 fi # Run test suite with default python intereter. # (If the Python program `coverage` is available, it will be run, too. # Install `coverage` with `pip install coverage`.) if $(which coverage >/dev/null); then echo 'Found coverage utility, running coverage with default Python:' PYTHONDONTWRITEBYTECODE=1 \ PYTHONPATH=${runtime_library_dir}:${gen_code_path} \ coverage run --source=flatbuffers,MyGame py_test.py 0 0 0 > /dev/null echo cov_result=`coverage report --omit="*flatbuffers/vendor*,*py_test*" \ | tail -n 1 | awk ' { print $4 } '` echo "Code coverage: ${cov_result}" else echo -n "Did not find coverage utility for default Python, skipping. " echo "Install with 'pip install coverage'." fi echo echo "OK: all tests passed for ${#interpreters_tested[@]} interpreters: ${interpreters_tested[@]}."