Age | Commit message (Collapse) | Author |
|
When attempting to import and compile the project from the TF-A
unit testing project, the linker throws some errors requiring the
code to be position-independent:
/usr/bin/ld: CMakeFiles/CppUTestExtTests.dir/MockSupport_cTestCFile.c.o:
relocation R_X86_64_32 against `.rodata.str1.1' can not be used
when making a PIE object; recompile with -fPIC
/usr/bin/ld: CMakeFiles/CppUTestExtTests.dir/OrderedTestTest_c.c.o:
relocation R_X86_64_32 against `.rodata.str1.8' can not be used
when making a PIE object; recompile with -fPIC
This is due to the fact that newer versions of the C++ compiler produce
position independent code by default, while the C compiler does not, and
therefore this leads to code incompatibility when linking.
This patch adds a flag (POSITION_INDEPENDENT_CODE) to allow the user decide
whether they want to use PIE/PIC in their code or not. Depending on the
value of the option, the project will be set up accordingly.
Signed-off-by: Juan Pablo Conde <juanpablo.conde@arm.com>
Change-Id: If88d0678e19a31558cf6834a0ba10fd82ca46fa8
|
|
Signed-off-by: Gabor Toth <gabor.toth2@arm.com>
Change-Id: I97bae539b1544707c6f78cee6bd2d0f14999c6d0
|
|
Enable branch coverage when invoking lcov and genhtml.
Signed-off-by: Imre Kis <imre.kis@arm.com>
Change-Id: I9ff9fcb123f8719715d192e3a11a8bbfccdc3965
|
|
Signed-off-by: Balint Dobszay <balint.dobszay@arm.com>
Change-Id: Id08dadcceecd1336818b07b0d9fb5d6600dad236
|
|
Introduce the following features to firmware-test-builder:
* Testing on the host machine (PC)
* Provides CMake functions for building/running/evaluating tests
* Checking prerequisites (git, c-picker, libclang, etc.)
* Fetching and building CppUTest
* Defining and building unit test suites (i.e. separate binaries)
* Handling c-picker based extraction of code snippets
* Registering test suites to CTest (CMake's test system) which runs
all the test binaries
* Generating coverage report
* Documentation of the system
Signed-off-by: Imre Kis <imre.kis@arm.com>
Change-Id: Ic0a1af55bef07c6e76071193caa94a9a48f9041f
|
|
Signed-off-by: Gyorgy Szing <Gyorgy.Szing@arm.com>
Change-Id: Ie498bd6b366c36c0acc9155a772d38efdffa2fca
|