-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Driver][test] Clean up some xray tests
Add explicit --target= so that the tests run on all targets, not some that support XRay, similar to commit e105141. For option testing, we often use a placeholder architecture (e.g., x86_64). Fix #64028
- Loading branch information
Showing
5 changed files
with
28 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,31 @@ | ||
// RUN: %clang -v -o /dev/null -fxray-instrument -fxray-modes=xray-fdr %s -### \ | ||
// RUN: 2>&1 | FileCheck --check-prefix FDR %s | ||
// RUN: %clang -v -o /dev/null -fxray-instrument -fxray-modes=xray-basic %s \ | ||
// RUN: -### 2>&1 | FileCheck --check-prefix BASIC %s | ||
// RUN: %clang -v -o /dev/null -fxray-instrument -fxray-modes=all -### %s \ | ||
// RUN: 2>&1 | FileCheck --check-prefixes FDR,BASIC %s | ||
// RUN: %clang -v -o /dev/null -fxray-instrument \ | ||
// RUN: -fxray-modes=xray-fdr,xray-basic -### %s 2>&1 | \ | ||
// RUN: FileCheck --check-prefixes FDR,BASIC %s | ||
// RUN: %clang -v -o /dev/null -fxray-instrument \ | ||
// RUN: -fxray-modes=xray-fdr -fxray-modes=xray-basic -### %s 2>&1 | \ | ||
// RUN: FileCheck --check-prefixes FDR,BASIC %s | ||
// RUN: %clang -v -o /dev/null -fxray-instrument -### %s \ | ||
// RUN: 2>&1 | FileCheck --check-prefixes FDR,BASIC %s | ||
// RUN: %clang -v -o /dev/null -fxray-instrument -fxray-modes=none -### %s \ | ||
// RUN: 2>&1 | FileCheck --check-prefixes NONE %s | ||
// RUN: %clang -### --target=x86_64-linux-gnu -fxray-instrument -fxray-modes=xray-fdr %s 2>&1 \ | ||
// RUN: | FileCheck --check-prefix=FDR %s | ||
// RUN: %clang -### --target=aarch64-linux-gnu -fxray-instrument -fxray-modes=xray-basic %s 2>&1 \ | ||
// RUN: | FileCheck --check-prefix=BASIC %s | ||
// RUN: %clang -### --target=aarch64-linux-gnu -fxray-instrument %s 2>&1 \ | ||
// RUN: | FileCheck --check-prefixes=FDR,BASIC %s | ||
// RUN: %clang -### --target=x86_64-linux-gnu -fxray-instrument -fxray-modes=all %s 2>&1 \ | ||
// RUN: | FileCheck --check-prefixes=FDR,BASIC %s | ||
// RUN: %clang -### --target=x86_64-linux-gnu -fxray-instrument -fxray-modes=xray-fdr,xray-basic %s 2>&1 \ | ||
// RUN: | FileCheck --check-prefixes=FDR,BASIC %s | ||
// RUN: %clang -### --target=x86_64-linux-gnu -fxray-instrument -fxray-modes=xray-fdr -fxray-modes=xray-basic %s 2>&1 \ | ||
// RUN: | FileCheck --check-prefixes=FDR,BASIC %s | ||
// RUN: %clang -### --target=x86_64-linux-gnu -fxray-instrument -fxray-modes=none %s 2>&1 \ | ||
// RUN: | FileCheck --check-prefix=NONE %s | ||
// | ||
// We also should support overriding the modes in an additive manner. | ||
// | ||
// RUN: %clang -v -o /dev/null -fxray-instrument -fxray-modes=none,xray-fdr \ | ||
// RUN: -### %s \ | ||
// RUN: 2>&1 | FileCheck --check-prefixes FDR %s | ||
// RUN: %clang -v -o /dev/null -fxray-instrument -fxray-modes=xray-fdr,none \ | ||
// RUN: -### %s \ | ||
// RUN: 2>&1 | FileCheck --check-prefixes NONE %s | ||
// RUN: %clang -v -o /dev/null -fxray-instrument -fxray-modes=none,all \ | ||
// RUN: -### %s \ | ||
// RUN: 2>&1 | FileCheck --check-prefixes FDR,BASIC %s | ||
// | ||
|
||
// RUN: %clang -### --target=x86_64-linux-gnu -fxray-instrument -fxray-modes=none,xray-fdr %s 2>&1 \ | ||
// RUN: | FileCheck --check-prefix=FDR %s | ||
// RUN: %clang -### --target=x86_64-linux-gnu -fxray-instrument -fxray-modes=all,none %s 2>&1 \ | ||
// RUN: | FileCheck --check-prefix=NONE %s | ||
|
||
// We also should support having the individual modes be concatenated. | ||
// | ||
// RUN: %clang -v -o /dev/null -fxray-instrument -fxray-modes=none \ | ||
// RUN: -fxray-modes=xray-fdr \ | ||
// RUN: -### %s \ | ||
// RUN: 2>&1 | FileCheck --check-prefixes FDR %s | ||
// | ||
// Order also matters. | ||
// | ||
// RUN: %clang -v -o /dev/null -fxray-instrument -fxray-modes=xray-fdr \ | ||
// RUN: -fxray-modes=none \ | ||
// RUN: -### %s \ | ||
// RUN: 2>&1 | FileCheck --check-prefixes NONE %s | ||
|
||
// RUN: %clang -### --target=x86_64-linux-gnu -fxray-instrument -fxray-modes=none -fxray-modes=xray-fdr %s 2>&1 \ | ||
// RUN: | FileCheck --check-prefix=FDR %s | ||
|
||
// BASIC: libclang_rt.xray-basic | ||
// FDR: libclang_rt.xray-fdr | ||
// NONE-NOT: libclang_rt.xray-basic | ||
// NONE-NOT: libclang_rt.xray-fdr | ||
// REQUIRES: linux || freebsd | ||
// REQUIRES: amd64 || x86_64 || x86_64h || arm || aarch64 || arm64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.