# make test failed

**URL:** https://discourse.cmake.org/t/make-test-failed/7564
**Category:** Usage
**Tags:** os:linux
**Created:** [February 28, 2023, 6:19am UTC](https://discourse.cmake.org/t/make-test-failed/7564 "2023-02-28T06:19:54Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Gao\_Xiang](https://discourse.cmake.org/user_avatar/discourse.cmake.org/gao_xiang/32/3211_2.png) [@Gao\_Xiang](https://discourse.cmake.org/u/Gao_Xiang)
#### Post date: [February 28, 2023, 6:19am UTC](https://discourse.cmake.org/t/make-test-failed/7564/1 "2023-02-28T06:19:54Z")

</div>

I use the command to build the system, but I failed.

```auto
make test -j8

```

The output is :

```auto
72% tests passed, 179 tests failed out of 649
 452 - RunCMake.MaxRecursionDepth (Failed)
        453 - RunCMake.add_custom_command (Failed)
        454 - RunCMake.add_custom_target (Failed)
        456 - RunCMake.add_executable (Failed)
        457 - RunCMake.add_library (Failed)
        458 - RunCMake.add_subdirectory (Failed)
        459 - RunCMake.add_test (Failed)
        460 - RunCMake.build_command (Failed)
        461 - RunCMake.execute_process (Failed)
        462 - RunCMake.export (Failed)
        463 - RunCMake.cmake_host_system_information (Failed)
        464 - RunCMake.cmake_language (Failed)
        465 - RunCMake.cmake_minimum_required (Failed)
        466 - RunCMake.cmake_parse_arguments (Failed)
        482 - RunCMake.define_property (Failed)
        483 - RunCMake.file (Failed)
        484 - RunCMake.file-CHMOD (Failed)
        485 - RunCMake.file-DOWNLOAD (Failed)
        486 - RunCMake.file-RPATH (Failed)
        487 - RunCMake.find_file (Failed)
        488 - RunCMake.find_library (Failed)
        489 - RunCMake.find_package (Failed)
        490 - RunCMake.find_path (Failed)
        491 - RunCMake.find_program (Failed)
        492 - RunCMake.foreach (Failed)
        495 - RunCMake.get_filename_component (Failed)
        496 - RunCMake.get_property (Failed)
        497 - RunCMake.if (Failed)
        498 - RunCMake.include (Failed)
        499 - RunCMake.include_directories (Failed)

```

I donot know why. How to make test successfully?  
However, when I use `ctest` command run all tests, it can pass all tests

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [February 28, 2023, 6:19pm UTC](https://discourse.cmake.org/t/make-test-failed/7564/2 "2023-02-28T18:19:57Z")

</div>

You can use `ctest --rerun-failed --output-on-failure` to get failing test output (and only rerun the failing ones).

---

<div class="post-metadata">

### Author: ![Gao\_Xiang](https://discourse.cmake.org/user_avatar/discourse.cmake.org/gao_xiang/32/3211_2.png) [@Gao\_Xiang](https://discourse.cmake.org/u/Gao_Xiang)
#### Post date: [March 1, 2023, 2:45am UTC](https://discourse.cmake.org/t/make-test-failed/7564/3 "2023-03-01T02:45:17Z")

</div>

When I use ctest, it can pass all tests, I donot know why.
