...

Text file src/github.com/google/flatbuffers/tests/RustTest.bat

Documentation: github.com/google/flatbuffers/tests

     1@echo off
     2rem Copyright 2018 Google Inc. All rights reserved.
     3rem
     4rem Licensed under the Apache License, Version 2.0 (the "License");
     5rem you may not use this file except in compliance with the License.
     6rem You may obtain a copy of the License at
     7rem
     8rem     http://www.apache.org/licenses/LICENSE-2.0
     9rem
    10rem Unless required by applicable law or agreed to in writing, software
    11rem distributed under the License is distributed on an "AS IS" BASIS,
    12rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13rem See the License for the specific language governing permissions and
    14rem limitations under the License.
    15
    16rem Compile then run the Rust test.
    17
    18cd rust_serialize_test
    19cargo run -- --quiet || exit /b 1
    20
    21cd ../rust_no_std_compilation_test
    22rustup install nightly
    23rustup component add rust-src --toolchain nightly
    24rustup target add thumbv7m-none-eabi
    25cargo +nightly build || exit /b 1
    26
    27cd ../rust_usage_test
    28cargo test -- --quiet || exit /b 1
    29cargo run --bin=flatbuffers_alloc_check || exit /b 1
    30cargo run --bin=flexbuffers_alloc_check || exit /b 1
    31cargo run --bin=monster_example || exit /b 1
    32cd ..
    33

View as plain text