Just recreate and run the Docker image to run all of the tests. Notice the top of the average.c unit test: Copy Code extern"C"{ #include"average.h" } Because CppUTest is written in C and built for C testing, you must use the ‘extern “C”’ keyword to include pure C code in ...
I however haven't had any success so my progress is irrelevant. I really want to use proper unit tests so any tips on getting this or any other unit tests working would be great. Look herehttp://developer.mbed.org/users/PrzemekWirkus/notebook/mbed-sdk---cpputest-usage/ and some test h...
I have a cross-compiled embedded c library which uses the CppUTest unit testing framework. This framework relies on compiling the c sources as c++ for the tests. I build the library twice, the second time for the tests using the 'native' option, and pass it the c_arg '-xc++', to fo...
sudoaptinstalllibdnet-dev build-essential cpputest libpcap-dev libpcre3-dev libnet1-dev zlib1g-dev luajit hwloc libdumbnet-devbisonflexlibmnl-dev uuid-dev liblzma-dev openssl autotools-dev libssl-dev pkg-config libhwloc-dev cmake libsqlite3-dev libunwind-dev libcmocka-dev libnetfilter-queue-dev...
CPPUTEST_CPPFLAGS += $(LOG_FLAGS) LCOV_EXCLUDE_PATTERN = "tests/unit/*" LCOV_EXCLUDE_PATTERN += "tests/integration/*" LCOV_EXCLUDE_PATTERN += "external_libs/*" #use this section for running a specific group of tests, comment this to run all ...