1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/utils
Daniel Sanders 36fe0c5f62 Fix sed -e s@FOO@%/S@ and similar when there's @'s in the working directory
Jenkins sometimes starts a new working directory by appending @2 (or
incrementing the number if the @n suffix is already there). This causes
several clang tests to fail as:
  s@INPUT_DIR@%/S/Inputs@g
gets expanded to the invalid:
  s@INPUT_DIR@/path/to/workdir@2/Inputs@g
                               ~~~~~~~~~~
where the part marked with ~'s is interpreted as the flags. These are
invalid and the test fails.

Previous fixes simply exchanged the @ character for another like | but
that's just moving the problem. Address it by adding an expansion that
escapes the @ character we're using as a delimiter as well as other magic
characters in the replacement of sed's s@@@.

There's still room for expansions to cause trouble though. One I ran into
while testing this was that having a directory called foo@bar causes lots
of `CHECK-NOT: foo` directives to match. There's also things like
directories containing `\1`
2019-12-03 15:44:01 -08:00
..
benchmark
bugpoint
count
crosstool
docker
emacs [NFC][emacs] remove out-of-date comment from tablegen-mode.el 2019-09-26 19:36:01 +00:00
FileCheck [FileCheck] Given multiple -dump-input, prefer most verbose 2019-12-03 14:21:13 -05:00
fpcmp
gdb-scripts
git-svn git-llvm: Drop dependency on github module 2019-10-25 00:04:31 -07:00
gn gn build: Merge bc76dadb3cf 2019-12-03 11:35:13 +00:00
jedit
kate [kate] Add various missing keywords 2019-11-19 09:54:07 +00:00
KillTheDoctor Revert "Use InitLLVM to setup a pretty stack printer" 2019-11-25 21:06:56 -05:00
lint
lit Fix sed -e s@FOO@%/S@ and similar when there's @'s in the working directory 2019-12-03 15:44:01 -08:00
llvm-build
llvm-lit
llvm-locstats [llvm-locstats] Fix 'only params' no entry value stats 2019-10-15 10:12:14 +00:00
LLVMVisualizers
Misc
not
PerfectShuffle
release Update build_llvm_package.bat to build from the monorepo 2019-11-27 09:11:53 +01:00
Reviewing find_interesting_reviews.py: avoid crash on non-ascii data. 2019-11-08 14:51:36 +00:00
sanitizers
TableGen Revert "Use InitLLVM to setup a pretty stack printer" 2019-11-25 21:06:56 -05:00
Target/ARM
testgen
textmate
unittest Fixed -Wdeprecated-copy warnings in gtest. NFCI. 2019-11-24 09:42:28 +01:00
UpdateTestChecks [UpdateTestChecks] Fix parsing of RUN: lines with line continuations 2019-12-03 08:24:48 +00:00
valgrind
vim [X86] Add new calling convention that guarantees tail call optimization 2019-10-07 22:28:58 +00:00
vscode
yaml-bench
abtest.py
add_argument_names.py
bisect [utils] Fix incompatibility of bisect[-skip-count] with Python 3 2019-10-04 16:44:18 +00:00
bisect-skip-count [utils] Fix incompatibility of bisect[-skip-count] with Python 3 2019-10-04 16:44:18 +00:00
bugpoint_gisel_reducer.py
check-each-file
chunk-print-before-all.py
clang-parse-diagnostics-file
codegen-diff
collect_and_build_with_pgo.py
countloc.sh
create_ladder_graph.py
demangle_tree.py
DSAclean.py
DSAextract.py
extract_symbols.py Use portable flag with nm in extract_symbols.py 2019-10-23 16:48:22 -04:00
extract_vplan.py
findmisopt
findoptdiff
findsym.pl
GenLibDeps.pl
GetRepositoryPath
GetSourceVersion
getsrcs.sh
indirect_calls.py
lldbDataFormatters.py Add LLDB dataformatters for llvm::StringRef and lldb_private::ConstString 2019-08-16 23:47:57 +00:00
llvm-compilers-check
llvm-gisel-cov.py
llvm-native-gxx
llvm.grm
LLVMBuild.txt
llvmdo
llvmgrep
prepare-code-coverage-artifact.py
schedcover.py
shuffle_fuzz.py
shuffle_select_fuzz_tester.py
sort_includes.py
unicode-case-fold.py
update_analyze_test_checks.py [UpdateTestChecks] Change shebang from python to python3 2019-12-03 13:50:07 -08:00
update_cc_test_checks.py [update_cc_test_checks.py] Use CHECK_RE from common 2019-12-02 18:18:47 +00:00
update_llc_test_checks.py [UpdateTestChecks] Change shebang from python to python3 2019-12-03 13:50:07 -08:00
update_mca_test_checks.py [UpdateTestChecks] Change shebang from python to python3 2019-12-03 13:50:07 -08:00
update_mir_test_checks.py [UpdateTestChecks] Change shebang from python to python3 2019-12-03 13:50:07 -08:00
update_test_checks.py [UpdateTestChecks] Change shebang from python to python3 2019-12-03 13:50:07 -08:00
UpdateCMakeLists.pl
wciia.py