Merge pull request #335 from KamilLepek/codecov
Enable code coverage tracking in pyocf
This commit is contained in:
commit
f2754ff06f
@ -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
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user