[all-commits] [llvm/llvm-project] fa7a9e: [libc] Add option to run specific tests

Caitlyn Cano via All-commits all-commits at lists.llvm.org
Fri Jul 23 09:08:34 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fa7a9ef1784eca70bc6653bcda6e9a02e0f900bb
      https://github.com/llvm/llvm-project/commit/fa7a9ef1784eca70bc6653bcda6e9a02e0f900bb
  Author: Caitlyn Cano <caitlyncano at google.com>
  Date:   2021-07-23 (Fri, 23 Jul 2021)

  Changed paths:
    M libc/cmake/modules/LLVMLibCTestRules.cmake
    M libc/test/utils/CMakeLists.txt
    A libc/test/utils/UnitTest/CMakeLists.txt
    A libc/test/utils/UnitTest/testfilter_test.cpp
    M libc/utils/UnitTest/CMakeLists.txt
    M libc/utils/UnitTest/LibcTest.cpp
    M libc/utils/UnitTest/LibcTest.h
    A libc/utils/UnitTest/LibcTestMain.cpp

  Log Message:
  -----------
  [libc] Add option to run specific tests

This addition reads command line input to run specific single tests
within a larger call to run all the tests for a particular function.
When the user adds a second argument to the command line, the code skips
all the tests that don't match the user's specified binary. If the user
doesn't specify a test correctly and/or no tests are run, a failure
message prints.

Reviewed By: sivachandra, aeubanks

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




More information about the All-commits mailing list