Basin Ilya
2018-03-07 12:10:19 UTC
Hi.
Instead of testing my installable binary I want to test individual c functions in it. The binary's main c file has just the main function and everything else is in a build
static library. I want to add a test binary to my project and pass the test case names to it.
Here's how I modify the existing Makefile.am:
bin_PROGRAMS = rap
rap_SOURCES = rap.c
+TESTS = RapExRecMatches
+.PHONY: $(TESTS)
+LOG_COMPILER = ./testrap
+
+check_PROGRAMS = testrap
+testrap_SOURCES = testrap.c
+testrap_LDADD = $(rap_LDADD)
+
rap_LDADD = \
librap.a \
../fget-1.3.3/lib/libfget.a \
Is this how you do it?
Instead of testing my installable binary I want to test individual c functions in it. The binary's main c file has just the main function and everything else is in a build
static library. I want to add a test binary to my project and pass the test case names to it.
Here's how I modify the existing Makefile.am:
bin_PROGRAMS = rap
rap_SOURCES = rap.c
+TESTS = RapExRecMatches
+.PHONY: $(TESTS)
+LOG_COMPILER = ./testrap
+
+check_PROGRAMS = testrap
+testrap_SOURCES = testrap.c
+testrap_LDADD = $(rap_LDADD)
+
rap_LDADD = \
librap.a \
../fget-1.3.3/lib/libfget.a \
Is this how you do it?