-
Notifications
You must be signed in to change notification settings - Fork 47
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
Fix #251: cgreen-runner handle non-lib files #255
Fix #251: cgreen-runner handle non-lib files #255
Commits on May 30, 2021
-
Fix cgreen-devs#251: cgreen-runner handle non-lib files
Remove dependency to nm and rather use libbfd, which is the same lib used by nm. There is no additional depency, but cmake will fail if it cannot find libbfd. There was no check for nm before. Unit test still use nm to count the number of symbols. It provides a double check on this implementation. Before we would get: $ ./build/tools/cgreen-runner ./build/tests/libbreadcrumb_tests.so Running "libbreadcrumb_tests" (9 tests)... "Breadcrumb": 9 passes in 3ms. Completed "libbreadcrumb_tests": 9 passes in 3ms. $ ./build/tools/cgreen-runner ./build/tests/Makefile /usr/bin/nm: ./build/tests/Makefile: file format not recognized No tests found in './build/tests/Makefile'. $ ./build/tools/cgreen-runner /usr/lib/libgit2.so /usr/bin/nm: /usr/lib/libgit2.so: no symbols No tests found in '/usr/lib/libgit2.so'. After this patch we get: $ ./build/tools/cgreen-runner ./build/tests/libbreadcrumb_tests.so Running "libbreadcrumb_tests" (9 tests)... "Breadcrumb": 9 passes in 3ms. Completed "libbreadcrumb_tests": 9 passes in 3ms. $ ./build/tools/cgreen-runner ./build/tests/Makefile No tests found in './build/tests/Makefile'. $ ./build/tools/cgreen-runner /usr/lib/libgit2.so No tests found in '/usr/lib/libgit2.so'.
Configuration menu - View commit details
-
Copy full SHA for 8692d76 - Browse repository at this point
Copy the full SHA 8692d76View commit details -
Add depending on the distro used: /usr/lib/libbfd.(a|so). Headers and libraries are provided by different package depending on the distro: binutils, binutils-devel, sys-libs/binutils-libs, etc.
Configuration menu - View commit details
-
Copy full SHA for afb00f4 - Browse repository at this point
Copy the full SHA afb00f4View commit details -
Following change to dicoverer.c, unit tests needed some rewriting. Discoverer acceptance and unit tests were added to cmake.
Configuration menu - View commit details
-
Copy full SHA for ec2d46c - Browse repository at this point
Copy the full SHA ec2d46cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 956dc6f - Browse repository at this point
Copy the full SHA 956dc6fView commit details -
Valgrind test are now part of cmake/ctest
This change allow dependency validation and parallel testing.
Configuration menu - View commit details
-
Copy full SHA for 2d7e2b8 - Browse repository at this point
Copy the full SHA 2d7e2b8View commit details
Commits on Dec 26, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 1eb64d1 - Browse repository at this point
Copy the full SHA 1eb64d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 411658b - Browse repository at this point
Copy the full SHA 411658bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0203062 - Browse repository at this point
Copy the full SHA 0203062View commit details -
Configuration menu - View commit details
-
Copy full SHA for 00e1004 - Browse repository at this point
Copy the full SHA 00e1004View commit details -
Configuration menu - View commit details
-
Copy full SHA for 586cd00 - Browse repository at this point
Copy the full SHA 586cd00View commit details -
Configuration menu - View commit details
-
Copy full SHA for f3ae074 - Browse repository at this point
Copy the full SHA f3ae074View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7945aea - Browse repository at this point
Copy the full SHA 7945aeaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3aa379e - Browse repository at this point
Copy the full SHA 3aa379eView commit details
Commits on Dec 27, 2021
-
Configuration menu - View commit details
-
Copy full SHA for aac095e - Browse repository at this point
Copy the full SHA aac095eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3742c88 - Browse repository at this point
Copy the full SHA 3742c88View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9767e2f - Browse repository at this point
Copy the full SHA 9767e2fView commit details
Commits on Dec 28, 2021
-
[tools][unittests] Re-imagine to avoid using the runner for unittesti…
…ng runner... When developing the cgreen-runner, we want to avoid using it for running the unittests as to not end up with unit tests not running.
Configuration menu - View commit details
-
Copy full SHA for 968a6b3 - Browse repository at this point
Copy the full SHA 968a6b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 92fbd8c - Browse repository at this point
Copy the full SHA 92fbd8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for d078e83 - Browse repository at this point
Copy the full SHA d078e83View commit details -
[tools][bfd] Add non-dynamic versions of symtab_upper_bounds & canoni…
…calize When reading a non-dynamic BFD object we need to use corresponding non-dynamic version of the functions. This made the runner correctly handle COFF/PE32+ files (.DLL's)
Configuration menu - View commit details
-
Copy full SHA for 326c5a5 - Browse repository at this point
Copy the full SHA 326c5a5View commit details -
[tools][runner] Re-merge dynamic and non-dynamic symbol reading
The difference is actually only which 'symtab_upper_bound' and 'canonicalize' you use.
Configuration menu - View commit details
-
Copy full SHA for 12d3699 - Browse repository at this point
Copy the full SHA 12d3699View commit details -
Configuration menu - View commit details
-
Copy full SHA for 873c5c9 - Browse repository at this point
Copy the full SHA 873c5c9View commit details