| 25 | namespace mpt = multipass::test; |
| 26 | |
| 27 | QString mpt::test_data_path() |
| 28 | { |
| 29 | QDir dir{QCoreApplication::applicationDirPath()}; |
| 30 | const auto test_data_dir_exists = dir.cd("test_data"); |
| 31 | if (!test_data_dir_exists) |
| 32 | throw std::runtime_error("could not find test_data directory"); |
| 33 | return QDir::toNativeSeparators(dir.path()) + QDir::separator(); |
| 34 | } |
| 35 | |
| 36 | QString mpt::test_data_path_for(const char* file_name) |
| 37 | { |