fail_config.carbon 1.4 KB

1234567891011121314151617181920212223242526272829
  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. //
  5. // ARGS: config --target=x86_64-unknown-linux-gnu
  6. //
  7. // NOAUTOUPDATE
  8. // TIP: To test this file alone, run:
  9. // TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/driver/testdata/config.carbon
  10. // TIP: To dump output, run:
  11. // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/driver/testdata/config.carbon
  12. // We don't include the digest in `file_test` to avoid unnecessary dependencies.
  13. // CHECK:STDERR: error: unable to read the installation's digest file: {{.+}}
  14. // CHECK:STDERR:
  15. // The rest of the config should still be displayed.
  16. //
  17. // Note that the results here are not "portable", and depend on the `--target`
  18. // argument above. We pass explicit targets to get predictable results in Bazel
  19. // tests.
  20. //
  21. // CHECK:STDOUT: CLANG_INCLUDE_DIRS:
  22. // CHECK:STDOUT: {{.*}}/toolchain/install/prefix/lib/carbon/llvm/lib/clang/{{[^/]+}}/include
  23. // CHECK:STDOUT: CLANG_RESOURCE_DIR: {{.*}}/toolchain/install/prefix/lib/carbon/llvm/lib/clang/{{[^/]+}}
  24. // CHECK:STDOUT: CLANG_SYSROOT: /
  25. // CHECK:STDOUT: INSTALL_ROOT: {{.*}}/toolchain/install/prefix/lib/carbon/
  26. // CHECK:STDOUT: LLVM_BINDIR: {{.*}}/toolchain/install/prefix/lib/carbon/llvm/bin
  27. // CHECK:STDOUT: VERSION: {{[0-9]+}}.{{[0-9]+}}.{{[0-9]+}}-{{.+}}