Enable code coverage tracking in pyocf

This commit is contained in:
Kamil Lepek 2020-01-08 11:00:07 +01:00
parent b58ebd4b88
commit 0d6660d4f3
2 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@ To run functional tests you need to install the following:
- python3 (>=3.6.7) - python3 (>=3.6.7)
- pytest (Install with `pip3 install pytest`) - pytest (Install with `pip3 install pytest`)
To run all functional tests (in compliance with the configuration file) use the following command: To run all functional tests (in compliance with the configuration file) compile using makefile located in `./tests/functional/Makefile` and then use the following command:
~~~{.sh} ~~~{.sh}
pytest pytest

View File

@ -23,11 +23,11 @@ all: | sync config_random
$(OCFLIB): $(OBJS) $(OCFLIB): $(OBJS)
@echo "Building $@" @echo "Building $@"
@$(CC) -shared -o $@ $(CFLAGS) $^ -fPIC $(LDFLAGS) @$(CC) -coverage -shared -o $@ $(CFLAGS) $^ -fPIC $(LDFLAGS)
%.o: %.c %.o: %.c
@echo "Compiling $@" @echo "Compiling $@"
@$(CC) -c $(CFLAGS) -o $@ -fPIC $^ $(LDFLAGS) @$(CC) -coverage -c $(CFLAGS) -o $@ -fPIC $^ $(LDFLAGS)
sync: sync:
@echo "Syncing OCF sources" @echo "Syncing OCF sources"