-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use extra parameter for patch base path
- Loading branch information
Showing
7 changed files
with
49 additions
and
3 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
tests-lit/tests/patch-reporter/reporter_path_base/main.cpp
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
int equal(int a, int b) { | ||
return a == b; | ||
} | ||
|
||
int main() { | ||
return equal(2, 2) != 1; | ||
} | ||
|
||
// clang-format off | ||
/** | ||
RUN: cd %S | ||
RUN: mkdir -p %S/Output/sandbox | ||
RUN: cp %S/main.cpp %S/Output/sandbox/main.cpp | ||
RUN: cd %S/Output/sandbox | ||
/// We cd to the the test directory and compile using relative paths. | ||
RUN: cd %S; %clang_cxx %sysroot -fembed-bitcode -g -O0 Output/sandbox/main.cpp -o Output/main.cpp.exe | ||
RUN: cd %S/Output && echo $PATH; (unset TERM; %mull_cxx -mutators=cxx_eq_to_ne -linker-flags="%sysroot" --git-project-root %S/Output --report-patch-base %S --linker=%clang_cxx -debug main.cpp.exe --report-name test --reporters Patches --reporters IDE; test $? = 0; ls -R %S/Output/test-patches; cat %S/Output/test-patches/killed-Output_sandbox_main_cpp-cxx_eq_to_ne-L2-C12.patch) | %filecheck %s --dump-input=fail --strict-whitespace --match-full-lines | ||
CHECK:[debug] Writing Patchfile: {{.*}} | ||
CHECK:[info] Patchfiles can be found at './test-patches' | ||
CHECK:{{.*}}main_cpp{{.*}} | ||
CHECK:--- a/Output/sandbox/main.cpp 0 | ||
CHECK:+{{\s+}}return a != b; | ||
*/ |
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
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