Austin Schuh | 373f176 | 2021-06-02 21:07:09 -0700 | [diff] [blame] | 1 | #include "aos/testing/path.h" |
Austin Schuh | 60e7794 | 2022-05-16 17:48:24 -0700 | [diff] [blame] | 2 | |
Austin Schuh | 373f176 | 2021-06-02 21:07:09 -0700 | [diff] [blame] | 3 | #include "absl/strings/str_cat.h" |
| 4 | |
Stephan Pleines | f63bde8 | 2024-01-13 15:59:33 -0800 | [diff] [blame] | 5 | namespace aos::testing { |
Austin Schuh | 373f176 | 2021-06-02 21:07:09 -0700 | [diff] [blame] | 6 | |
| 7 | // Returns the path to the provided artifact which works when built both as an |
| 8 | // external target and in the repo. |
| 9 | std::string ArtifactPath(std::string_view path) { |
James Kuszmaul | 1cd3c2b | 2024-05-21 17:08:10 -0700 | [diff] [blame] | 10 | return absl::StrCat("../" AOS_REPO_NAME "/", path); |
Austin Schuh | 373f176 | 2021-06-02 21:07:09 -0700 | [diff] [blame] | 11 | } |
| 12 | |
Stephan Pleines | f63bde8 | 2024-01-13 15:59:33 -0800 | [diff] [blame] | 13 | } // namespace aos::testing |