[PATCH] D150431: [lit] Add knob --simulator-cmd to allow developers to run LIT on a simulator when real machine is not available

Kan Shengchen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 13 04:22:35 PDT 2023


skan reclaimed this revision.
skan added a comment.

Reopen this revision b/c `TEST_SUITE_RUN_UNDER` does not work for me.

When I build llvm-test-suite with command like `cmake  -DTEST_SUITE_RUN_UNDER="sde --"`, and then run `llvm-lit`, the result looks like

  bash$ llvm-lit -v llvm-test-suite/build/SingleSource/Regression/C++/Regression-C++-2011-03-28-Bitfield.test -a 
  
  llvm-test-suite/build/tools/timeit-target --limit-core 0 --limit-cpu 7200 --timeout 7200 --limit-file-size 104857600 --limit-rss-size 838860800 --append-exitstatus 
  --redirect-output llvm-test-suite/build/SingleSource/Regression/C++/Output/Regression-C++-2011-03-28-Bitfield.test.out 
  --redirect-input /dev/null --chdir llvm-test-suite/build/SingleSource/Regression/C++ --summary 
  llvm-test-suite/build/SingleSource/Regression/C++/Output/Regression-C++-2011-03-28-Bitfield.test.time sde -- 
  llvm-test-suite/build/SingleSource/Regression/C++/Regression-C++-2011-03-28-Bitfield

It tries to run `Regression-C++-2011-03-28-Bitfield` on the simulator, however the tool `timeit-target` is built with same flags, which has illegal instructions too. So the LIT run fail.

And with the knob `--simulator-cmd`, the test can pass.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D150431/new/

https://reviews.llvm.org/D150431



More information about the llvm-commits mailing list