Makoto Onuki | 8558e9a | 2023-08-31 10:48:38 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # Copyright (C) 2023 The Android Open Source Project |
| 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 | source "${0%/*}"/../common.sh |
| 17 | |
| 18 | # Move to the top directory of hoststubgen |
| 19 | cd .. |
| 20 | |
| 21 | # These tests are known to pass. |
| 22 | READY_TEST_MODULES=( |
| 23 | HostStubGenTest-framework-all-test-host-test |
| 24 | hoststubgen-test-tiny-test |
| 25 | ) |
| 26 | |
| 27 | # First, build all the test modules. This shouldn't fail. |
| 28 | run m run-ravenwood-test ${READY_TEST_MODULES[*]} ${NOT_READY_TEST_MODULES[*]} |
| 29 | |
| 30 | # Next, run the golden check. This should always pass too. |
| 31 | # The following scripts _should_ pass too, but they depend on the internal paths to soong generated |
| 32 | # files, and they may fail when something changes in the build system. |
| 33 | run ./hoststubgen/test-tiny-framework/diff-and-update-golden.sh |
| 34 | |
| 35 | run ./hoststubgen/test-framework/run-test-without-atest.sh |
| 36 | run ./hoststubgen/test-tiny-framework/run-test-manually.sh |
Makoto Onuki | bf6dd09 | 2023-09-26 16:31:33 -0700 | [diff] [blame] | 37 | run atest tiny-framework-dump-test |
Makoto Onuki | 8558e9a | 2023-08-31 10:48:38 -0700 | [diff] [blame] | 38 | run ./scripts/build-framework-hostside-jars-and-extract.sh |
| 39 | |
| 40 | # This script is already broken on goog/master |
| 41 | # run ./scripts/build-framework-hostside-jars-without-genrules.sh |
| 42 | |
| 43 | # These tests should all pass. |
| 44 | run-ravenwood-test ${READY_TEST_MODULES[*]} |
| 45 | |
| 46 | echo ""${0##*/}" finished, with no unexpected failures. Ready to submit!" |