Austin Schuh | c243b42 | 2020-10-11 15:35:08 -0700 | [diff] [blame] | 1 | #ifndef AOS_TESTING_TMPDIR_H_ |
| 2 | #define AOS_TESTING_TMPDIR_H_ |
| 3 | |
| 4 | #include <string> |
| 5 | |
Stephan Pleines | d99b1ee | 2024-02-02 20:56:44 -0800 | [diff] [blame] | 6 | namespace aos::testing { |
Austin Schuh | c243b42 | 2020-10-11 15:35:08 -0700 | [diff] [blame] | 7 | |
| 8 | // Returns a usable temporary directory. |
| 9 | std::string TestTmpDir(); |
| 10 | |
Adam Snaider | c8b7e75 | 2023-09-14 14:27:53 -0700 | [diff] [blame] | 11 | // Sets shm_base to a folder inside of TEST_TMPDIR if set, or --shm_base |
| 12 | // otherwise. |
| 13 | void SetTestShmBase(); |
| 14 | |
Stephan Pleines | d99b1ee | 2024-02-02 20:56:44 -0800 | [diff] [blame] | 15 | } // namespace aos::testing |
Austin Schuh | c243b42 | 2020-10-11 15:35:08 -0700 | [diff] [blame] | 16 | |
| 17 | #endif // AOS_TESTING_TMPDIR_H_ |