1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/utils
Kristina Bessonova 175bc341a3 [lit] Attempt for fix tests failing because of 'warning: non-portable path to file'
This is an attempt to fix clang test failures due to 'nonportable-include-path'
warnings on Windows when a path to llvm-project's base directory contains some
uppercase letters (excluding a drive letter).

The issue originates from 2 problems:
* discovery.py loads site config in lower case causing all the paths
based on __file__ and requested within the config file to be in lowercase as well,
* neither os.path.abspath() nor os.path.realpath() (both used to obtain paths of
config files, sources, object directories, etc) do not return paths in the correct
case for Windows (at least consistently for all python versions).

As os.path library doesn't seem to provide any relaible way to restore
the case for paths on Windows, this patch proposes to use pathlib.resolve().
pathlib is a part of Python 3.4 while llvm lit requires Python 3.6.

Reviewed By: Meinersbur

Differential Revision: https://reviews.llvm.org/D103014
2021-06-12 12:49:03 +02:00
..
benchmark [various] Remove or use variables which are unused but set. 2021-06-01 15:38:48 -07:00
bugpoint
count
crosstool
docker
emacs [SanitizeCoverage] Add support for NoSanitizeCoverage function attribute 2021-05-25 12:57:14 +02:00
FileCheck [FileCheck] Try to fix buildbot failures caused by c7c542e8f306 2021-03-27 11:03:10 -04:00
fpcmp
gdb-scripts Avoid fragile type lookups in GDB pretty printer 2021-01-22 14:56:32 +01:00
git
gn [gn build] Port 7eba4856c702 2021-06-11 18:04:01 +00:00
jedit
kate [Utils] Add missing attributes in syntax files 2021-03-05 17:36:09 +00:00
KillTheDoctor
lint
lit [lit] Attempt for fix tests failing because of 'warning: non-portable path to file' 2021-06-12 12:49:03 +02:00
llvm-lit
llvm-locstats
LLVMVisualizers Fix MSVC natvis visualisation of llvm::FixedVectorTyID and ScalableVectorTyID 2021-02-15 13:43:31 +00:00
Misc
not
PerfectShuffle
release Add LLDB in release binaries by default 2021-06-04 11:57:00 +05:00
Reviewing
sanitizers
TableGen [ValueTypes] Define MVTs for v6i32, v6f32, v7i32, v7f32 2021-06-11 08:58:16 +09:00
Target/ARM
testgen
textmate
unittest Fix some deprecated copy ops in google mock 2021-05-16 15:59:06 -07:00
UpdateTestChecks [UpdateTestChecks] Default --x86_scrub_rip to False 2021-05-21 19:26:15 -07:00
valgrind
vim [Utils][vim] Highlight 'ptr' type 2021-06-09 21:39:51 -07:00
vscode [SanitizeCoverage] Add support for NoSanitizeCoverage function attribute 2021-05-25 12:57:14 +02:00
yaml-bench
abtest.py abtest.py: support bisection based on a response file 2021-04-08 09:46:01 -07:00
add_argument_names.py
bisect
bisect-skip-count
bugpoint_gisel_reducer.py
check_ninja_deps.py
check-each-file
chunk-print-before-all.py
clang-parse-diagnostics-file
codegen-diff Prefer /usr/bin/env xxx over /usr/bin/xxx where xxx = perl, python, awk 2021-02-25 11:32:27 +01:00
collect_and_build_with_pgo.py
convert-constraint-log-to-z3.py
countloc.sh
create_ladder_graph.py
demangle_tree.py
DSAclean.py
DSAextract.py
extract_symbols.py
extract_vplan.py
extract-section.py [M68k] Fix extract-section.py under Python 3 2021-03-14 11:36:57 -07:00
findmisopt
findoptdiff
findsym.pl Prefer /usr/bin/env xxx over /usr/bin/xxx where xxx = perl, python, awk 2021-02-25 11:32:27 +01:00
GenLibDeps.pl Prefer /usr/bin/env xxx over /usr/bin/xxx where xxx = perl, python, awk 2021-02-25 11:32:27 +01:00
GetSourceVersion
getsrcs.sh
indirect_calls.py
lldbDataFormatters.py [llvm][utils] Fix handling of llvm::None 2021-03-29 17:43:53 -07:00
llvm-compilers-check Prefer /usr/bin/env xxx over /usr/bin/xxx where xxx = perl, python, awk 2021-02-25 11:32:27 +01:00
llvm-gisel-cov.py
llvm-native-gxx Prefer /usr/bin/env xxx over /usr/bin/xxx where xxx = perl, python, awk 2021-02-25 11:32:27 +01:00
llvm-original-di-preservation.py Recommit: "[Debugify][Original DI] Test dbg var loc preservation"" 2021-05-21 02:04:29 -07:00
llvm.grm [SanitizeCoverage] Add support for NoSanitizeCoverage function attribute 2021-05-25 12:57:14 +02:00
llvmdo
llvmgrep
merge-stats.py
prepare-code-coverage-artifact.py
remote-exec.py
schedcover.py
shuffle_fuzz.py
shuffle_select_fuzz_tester.py
sort_includes.py
sysroot.py sysroot.py: add support for darwin 2021-02-18 10:48:18 -05:00
unicode-case-fold.py
update_analyze_test_checks.py [Utils][NFC] Rename replace-function-regex in update_cc_test_checks 2021-05-05 14:19:30 -07:00
update_cc_test_checks.py [Utils] Run non-filecheck runlines in-order in update_cc_test_checks 2021-05-04 12:06:03 -07:00
update_llc_test_checks.py [UpdateTestChecks] Default --x86_scrub_rip to False 2021-05-21 19:26:15 -07:00
update_mca_test_checks.py
update_mir_test_checks.py
update_test_checks.py [update_(llc_)test_checks.py] Support pre-processing commands 2021-04-28 12:19:19 +01:00
update_test_prefix.py
UpdateCMakeLists.pl
wciia.py [Utils] Fix indentation error in utils/wciia.py 2021-05-16 22:34:09 +08:00