1#!/bin/bash 2# 3# Copyright 2022 Google Inc. All rights reserved. 4# 5# Licensed under the Apache License, Version 2.0 (the "License"); 6# you may not use this file except in compliance with the License. 7# You may obtain a copy of the License at 8# 9# http://www.apache.org/licenses/LICENSE-2.0 10# 11# Unless required by applicable law or agreed to in writing, software 12# distributed under the License is distributed on an "AS IS" BASIS, 13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14# See the License for the specific language governing permissions and 15# limitations under the License. 16 17pushd "$(dirname $0)" >/dev/null 18 19./../../flatc --proto test.proto && mv test.fbs test_include.golden.fbs 20./../../flatc --proto --gen-all test.proto && mv test.fbs test.golden.fbs 21./../../flatc --proto --oneof-union test.proto && mv test.fbs test_union_include.golden.fbs 22./../../flatc --proto --gen-all --oneof-union test.proto && mv test.fbs test_union.golden.fbs 23./../../flatc --proto --gen-all --proto-namespace-suffix test_namespace_suffix test.proto && mv test.fbs test_suffix.golden.fbs 24./../../flatc --proto --gen-all --proto-namespace-suffix test_namespace_suffix --oneof-union test.proto && mv test.fbs test_union_suffix.golden.fbs 25 26./../../flatc --proto --keep-proto-id test.proto && mv test.fbs test_include_id.golden.fbs 27./../../flatc --proto --keep-proto-id --gen-all test.proto && mv test.fbs test_id.golden.fbs 28./../../flatc --proto --keep-proto-id --oneof-union test.proto && mv test.fbs test_union_include_id.golden.fbs 29./../../flatc --proto --keep-proto-id --gen-all --oneof-union test.proto && mv test.fbs test_union_id.golden.fbs 30./../../flatc --proto --keep-proto-id --gen-all --proto-namespace-suffix test_namespace_suffix test.proto && mv test.fbs test_suffix_id.golden.fbs 31./../../flatc --proto --keep-proto-id --gen-all --proto-namespace-suffix test_namespace_suffix --oneof-union test.proto && mv test.fbs test_union_suffix_id.golden.fbs 32