mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-28 17:24:57 +01:00
Rearrange the file_test infrastructure so that we can customize the mapping of file names to command line arguments. Map `module.modulemap` files to corresponding Clang driver flags. In passing, also clean up the interface for specifying custom argument replacements so that we don't build a string map for each file we process, and stop using `SmallVector::insert`. Assisted-by: Gemini via Antigravity
24 lines
753 B
Plaintext
24 lines
753 B
Plaintext
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
// Exceptions. See /LICENSE for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
// AUTOUPDATE
|
|
// TIP: To test this file alone, run:
|
|
// TIP: bazel test //testing/file_test:file_test_base_test --test_arg=--file_tests=testing/file_test/testdata/two_files.carbon
|
|
// TIP: To dump output, run:
|
|
// TIP: bazel run //testing/file_test:file_test_base_test -- --dump_output --file_tests=testing/file_test/testdata/two_files.carbon
|
|
// CHECK:STDOUT: 3 args: `default_args`, `a.carbon`, `b.carbon`
|
|
|
|
// --- a.carbon
|
|
aaa
|
|
// CHECK:STDOUT: a.carbon:[[@LINE-1]]: aaa
|
|
|
|
|
|
// --- b.carbon
|
|
bbb
|
|
// CHECK:STDOUT: b.carbon:[[@LINE-1]]: bbb
|
|
|
|
|
|
// --- c.exclude
|
|
ccc
|