[all-commits] [llvm/llvm-project] af1315: [libc][NFC] Move UnitTest and IntegrationTest to t...

Siva Chandra via All-commits all-commits at lists.llvm.org
Tue Feb 7 11:46:46 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: af1315c28f9bab76d3c2e1492a3d41e7c48215f8
      https://github.com/llvm/llvm-project/commit/af1315c28f9bab76d3c2e1492a3d41e7c48215f8
  Author: Siva Chandra Reddy <sivachandra at google.com>
  Date:   2023-02-07 (Tue, 07 Feb 2023)

  Changed paths:
    M libc/cmake/modules/LLVMLibCTestRules.cmake
    M libc/test/CMakeLists.txt
    M libc/test/ErrnoSetterMatcher.h
    A libc/test/IntegrationTest/CMakeLists.txt
    A libc/test/IntegrationTest/test.cpp
    A libc/test/IntegrationTest/test.h
    A libc/test/UnitTest/CMakeLists.txt
    A libc/test/UnitTest/FPExceptMatcher.cpp
    A libc/test/UnitTest/FPExceptMatcher.h
    A libc/test/UnitTest/FPMatcher.cpp
    A libc/test/UnitTest/FPMatcher.h
    A libc/test/UnitTest/FuchsiaTest.h
    A libc/test/UnitTest/LibcTest.cpp
    A libc/test/UnitTest/LibcTest.h
    A libc/test/UnitTest/LibcTestMain.cpp
    A libc/test/UnitTest/MemoryMatcher.cpp
    A libc/test/UnitTest/MemoryMatcher.h
    A libc/test/UnitTest/PlatformDefs.h
    A libc/test/UnitTest/PrintfMatcher.cpp
    A libc/test/UnitTest/PrintfMatcher.h
    A libc/test/UnitTest/README.md
    A libc/test/UnitTest/ScanfMatcher.cpp
    A libc/test/UnitTest/ScanfMatcher.h
    A libc/test/UnitTest/StringUtils.h
    A libc/test/UnitTest/Test.h
    M libc/test/integration/src/__support/threads/thread_detach_test.cpp
    M libc/test/integration/src/__support/threads/thread_tls_test.cpp
    M libc/test/integration/src/pthread/pthread_equal_test.cpp
    M libc/test/integration/src/pthread/pthread_exit_test.cpp
    M libc/test/integration/src/pthread/pthread_mutex_test.cpp
    M libc/test/integration/src/pthread/pthread_name_test.cpp
    M libc/test/integration/src/pthread/pthread_once_test.cpp
    M libc/test/integration/src/pthread/pthread_test.cpp
    M libc/test/integration/src/pthread/pthread_tss_test.cpp
    M libc/test/integration/src/spawn/posix_spawn_test.cpp
    M libc/test/integration/src/stdio/sprintf_size_test.cpp
    M libc/test/integration/src/stdlib/getenv_test.cpp
    M libc/test/integration/src/threads/call_once_test.cpp
    M libc/test/integration/src/threads/cnd_test.cpp
    M libc/test/integration/src/threads/mtx_test.cpp
    M libc/test/integration/src/threads/thrd_equal_test.cpp
    M libc/test/integration/src/threads/thrd_exit_test.cpp
    M libc/test/integration/src/threads/thrd_test.cpp
    M libc/test/integration/src/threads/tss_test.cpp
    M libc/test/integration/src/unistd/execv_test.cpp
    M libc/test/integration/src/unistd/execve_test.cpp
    M libc/test/integration/src/unistd/fork_test.cpp
    M libc/test/integration/src/unistd/getcwd_test.cpp
    M libc/test/integration/startup/linux/args_test.cpp
    M libc/test/integration/startup/linux/init_fini_array_test.cpp
    M libc/test/integration/startup/linux/main_without_args.cpp
    M libc/test/integration/startup/linux/main_without_envp.cpp
    M libc/test/integration/startup/linux/tls_test.cpp
    M libc/test/src/__support/CPP/atomic_test.cpp
    M libc/test/src/__support/CPP/bitset_test.cpp
    M libc/test/src/__support/CPP/cstddef_test.cpp
    M libc/test/src/__support/CPP/integer_sequence_test.cpp
    M libc/test/src/__support/CPP/limits_test.cpp
    M libc/test/src/__support/CPP/optional_test.cpp
    M libc/test/src/__support/CPP/span_test.cpp
    M libc/test/src/__support/CPP/stringstream_test.cpp
    M libc/test/src/__support/CPP/stringview_test.cpp
    M libc/test/src/__support/FPUtil/dyadic_float_test.cpp
    M libc/test/src/__support/File/file_test.cpp
    M libc/test/src/__support/File/platform_file_test.cpp
    M libc/test/src/__support/OSUtil/linux/x86_64/syscall_test.cpp
    M libc/test/src/__support/arg_list_test.cpp
    M libc/test/src/__support/blockstore_test.cpp
    M libc/test/src/__support/char_vector_test.cpp
    M libc/test/src/__support/endian_test.cpp
    M libc/test/src/__support/fixedvector_test.cpp
    M libc/test/src/__support/high_precision_decimal_test.cpp
    M libc/test/src/__support/integer_to_string_test.cpp
    M libc/test/src/__support/str_to_float_test.cpp
    M libc/test/src/__support/uint_test.cpp
    M libc/test/src/assert/assert_test.cpp
    M libc/test/src/ctype/isalnum_test.cpp
    M libc/test/src/ctype/isalpha_test.cpp
    M libc/test/src/ctype/isascii_test.cpp
    M libc/test/src/ctype/isblank_test.cpp
    M libc/test/src/ctype/iscntrl_test.cpp
    M libc/test/src/ctype/isdigit_test.cpp
    M libc/test/src/ctype/isgraph_test.cpp
    M libc/test/src/ctype/islower_test.cpp
    M libc/test/src/ctype/isprint_test.cpp
    M libc/test/src/ctype/ispunct_test.cpp
    M libc/test/src/ctype/isspace_test.cpp
    M libc/test/src/ctype/isupper_test.cpp
    M libc/test/src/ctype/isxdigit_test.cpp
    M libc/test/src/ctype/toascii_test.cpp
    M libc/test/src/ctype/tolower_test.cpp
    M libc/test/src/ctype/toupper_test.cpp
    M libc/test/src/dirent/dirent_test.cpp
    M libc/test/src/errno/errno_test.cpp
    M libc/test/src/fcntl/creat_test.cpp
    M libc/test/src/fcntl/openat_test.cpp
    M libc/test/src/fenv/enabled_exceptions_test.cpp
    M libc/test/src/fenv/exception_flags_test.cpp
    M libc/test/src/fenv/exception_status_test.cpp
    M libc/test/src/fenv/feclearexcept_test.cpp
    M libc/test/src/fenv/feenableexcept_test.cpp
    M libc/test/src/fenv/feholdexcept_test.cpp
    M libc/test/src/fenv/feupdateenv_test.cpp
    M libc/test/src/fenv/getenv_and_setenv_test.cpp
    M libc/test/src/fenv/rounding_mode_test.cpp
    M libc/test/src/inttypes/imaxabs_test.cpp
    M libc/test/src/inttypes/strtoimax_test.cpp
    M libc/test/src/inttypes/strtoumax_test.cpp
    M libc/test/src/math/CeilTest.h
    M libc/test/src/math/CopySignTest.h
    M libc/test/src/math/FAbsTest.h
    M libc/test/src/math/FDimTest.h
    M libc/test/src/math/FMaxTest.h
    M libc/test/src/math/FMinTest.h
    M libc/test/src/math/FModTest.h
    M libc/test/src/math/FloorTest.h
    M libc/test/src/math/FmaTest.h
    M libc/test/src/math/FrexpTest.h
    M libc/test/src/math/HypotTest.h
    M libc/test/src/math/ILogbTest.h
    M libc/test/src/math/LdExpTest.h
    M libc/test/src/math/LogbTest.h
    M libc/test/src/math/ModfTest.h
    M libc/test/src/math/NextAfterTest.h
    M libc/test/src/math/RIntTest.h
    M libc/test/src/math/RemQuoTest.h
    M libc/test/src/math/RoundTest.h
    M libc/test/src/math/RoundToIntegerTest.h
    M libc/test/src/math/SqrtTest.h
    M libc/test/src/math/TruncTest.h
    M libc/test/src/math/acosf_test.cpp
    M libc/test/src/math/acoshf_test.cpp
    M libc/test/src/math/asin_test.cpp
    M libc/test/src/math/asinf_test.cpp
    M libc/test/src/math/asinhf_test.cpp
    M libc/test/src/math/atanf_test.cpp
    M libc/test/src/math/atanhf_test.cpp
    M libc/test/src/math/cos_test.cpp
    M libc/test/src/math/cosf_test.cpp
    M libc/test/src/math/coshf_test.cpp
    M libc/test/src/math/exhaustive/cosf_test.cpp
    M libc/test/src/math/exhaustive/coshf_test.cpp
    M libc/test/src/math/exhaustive/exhaustive_test.h
    M libc/test/src/math/exhaustive/exp10f_test.cpp
    M libc/test/src/math/exhaustive/exp2f_test.cpp
    M libc/test/src/math/exhaustive/expf_test.cpp
    M libc/test/src/math/exhaustive/expm1f_test.cpp
    M libc/test/src/math/exhaustive/fmod_generic_impl_test.cpp
    M libc/test/src/math/exhaustive/hypotf_test.cpp
    M libc/test/src/math/exhaustive/log10f_test.cpp
    M libc/test/src/math/exhaustive/log1pf_test.cpp
    M libc/test/src/math/exhaustive/log2f_test.cpp
    M libc/test/src/math/exhaustive/logf_test.cpp
    M libc/test/src/math/exhaustive/sincosf_test.cpp
    M libc/test/src/math/exhaustive/sinf_test.cpp
    M libc/test/src/math/exhaustive/sinhf_test.cpp
    M libc/test/src/math/exhaustive/tanf_test.cpp
    M libc/test/src/math/exp10f_test.cpp
    M libc/test/src/math/exp2f_test.cpp
    M libc/test/src/math/expf_test.cpp
    M libc/test/src/math/explogxf_test.cpp
    M libc/test/src/math/expm1f_test.cpp
    M libc/test/src/math/fdim_test.cpp
    M libc/test/src/math/fdimf_test.cpp
    M libc/test/src/math/fdiml_test.cpp
    M libc/test/src/math/ilogb_test.cpp
    M libc/test/src/math/ilogbf_test.cpp
    M libc/test/src/math/ilogbl_test.cpp
    M libc/test/src/math/inv_trigf_utils_test.cpp
    M libc/test/src/math/log10_test.cpp
    M libc/test/src/math/log10f_test.cpp
    M libc/test/src/math/log1pf_test.cpp
    M libc/test/src/math/log2f_test.cpp
    M libc/test/src/math/logf_test.cpp
    M libc/test/src/math/mod_k_pi_test.cpp
    M libc/test/src/math/pow_test.cpp
    M libc/test/src/math/sin_test.cpp
    M libc/test/src/math/sincosf_test.cpp
    M libc/test/src/math/sinf_test.cpp
    M libc/test/src/math/sinhf_test.cpp
    M libc/test/src/math/tan_test.cpp
    M libc/test/src/math/tanf_test.cpp
    M libc/test/src/math/tanhf_test.cpp
    M libc/test/src/pthread/pthread_attr_test.cpp
    M libc/test/src/pthread/pthread_mutexattr_test.cpp
    M libc/test/src/setjmp/setjmp_test.cpp
    M libc/test/src/signal/kill_test.cpp
    M libc/test/src/signal/raise_test.cpp
    M libc/test/src/signal/sigaction_test.cpp
    M libc/test/src/signal/sigaddset_test.cpp
    M libc/test/src/signal/sigaltstack_test.cpp
    M libc/test/src/signal/sigdelset_test.cpp
    M libc/test/src/signal/sigfillset_test.cpp
    M libc/test/src/signal/signal_test.cpp
    M libc/test/src/signal/sigprocmask_test.cpp
    M libc/test/src/spawn/posix_spawn_file_actions_test.cpp
    M libc/test/src/stdio/fgetc_test.cpp
    M libc/test/src/stdio/fgetc_unlocked_test.cpp
    M libc/test/src/stdio/fgets_test.cpp
    M libc/test/src/stdio/fileop_test.cpp
    M libc/test/src/stdio/fopencookie_test.cpp
    M libc/test/src/stdio/fprintf_test.cpp
    M libc/test/src/stdio/fscanf_test.cpp
    M libc/test/src/stdio/ftell_test.cpp
    M libc/test/src/stdio/printf_core/converter_test.cpp
    M libc/test/src/stdio/printf_core/parser_test.cpp
    M libc/test/src/stdio/printf_core/string_writer_test.cpp
    M libc/test/src/stdio/printf_test.cpp
    M libc/test/src/stdio/putc_test.cpp
    M libc/test/src/stdio/puts_test.cpp
    M libc/test/src/stdio/remove_test.cpp
    M libc/test/src/stdio/scanf_core/converter_test.cpp
    M libc/test/src/stdio/scanf_core/parser_test.cpp
    M libc/test/src/stdio/scanf_core/string_reader_test.cpp
    M libc/test/src/stdio/setbuf_test.cpp
    M libc/test/src/stdio/setvbuf_test.cpp
    M libc/test/src/stdio/snprintf_test.cpp
    M libc/test/src/stdio/sprintf_test.cpp
    M libc/test/src/stdio/sscanf_test.cpp
    M libc/test/src/stdio/ungetc_test.cpp
    M libc/test/src/stdio/unlocked_fileop_test.cpp
    M libc/test/src/stdlib/AtoiTest.h
    M libc/test/src/stdlib/DivTest.h
    M libc/test/src/stdlib/StrtolTest.h
    M libc/test/src/stdlib/_Exit_test.cpp
    M libc/test/src/stdlib/abort_test.cpp
    M libc/test/src/stdlib/abs_test.cpp
    M libc/test/src/stdlib/atexit_test.cpp
    M libc/test/src/stdlib/atof_test.cpp
    M libc/test/src/stdlib/atoi_test.cpp
    M libc/test/src/stdlib/atol_test.cpp
    M libc/test/src/stdlib/atoll_test.cpp
    M libc/test/src/stdlib/bsearch_test.cpp
    M libc/test/src/stdlib/labs_test.cpp
    M libc/test/src/stdlib/llabs_test.cpp
    M libc/test/src/stdlib/qsort_test.cpp
    M libc/test/src/stdlib/rand_test.cpp
    M libc/test/src/stdlib/strtod_test.cpp
    M libc/test/src/stdlib/strtof_test.cpp
    M libc/test/src/stdlib/strtol_test.cpp
    M libc/test/src/stdlib/strtold_test.cpp
    M libc/test/src/stdlib/strtoll_test.cpp
    M libc/test/src/stdlib/strtoul_test.cpp
    M libc/test/src/stdlib/strtoull_test.cpp
    M libc/test/src/string/bcmp_test.cpp
    M libc/test/src/string/bcopy_test.cpp
    M libc/test/src/string/bzero_test.cpp
    M libc/test/src/string/memccpy_test.cpp
    M libc/test/src/string/memchr_test.cpp
    M libc/test/src/string/memcmp_test.cpp
    M libc/test/src/string/memcpy_test.cpp
    M libc/test/src/string/memmove_test.cpp
    M libc/test/src/string/memory_utils/op_tests.cpp
    M libc/test/src/string/memory_utils/utils_test.cpp
    M libc/test/src/string/mempcpy_test.cpp
    M libc/test/src/string/memrchr_test.cpp
    M libc/test/src/string/memset_test.cpp
    M libc/test/src/string/stpcpy_test.cpp
    M libc/test/src/string/stpncpy_test.cpp
    M libc/test/src/string/strcasecmp_test.cpp
    M libc/test/src/string/strcasestr_test.cpp
    M libc/test/src/string/strcat_test.cpp
    M libc/test/src/string/strchr_test.cpp
    M libc/test/src/string/strcmp_test.cpp
    M libc/test/src/string/strcoll_test.cpp
    M libc/test/src/string/strcpy_test.cpp
    M libc/test/src/string/strcspn_test.cpp
    M libc/test/src/string/strdup_test.cpp
    M libc/test/src/string/strerror_r_test.cpp
    M libc/test/src/string/strerror_test.cpp
    M libc/test/src/string/strlcat_test.cpp
    M libc/test/src/string/strlcpy_test.cpp
    M libc/test/src/string/strlen_test.cpp
    M libc/test/src/string/strncasecmp_test.cpp
    M libc/test/src/string/strncat_test.cpp
    M libc/test/src/string/strncmp_test.cpp
    M libc/test/src/string/strncpy_test.cpp
    M libc/test/src/string/strndup_test.cpp
    M libc/test/src/string/strnlen_test.cpp
    M libc/test/src/string/strpbrk_test.cpp
    M libc/test/src/string/strrchr_test.cpp
    M libc/test/src/string/strsignal_test.cpp
    M libc/test/src/string/strspn_test.cpp
    M libc/test/src/string/strstr_test.cpp
    M libc/test/src/string/strtok_r_test.cpp
    M libc/test/src/string/strtok_test.cpp
    M libc/test/src/sys/mman/linux/madvise_test.cpp
    M libc/test/src/sys/mman/linux/mmap_test.cpp
    M libc/test/src/sys/mman/linux/mprotect_test.cpp
    M libc/test/src/sys/mman/linux/posix_madvise_test.cpp
    M libc/test/src/sys/random/linux/getrandom_test.cpp
    M libc/test/src/sys/resource/getrlimit_setrlimit_test.cpp
    M libc/test/src/sys/select/select_failure_test.cpp
    M libc/test/src/sys/select/select_ui_test.cpp
    M libc/test/src/sys/sendfile/sendfile_test.cpp
    M libc/test/src/sys/stat/chmod_test.cpp
    M libc/test/src/sys/stat/fchmod_test.cpp
    M libc/test/src/sys/stat/fchmodat_test.cpp
    M libc/test/src/sys/stat/fstat_test.cpp
    M libc/test/src/sys/stat/lstat_test.cpp
    M libc/test/src/sys/stat/mkdirat_test.cpp
    M libc/test/src/sys/stat/stat_test.cpp
    M libc/test/src/sys/utsname/uname_test.cpp
    M libc/test/src/sys/wait/wait4_test.cpp
    M libc/test/src/sys/wait/waitpid_test.cpp
    M libc/test/src/termios/termios_test.cpp
    M libc/test/src/time/TmMatcher.h
    M libc/test/src/time/asctime_r_test.cpp
    M libc/test/src/time/asctime_test.cpp
    M libc/test/src/time/clock_gettime_test.cpp
    M libc/test/src/time/clock_test.cpp
    M libc/test/src/time/difftime_test.cpp
    M libc/test/src/time/gettimeofday_test.cpp
    M libc/test/src/time/gmtime_r_test.cpp
    M libc/test/src/time/gmtime_test.cpp
    M libc/test/src/time/mktime_test.cpp
    M libc/test/src/time/nanosleep_test.cpp
    M libc/test/src/time/time_test.cpp
    M libc/test/src/unistd/access_test.cpp
    M libc/test/src/unistd/chdir_test.cpp
    M libc/test/src/unistd/dup2_test.cpp
    M libc/test/src/unistd/dup3_test.cpp
    M libc/test/src/unistd/dup_test.cpp
    M libc/test/src/unistd/fchdir_test.cpp
    M libc/test/src/unistd/ftruncate_test.cpp
    M libc/test/src/unistd/geteuid_test.cpp
    M libc/test/src/unistd/getopt_test.cpp
    M libc/test/src/unistd/getpid_test.cpp
    M libc/test/src/unistd/getppid_test.cpp
    M libc/test/src/unistd/getuid_test.cpp
    M libc/test/src/unistd/isatty_test.cpp
    M libc/test/src/unistd/link_test.cpp
    M libc/test/src/unistd/linkat_test.cpp
    M libc/test/src/unistd/lseek_test.cpp
    M libc/test/src/unistd/pread_pwrite_test.cpp
    M libc/test/src/unistd/read_write_test.cpp
    M libc/test/src/unistd/readlink_test.cpp
    M libc/test/src/unistd/readlinkat_test.cpp
    M libc/test/src/unistd/rmdir_test.cpp
    M libc/test/src/unistd/symlink_test.cpp
    M libc/test/src/unistd/symlinkat_test.cpp
    M libc/test/src/unistd/syscall_test.cpp
    M libc/test/src/unistd/sysconf_test.cpp
    M libc/test/src/unistd/truncate_test.cpp
    M libc/test/src/unistd/unlink_test.cpp
    M libc/test/src/unistd/unlinkat_test.cpp
    M libc/test/utils/FPUtil/x86_long_double_test.cpp
    M libc/test/utils/UnitTest/testfilter_test.cpp
    M libc/utils/CMakeLists.txt
    R libc/utils/IntegrationTest/CMakeLists.txt
    R libc/utils/IntegrationTest/test.cpp
    R libc/utils/IntegrationTest/test.h
    M libc/utils/MPFRWrapper/MPFRUtils.cpp
    M libc/utils/MPFRWrapper/MPFRUtils.h
    R libc/utils/UnitTest/CMakeLists.txt
    R libc/utils/UnitTest/FPExceptMatcher.cpp
    R libc/utils/UnitTest/FPExceptMatcher.h
    R libc/utils/UnitTest/FPMatcher.cpp
    R libc/utils/UnitTest/FPMatcher.h
    R libc/utils/UnitTest/FuchsiaTest.h
    R libc/utils/UnitTest/LibcTest.cpp
    R libc/utils/UnitTest/LibcTest.h
    R libc/utils/UnitTest/LibcTestMain.cpp
    R libc/utils/UnitTest/MemoryMatcher.cpp
    R libc/utils/UnitTest/MemoryMatcher.h
    R libc/utils/UnitTest/PlatformDefs.h
    R libc/utils/UnitTest/PrintfMatcher.cpp
    R libc/utils/UnitTest/PrintfMatcher.h
    R libc/utils/UnitTest/README.md
    R libc/utils/UnitTest/ScanfMatcher.cpp
    R libc/utils/UnitTest/ScanfMatcher.h
    R libc/utils/UnitTest/StringUtils.h
    R libc/utils/UnitTest/Test.h
    A utils/bazel/llvm-project-overlay/libc/test/UnitTest/BUILD.bazel
    M utils/bazel/llvm-project-overlay/libc/test/libc_test_rules.bzl
    M utils/bazel/llvm-project-overlay/libc/test/src/fenv/BUILD.bazel
    M utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel
    M utils/bazel/llvm-project-overlay/libc/test/src/math/libc_math_test_rules.bzl
    M utils/bazel/llvm-project-overlay/libc/test/src/string/BUILD.bazel
    M utils/bazel/llvm-project-overlay/libc/utils/MPFRWrapper/BUILD.bazel
    R utils/bazel/llvm-project-overlay/libc/utils/UnitTest/BUILD.bazel

  Log Message:
  -----------
  [libc][NFC] Move UnitTest and IntegrationTest to the 'test' directory.

This part of the effort to make all test related pieces into the `test`
directory. This helps is excluding test related pieces in a straight
forward manner if LLVM_INCLUDE_TESTS is OFF. Future patches will also move
the MPFR wrapper and testutils into the 'test' directory.




More information about the All-commits mailing list