From 4694af0ed7f518b1dbfe2190af29455af9c83207 Mon Sep 17 00:00:00 2001 From: David Korczynski Date: Fri, 17 Oct 2025 01:52:35 -0700 Subject: [PATCH] mruby: add run_tests.sh Signed-off-by: David Korczynski --- projects/mruby/Dockerfile | 2 +- projects/mruby/build.sh | 2 +- projects/mruby/run_tests.sh | 21 +++++++++++++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100755 projects/mruby/run_tests.sh diff --git a/projects/mruby/Dockerfile b/projects/mruby/Dockerfile index 36aa167fea6e..09145a3c4e9d 100644 --- a/projects/mruby/Dockerfile +++ b/projects/mruby/Dockerfile @@ -25,4 +25,4 @@ RUN mkdir LPM; \ cmake $SRC/libprotobuf-mutator -GNinja -DLIB_PROTO_MUTATOR_DOWNLOAD_PROTOBUF=ON -DLIB_PROTO_MUTATOR_TESTING=OFF -DCMAKE_BUILD_TYPE=Release; \ ninja; -COPY build.sh $SRC +COPY *.sh $SRC diff --git a/projects/mruby/build.sh b/projects/mruby/build.sh index 0735dedd469c..1fadd8255a65 100755 --- a/projects/mruby/build.sh +++ b/projects/mruby/build.sh @@ -20,7 +20,7 @@ cd $SRC/mruby export LD=$CC export LDFLAGS="$CFLAGS" -rake -m +rake -m test # build fuzzers FUZZ_TARGET=$SRC/mruby/oss-fuzz/mruby_fuzzer.c diff --git a/projects/mruby/run_tests.sh b/projects/mruby/run_tests.sh new file mode 100755 index 000000000000..110cde72ca71 --- /dev/null +++ b/projects/mruby/run_tests.sh @@ -0,0 +1,21 @@ +#!/bin/bash -eux +# Copyright 2025 Google LLC. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +export LD=$CC +export LDFLAGS="$CFLAGS" +cd $SRC/mruby +rake -m test \ No newline at end of file