-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure in ctest: Required regular expression not found #395
Comments
Hello @AdrianTianyi, What version of CMake is this? Can you run |
Thanks very much for your reply! My CMake version is 3.21.0-rc2. It is not convenient for me to upload the whole log file. The followings are some possible key points in the log file. If you need other specific contents, let me know. In configuring: `1: OVERALL FINAL RESULT: TEST FAILED (TAATDriver_TAAT_COPY_FILES_TO_TEST_DIR_bad_file_name) 0% tests passed, 1 tests failed out of 1 Total Test time (real) = 0.03 sec The following tests FAILED: TEST_2: Return code = 8 In another part: ` XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Test time = 0.14 sec ---------------------------------------------------------- Test Pass Reason: Required regular expression found. Regex=[OVERALL FINAL RESULT: TEST PASSED .TriBITS_DepTestReduced_EnableEpetra_EnableRTOp_DisableTeuchos.] "TriBITS_DepTestReduced_EnableEpetra_EnableRTOp_DisableTeuchos" end time: Jul 23 14:36 CST "TriBITS_DepTestReduced_EnableEpetra_EnableRTOp_DisableTeuchos" time elapsed: 00:00:00 ---------------------------------------------------------- Advanced Test: TriBITS_CTestScripts_TAAT_COPY_FILES_TO_TEST_DIR_bad_dest_dir_DRIVER Selected Test/CTest Propeties:
` ================================================================================ OVERALL FINAL RESULT: TEST PASSED (TriBITS_CTestScripts_TAAT_COPY_FILES_TO_TEST_DIR_bad_dest_dir_DRIVER) `
|
This is what I suspected. These are known failures that were encountered as part of #363 in adding testing of TriBITS against CMake 3.21. The failures in:
were addressed in PR #392 and pushed to 'master' a few days ago. I have not seen any failures in the test The rest of the failing tests appear to be due to changes in behavior (i.e. likely regressions) in CMake 3.21 compared to prior versions of CMake as demonstrated and explained in the demonstration PR #394. I have a ticket open with Kitware to work through these issues (and I just met with them this morning about this actually). I don't think these are TriBITS defects if you look at the evidence in that PR. From my analysis of these failures is that they seem to be isolated to ctest -S invocations and may not be impacting basic usage of CMake. Therefore, I would not worry too much about these (but it is important for Kitware to resolve this for some customers that use CMake and TriBITS). NOTE: You might consider using CMake 3.21.0 now that it has been released instead of a release candidate 3.21.0-rc2
No, after configuring the TriBITS CMake project, you just literally run the command |
Thanks very much for your kindly reply and valuable advice. I will try this approach to see whether it is this issue, and then return to you. |
Hi. I just try to install TriBITS in my own PC with CMake 3.21.0-rc2 and CMake-3.21.0. However, both of them failed, though |
By the way, since most of the tests succeed, if I ignore these failures, will the basic usage of TriBITS be influenced? |
Hi, I have tried several new combinations of the versions of cmake and g++,gcc, gfortran versions. However, all of them failed, which is very frustrated. |
@AdrianTianyi, thanks for posting the configure, build, and test test results for different CMake versions to CDash with The tests all pass for CMake 3.17.5 except for two failing tests as shown here showing:
It looks like those two tests fail due to non-standard output from commands like
When you say "PC", do you mean with native Windows or with the Windows Subsystem for Linux (WSL)? As for "installing" TriBITS, it is just a set of CMake modules so all you do is just copy the |
@AdrianTianyi, sorry for any frustration this has caused you and I appreciate your patience here. The issue is that many of the TriBITS tests are very strong but in being strong, some of them can be a bit fragile by needing to depend on the behavior of the underlying system tools like the build tools |
Thanks a lot for your reply! I fully understand the reason and necessity for the strong tests. After several times tries, I finally succeed in passing all ctests in my PC( a linux machine). The final setting is python3.8.8 , gcc 9.4, g++ 9.4 and cmake 3.18.6. Furthermore, I changed the language of the system to English. This makes all ctests succeed. Meanwhile, I also test on the server. The gcc, g++ versions are both 7.4 and cmake 3.18.6. Then all the tests also pass. (The only change on the server is the version of cmake.) |
@AdrianTianyi, you getting all of the tests to pass, can we close this issue? |
Thanks. Let's close this issue. |
Thanks @AdrianTianyi! |
Hi, I am now building and installing TriBITS. I follow the README.rst. However, when running ctest, 11 tests fail with the same reason:
Required regular expression not found
.The failed tests are
172 - TriBITS_TribitsHelloWorld_CONFIGURE_OPTIONS_FILE (Failed)
237 - TriBITS_gitdist_UnitTests (Failed)
329 - TriBITS_CTestDriver_PBP_ST_ALL_PASS (Failed)
331 - TriBITS_CTestDriver_PBP_ST_BreakConfigureOptionalPkg (Failed)
332 - TriBITS_CTestDriver_PBP_ST_BreakBuildLibOptionalPkg (Failed)
333 - TriBITS_CTestDriver_PBP_ST_BreakBuildAllOptionalPkg (Failed)
334 - TriBITS_CTestDriver_PBP_ST_BreakTestPkg (Failed)
335 - TriBITS_CTestDriver_PBP_ST_BreakConfigureRequiredPkg (Failed)
340 - TriBITS_CTestDriver_PBP_PT_ALL_PASS_CALLS_2 (Failed)
341 - TriBITS_CTestDriver_PBP_PT_ALL_PASS_CALLS_4 (Failed)
361 - TriBITS_CTestDriver_AAOP_CTEST_DO_INSTALL_FAIL_bad_intall_filename (Failed)
What's the possible reason?
Thanks a lot!
The text was updated successfully, but these errors were encountered: