I want to measure the code coverage of different tests from OpenSSL test suite. I successfully measured the total coverage of the tests with this method:$ make clean$ export CC=gcc -fprofile-arcs -ftest-coverage; ./config enable-unit-test$ make$ make tests... then run gcov to create the .gcov files(After this I can run gcov on the C files in the subfolders of OpenSSL)This is the result of the command make tests:https://github.com/istvanbohm/OpenSSLUnitTests/blob/master/TestResultBut I can't execute just one specific test (none of them working):$ make clean$ export CC=gcc -fprofile-arcs -ftest-coverage; ./config enable-unit-test$ make$ make TESTS=bntest test I get this result from the last command:blackcat@ubuntu:~/my_project/projects/openssl-1.0.0$ make TESTS=bntest testtesting...make[1]: Entering directory `/home/blackcat/my_project/projects/openssl-1.0.0/test'make[2]: Entering directory `/home/blackcat/my_project/projects/openssl-1.0.0'making all in apps...make[3]: Entering directory `/home/blackcat/my_project/projects/openssl-1.0.0/apps'make[3]: Nothing to be done for `all'.make[3]: Leaving directory `/home/blackcat/my_project/projects/openssl-1.0.0/apps'make[2]: Leaving directory `/home/blackcat/my_project/projects/openssl-1.0.0'make[1]: Leaving directory `/home/blackcat/my_project/projects/openssl-1.0.0/test'OPENSSL_CONF=apps/openssl.cnf util/opensslwrap.sh version -aOpenSSL 1.0.0 29 Mar 2010built on: Wed Jul 29 12:40:53 CEST 2015platform: linux-x86_64options:  bn(64,64) rc4(1x,char) des(idx,cisc,16,int) idea(int) blowfish(idx) compiler: gcc -fprofile-arcs -ftest-coverage -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DMD32_REG_T=int -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DWHIRLPOOL_ASMOPENSSLDIR: /usr/local/sslblackcat@ubuntu:~/my_project/projects/openssl-1.0.0$I tried other tests too, but the result is the same. Why? I want to do this because I want to put the testing in a for loop, and call it again and again with different tests (this part is ready).
How to run a specific test from OpenSSL test suite?
ubuntu;make;openssl;testing