[all-commits] [llvm/llvm-project] 7035ea: [dexter] Remove lit check for python 3

Reid Kleckner via All-commits all-commits at lists.llvm.org
Tue Nov 5 10:50:02 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7035ea6e3e4371fff223a3a8f660ec149a954876
      https://github.com/llvm/llvm-project/commit/7035ea6e3e4371fff223a3a8f660ec149a954876
  Author: Reid Kleckner <rnk at google.com>
  Date:   2019-11-05 (Tue, 05 Nov 2019)

  Changed paths:
    M debuginfo-tests/dexter/feature_tests/lit.local.cfg

  Log Message:
  -----------
  [dexter] Remove lit check for python 3

This is checking the version of Python used to run lit, which is not
necessarily the same as the version used to run the dexter tests.  If
the tests are run via the build/bin/llvm-lit[.py] helper script, then
that is likely to pick up whatever version of Python is on PATH.
Conventionally, this will find Python 2. CMake already checks that
Python 3 is in use and puts the path to it in the lit site config, so
this check is redundant, and Python 3 will ultimately be used to run
dexter.

Reviewers: jmorse

Differential Revision: https://reviews.llvm.org/D69724


  Commit: 63f49465c3268e59ce2dc02345da187393adabd7
      https://github.com/llvm/llvm-project/commit/63f49465c3268e59ce2dc02345da187393adabd7
  Author: Reid Kleckner <rnk at google.com>
  Date:   2019-11-05 (Tue, 05 Nov 2019)

  Changed paths:
    M debuginfo-tests/CMakeLists.txt
    M debuginfo-tests/dexter/dex/builder/Builder.py
    M debuginfo-tests/dexter/dex/builder/scripts/windows/clang.bat

  Log Message:
  -----------
  [dexter] Fix feature tests on Windows

First, add LLD as a dependency on Windows. The windows batch scripts
pass -fuse-ld=lld, so they need it.

Second, decode builder stdout/stderr even if the command fails.
Otherwise it gets printed as b'line 1\n\rline 2\n\r'.

Last, make the batch script one line less noisy. We might want to try to
do more here, though. It would be nice if we could get as close to
possible as lit, where you can literally copy & paste the failing
command to re-run it.

With the two changes above, now the feature tests that use clang++.bat
pass for me. The clang-cl_vs2015 ones still fail, and I'll fix them
separately.

Reviewers: jmorse

Differential Revision: https://reviews.llvm.org/D69725


Compare: https://github.com/llvm/llvm-project/compare/00e53d912dd7...63f49465c326


More information about the All-commits mailing list