run_test.h 774 B

12345678910111213141516171819202122
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. #ifndef CARBON_TESTING_FILE_TEST_RUN_TEST_H_
  5. #define CARBON_TESTING_FILE_TEST_RUN_TEST_H_
  6. #include "common/error.h"
  7. #include "testing/file_test/file_test_base.h"
  8. #include "testing/file_test/test_file.h"
  9. namespace Carbon::Testing {
  10. // Processes the test file and runs the test. Returns an error if something
  11. // went wrong.
  12. auto ProcessTestFileAndRun(FileTestBase* test_base, std::mutex* output_mutex,
  13. bool dump_output, bool running_autoupdate)
  14. -> ErrorOr<TestFile>;
  15. } // namespace Carbon::Testing
  16. #endif // CARBON_TESTING_FILE_TEST_RUN_TEST_H_