Makoto Onuki | 450f9f3 | 2024-01-30 14:51:48 -0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # Copyright (C) 2024 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 | |
Makoto Onuki | d347a61 | 2024-02-14 10:10:12 -0800 | [diff] [blame] | 16 | # Run all the ravenwood tests + hoststubgen unit tests. |
| 17 | |
| 18 | all_tests="hoststubgentest tiny-framework-dump-test hoststubgen-invoke-test" |
Makoto Onuki | 450f9f3 | 2024-01-30 14:51:48 -0800 | [diff] [blame] | 19 | |
| 20 | # "echo" is to remove the newlines |
Makoto Onuki | d347a61 | 2024-02-14 10:10:12 -0800 | [diff] [blame] | 21 | all_tests="$all_tests $(echo $(${0%/*}/list-ravenwood-tests.sh) )" |
Makoto Onuki | 450f9f3 | 2024-01-30 14:51:48 -0800 | [diff] [blame] | 22 | |
Makoto Onuki | 847ba78 | 2024-02-20 10:45:14 -0800 | [diff] [blame^] | 23 | run() { |
| 24 | echo "Running: $*" |
| 25 | "${@}" |
| 26 | } |
| 27 | |
| 28 | run ${ATEST:-atest} $all_tests |