Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add usage tips to NOAUTOUPDATE tests #4324

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions toolchain/check/testdata/basics/no_prelude/verbose.carbon
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
// ARGS: -v compile --no-prelude-import --phase=check %s
//
// Only checks a couple statements in order to minimize manual update churn.
// To test this file alone, run:
// bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/check/testdata/basics/no_prelude/verbose.carbon
// To dump output, run:
// bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/basics/no_prelude/verbose.carbon
// NOAUTOUPDATE
// SET-CHECK-SUBSET
// CHECK:STDERR: Node Push 0: FunctionIntroducer -> <none>
Expand Down
5 changes: 5 additions & 0 deletions toolchain/codegen/testdata/assembly/basic.carbon
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
// ARGS: compile --no-prelude-import --target=x86_64-unknown-linux-gnu --output=- %s
//
// To test this file alone, run:
// bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/codegen/testdata/assembly/basic.carbon
// To dump output, run:
// bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/codegen/testdata/assembly/basic.carbon
// NOAUTOUPDATE
// SET-CHECK-SUBSET
// CHECK:STDOUT: _CMain.Main:
Expand Down
4 changes: 4 additions & 0 deletions toolchain/codegen/testdata/fail_target_triple.carbon
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
//
// ARGS: compile --no-prelude-import --target=x86_687-unknown-linux-gnu --output=- %s
// No autoupdate because the message comes from LLVM.
// To test this file alone, run:
// bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/codegen/testdata/fail_target_triple.carbon
// To dump output, run:
// bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/codegen/testdata/fail_target_triple.carbon
// NOAUTOUPDATE
// CHECK:STDERR: ERROR: Invalid target: {{.*}}x86_687{{.*}}

Expand Down
4 changes: 4 additions & 0 deletions toolchain/driver/testdata/dump_mem_usage.carbon
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
//
// ARGS: compile --phase=check --dump-mem-usage %s
//
// To test this file alone, run:
// bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/driver/testdata/dump_mem_usage.carbon
// To dump output, run:
// bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/driver/testdata/dump_mem_usage.carbon
// NOAUTOUPDATE
//
// Avoid testing specific values:
Expand Down
Loading