-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
87 changed files
with
1,362 additions
and
554 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<!-- | ||
Copyright 2020 Ole Kliemann, Malte Kliemann | ||
This file is part of DrMock. | ||
DrMock is free software: you can redistribute it and/or modify it | ||
under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
DrMock is distributed in the hope that it will be useful, but | ||
WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with DrMock. If not, see <https://www.gnu.org/licenses/>. | ||
--> | ||
|
||
# DrMock 0.2.0 | ||
|
||
Released 2020/05/15 | ||
|
||
### Added/Changed: | ||
|
||
* Autodetect number of threads for compiling in Makefile | ||
|
||
* Add convenience Makefile for building all sample projects | ||
|
||
* Add tutorial for manually building **DrMock** | ||
|
||
* Add pkg-config file | ||
|
||
* Add DRMOCK, DRMOCK_DUMMY macros | ||
|
||
- Change order of includes in mock objects | ||
(so that `DRMOCK` is defined when including the interface header in | ||
mock object header) | ||
|
||
* Allow applying `DRTEST_VERIFY_MOCK` to mock object (not just method objects) | ||
|
||
- Add `makeFormattedErrorString` virtual method to `IMethod` interface | ||
|
||
- Add `makeFormattedErrorString` method to `MethodCollection` | ||
(concatenates formatted error strings of collected method objects) | ||
|
||
- Add `makeFormattedErrorString` method to mock objects (returns | ||
formatted error string of method collection) | ||
|
||
* Use `RESOURCES` parameter in `DrMockTest` to add resource files to | ||
test executables | ||
|
||
* Add remark about QII pattern to docs | ||
|
||
### Removed | ||
|
||
* Disable verbose print from DrMockGenerator | ||
|
||
### Fixed | ||
|
||
* Add missing remark that `DRMOCK_QT_PATH` must be set when using | ||
`DrMockModule` with Qt5 modules to documentation. | ||
|
||
* Apply do-while-false pattern to `DRTEST_VERIFY_MOCK` | ||
|
||
* Fix formatting errors and typos in source/docs | ||
|
||
* Fix transition table in rocket example | ||
|
||
* Replace `python3.7` and `pip3.7` with `python` and `pip` and shifting | ||
the responsibility of managing the python versions to the user. | ||
|
||
* Replace odd error message thrown when using `DrMockModule` with | ||
`QTMODULE` parameter but unset `DRMOCK_QT_PATH` environment variable. | ||
|
||
* Throw error message if `DrMockTest` can't find files specified in `TESTS`. | ||
|
||
# DrMock 0.1.0 | ||
|
||
Released 2020/01/10 | ||
|
||
Official open-source release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,23 @@ | ||
# Discover operating system. | ||
uname := $(shell uname -s) | ||
|
||
# Get number of threads | ||
ifeq ($(uname), Darwin) | ||
num_threads := $(shell sysctl -n hw.activecpu) | ||
else # Assuming Linux. | ||
num_threads := $(shell nproc) | ||
endif | ||
|
||
.PHONY: default | ||
default: | ||
mkdir -p build && cd build && cmake .. -DCMAKE_PREFIX_PATH=${DRMOCK_QT_PATH} | ||
cd python && make && python3.7 setup.py bdist_wheel && cd .. | ||
mkdir -p build && cd build && make -j10 && ctest --output-on-failure | ||
mkdir -p build && cd build && cmake -DCMAKE_INSTALL_PREFIX="../prefix" .. -DCMAKE_PREFIX_PATH=${DRMOCK_QT_PATH} | ||
cd python && make && cd .. | ||
cd build && make -j$(num_threads) && ctest --output-on-failure | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -fr build && rm -fr prefix | ||
|
||
.PHONY: install | ||
install: | ||
cd build && make install && cd .. |
Oops, something went wrong.