![]() Hopefully that stays a symlink to /dev/null now There is no reason to log that verbose until dnf was called with a -v flag and the same for > dnf clean metadata & dnf ls /var/log/ This is completly useless debug information and i have virtual servers which are below 700 MB at a whole while after a dist-upgrade with dnf this logfile was way above 100 MB on each and every VM So what I did (as was suggest somewhere on stackoverflow) - I added this target manually.Can /var/log/ be silenced somehow? "make tests" does nothing by some reason. If you use CMake with Visual Studio's open folder function you can add the "ctestCommandArgs": "-output-on-failure" ![]() There is a very simple solution (which for some reason is difficult to find via Google Search): ctest -output-on-failure Just step to "Customizing cmake" section. Instead of cat you may use whatever Windows cmd command that does similar things.Īdditional info about customizing ctest you can find here. Place in build dir (from which you run make test) file CTestCustom.ctest (you can do it with configure file command, for example) with following contentsĬTEST_CUSTOM_POST_TEST("cat Testing/Temporary/LastTest.log") The second way is to get ctest to show you the content of log files after running tests: So you can check them manually after executing make test. LastTestFailed.log contains names of failed tests. LastTest.log contains desired output for run tests. This folder contains two files: LastTest.log and LastTestsFailed.log. It is automatically created after running make test. You can check the Testing/Temporary subfolder. ![]() You could call ctest directly, after cmaking and making your project. This Stack Overflow question and answer shows how to set environment variables in Visual Studio. One way to do this when using Makefiles and the command line would be as follows: env CTEST_OUTPUT_ON_FAILURE=1 make check You can set the environment variable CTEST_OUTPUT_ON_FAILURE, which will show you any output from the test program whenever the test fails.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |