-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #420 from micro-manager/mmdevice-mmcore-tests
Use Catch2 for MMDevice/MMCore unit tests
- Loading branch information
Showing
19 changed files
with
358 additions
and
508 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
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 |
---|---|---|
|
@@ -9,4 +9,4 @@ | |
/*.wrap | ||
|
||
# Do not ignore wraps we provide | ||
!/gtest.wrap | ||
!/catch2.wrap |
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,11 @@ | ||
[wrap-file] | ||
directory = Catch2-3.4.0 | ||
source_url = https://github.com/catchorg/Catch2/archive/v3.4.0.tar.gz | ||
source_filename = Catch2-3.4.0.tar.gz | ||
source_hash = 122928b814b75717316c71af69bd2b43387643ba076a6ec16e7882bfb2dfacbb | ||
source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/catch2_3.4.0-1/Catch2-3.4.0.tar.gz | ||
wrapdb_version = 3.4.0-1 | ||
|
||
[provide] | ||
catch2 = catch2_dep | ||
catch2-with-main = catch2_with_main_dep |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include <catch2/catch_all.hpp> | ||
|
||
#include "MMCore.h" | ||
|
||
TEST_CASE("CMMCore create and destroy twice", "[CoreCreateDestroy]") | ||
{ | ||
{ | ||
CMMCore c1; | ||
} | ||
{ | ||
CMMCore c2; | ||
} | ||
} | ||
|
||
TEST_CASE("CMMCore create two at once", "[CoreCreateDestroy]") | ||
{ | ||
CMMCore c1; | ||
CMMCore c2; | ||
} | ||
|
||
TEST_CASE("CMMCore create and reset", "[CoreCreateDestroy]") | ||
{ | ||
CMMCore c; | ||
c.reset(); | ||
} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.