blob: 236cd9d7f5b546535731c5d89db3e77dc663dae5 [file] [log] [blame]
Austin Schuhe89fa2d2019-08-14 20:24:23 -07001@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
Austin Schuhe89fa2d2019-08-14 20:24:23 -070018cd rust_usage_test
19cargo test -- --quiet || exit /b 1
Austin Schuh272c6132020-11-14 16:37:52 -080020cargo run --bin=flatbuffers_alloc_check || exit /b 1
21cargo run --bin=flexbuffers_alloc_check || exit /b 1
22cargo run --bin=monster_example || exit /b 1
Austin Schuhe89fa2d2019-08-14 20:24:23 -070023cd ..
James Kuszmaul3b15b0c2022-11-08 14:03:16 -080024
25cd rust_no_std_compilation_test
26rustup install nightly
27rustup component add rust-src --toolchain nightly
28rustup target add thumbv7m-none-eabi
29cargo build || exit /b 1
30cd ..