Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d347a616 authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Include hoststubgen tests in run-ravenwood-tests.sh

And remove the stale run-all-tests.sh.

Bug: 315031371
Test: ./ravenwood/run-ravenwood-tests.sh
Change-Id: I2ac6457b1f60017c6e4e506ca11dbd7fc18dfa59
parent 7fcf82fb
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -13,10 +13,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Run all the ravenwood tests.
# Run all the ravenwood tests + hoststubgen unit tests.

all_tests="hoststubgentest tiny-framework-dump-test hoststubgen-invoke-test"

# "echo" is to remove the newlines
all_tests=$(echo $(${0%/*}/list-ravenwood-tests.sh) )
all_tests="$all_tests $(echo $(${0%/*}/list-ravenwood-tests.sh) )"

echo "Running tests: $all_tests"
atest $all_tests
+0 −54
Original line number Diff line number Diff line
#!/bin/bash
# Copyright (C) 2023 The Android Open Source Project
#
# 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.

source "${0%/*}"/../common.sh

# Move to the top directory of hoststubgen
cd ..

ATEST_ARGS="--host"

# These tests are known to pass.
READY_TEST_MODULES=(
  hoststubgen-test-tiny-test
  CtsUtilTestCasesRavenwood
  CtsOsTestCasesRavenwood # This one uses native sustitution, so let's run it too.
)

MUST_BUILD_MODULES=(
    "${NOT_READY_TEST_MODULES[*]}"
)

# First, build all the test / etc modules. This shouldn't fail.
run m "${MUST_BUILD_MODULES[@]}"

# Run the hoststubgen unittests / etc
run atest $ATEST_ARGS hoststubgentest hoststubgen-invoke-test

# Next, run the golden check. This should always pass too.
# The following scripts _should_ pass too, but they depend on the internal paths to soong generated
# files, and they may fail when something changes in the build system.
run ./hoststubgen/test-tiny-framework/diff-and-update-golden.sh

run ./hoststubgen/test-tiny-framework/run-test-manually.sh
run atest $ATEST_ARGS tiny-framework-dump-test

# This script is already broken on goog/master
# run ./scripts/build-framework-hostside-jars-without-genrules.sh

# These tests should all pass.
run atest $ATEST_ARGS ${READY_TEST_MODULES[*]}

echo ""${0##*/}" finished, with no failures. Ready to submit!"