Skip to content

Commit c12c5be

Browse files
mruby: add run_tests.sh (#14146)
Signed-off-by: David Korczynski <[email protected]>
1 parent 397baa5 commit c12c5be

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

projects/mruby/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ RUN mkdir LPM; \
2525
cmake $SRC/libprotobuf-mutator -GNinja -DLIB_PROTO_MUTATOR_DOWNLOAD_PROTOBUF=ON -DLIB_PROTO_MUTATOR_TESTING=OFF -DCMAKE_BUILD_TYPE=Release; \
2626
ninja;
2727

28-
COPY build.sh $SRC
28+
COPY *.sh $SRC

projects/mruby/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
cd $SRC/mruby
2121
export LD=$CC
2222
export LDFLAGS="$CFLAGS"
23-
rake -m
23+
rake -m test
2424

2525
# build fuzzers
2626
FUZZ_TARGET=$SRC/mruby/oss-fuzz/mruby_fuzzer.c

projects/mruby/run_tests.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash -eux
2+
# Copyright 2025 Google LLC.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
################################################################################
17+
18+
export LD=$CC
19+
export LDFLAGS="$CFLAGS"
20+
cd $SRC/mruby
21+
rake -m test

0 commit comments

Comments
 (0)