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
18rem TODO(rw): how do we make this script abort the calling script in appveyor?
19
20cd rust_usage_test
21cargo test -- --quiet || exit /b 1
22cargo run --bin=alloc_check || exit /b 1
23cd ..
24