Merge pull request #335 from KamilLepek/codecov

Enable code coverage tracking in pyocf
This commit is contained in:
Michal Rakowski 2020-01-08 13:04:11 +01:00 committed by GitHub
commit f2754ff06f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)
- 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}
pytest

View File

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