brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 7b0a8c2 Raw
18 lines · cpp
1// RUN: mkdir -p %t.dir/Inputs/conflict2// RUN: sed "s#\$(path)#%/S/Inputs/conflict#" %S/Inputs/conflict/file1.yaml > %t.dir/Inputs/conflict/file1.yaml3// RUN: sed "s#\$(path)#%/S/Inputs/conflict#" %S/Inputs/conflict/file2.yaml > %t.dir/Inputs/conflict/file2.yaml4// RUN: sed "s#\$(path)#%/S/Inputs/conflict#" %S/Inputs/conflict/file3.yaml > %t.dir/Inputs/conflict/file3.yaml5// RUN: sed "s#\$(path)#%/S/Inputs/conflict#" %S/Inputs/conflict/expected.txt > %t.dir/Inputs/conflict/expected.txt6// RUN: not clang-apply-replacements %t.dir/Inputs/conflict > %t.dir/Inputs/conflict/output.txt 2>&17// RUN: diff -b %t.dir/Inputs/conflict/output.txt %t.dir/Inputs/conflict/expected.txt8//9// Check that the yaml files are *not* deleted after running clang-apply-replacements without remove-change-desc-files even when there is a failure.10// RUN: ls -1 %t.dir/Inputs/conflict | FileCheck %s --check-prefix=YAML11//12// Check that the yaml files *are* deleted after running clang-apply-replacements with remove-change-desc-files even when there is a failure.13// RUN: not clang-apply-replacements %t.dir/Inputs/conflict -remove-change-desc-files > %t.dir/Inputs/conflict/output.txt 2>&114// RUN: ls -1 %t.dir/Inputs/conflict | FileCheck %s --check-prefix=NO_YAML15//16// YAML: {{^file.\.yaml$}}17// NO_YAML-NOT: {{^file.\.yaml$}}18