mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
Adds a simple script to merge stdout/stderr and put on labels. This is hidden to the RUN line using lit.cfg.py. This is my solution to addressing how errors printed by the toolchain break sorting of stdout output; just put stdout first. We could also have toggles for interleaving output or such, which might help test whether we do it properly. This also moves some previous-distributed replacement logic into lit_autoupdate_base.py: I think having that adjacent to lit.cfg.py is probably the better choice, and it reduces duplication in toolchain scripts. It happens here because I need to change the resulting commands to include the merge.
29 lines
1.1 KiB
Plaintext
29 lines
1.1 KiB
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
|
|
//
|
|
// RUN: %{explorer-trace} %s | %{FileCheck-allow-unmatched} %s
|
|
//
|
|
// A lot of output is elided: this is only checking for a few things for simple
|
|
// sanity checking on --parser_debug --trace_file=- output.
|
|
//
|
|
// NOAUTOUPDATE
|
|
// CHECK:STDOUT: ********** source program **********
|
|
// CHECK:STDOUT: interface ImplicitAs {
|
|
// CHECK:STDOUT: ********** type checking **********
|
|
// CHECK:STDOUT: ** declaring interface ImplicitAs
|
|
// CHECK:STDOUT: ********** resolving unformed variables **********
|
|
// CHECK:STDOUT: ********** printing declarations **********
|
|
// CHECK:STDOUT: interface ImplicitAs {
|
|
// CHECK:STDOUT: ********** starting execution **********
|
|
// CHECK:STDOUT: ********** initializing globals **********
|
|
// CHECK:STDOUT: ********** calling main function **********
|
|
// CHECK:STDOUT: --- step exp Main() .0. (<Main()>:0) --->
|
|
// CHECK:STDOUT: result: 0
|
|
|
|
package ExplorerTest api;
|
|
|
|
fn Main() -> i32 {
|
|
return 0;
|
|
}
|