API
Applications
Utilities
API
Handbook
GitHub
Home
smc100ccCtrl_test.cpp
Go to the documentation of this file.
1
/** \file smc100ccCtrl_test.cpp
2
* \brief Catch2 tests for the smc100ccCtrl app.
3
* \author Jared R. Males (jaredmales@gmail.com)
4
*
5
* History:
6
*/
7
8
9
10
#include "../../../tests/catch2/catch.hpp"
11
#include "../../tests/testMacrosINDI.hpp"
12
13
#include "../smc100ccCtrl.hpp"
14
15
using namespace
MagAOX::app
;
16
17
namespace
SMCTEST
18
{
19
20
class
smc100ccCtrl_test
:
public
smc100ccCtrl
21
{
22
23
public
:
24
smc100ccCtrl_test
(
const
std::string device)
25
{
26
m_configName = device;
27
28
XWCTEST_SETUP_INDI_NEW_PROP
(position);
29
30
//stdMotionStage:
31
XWCTEST_SETUP_INDI_NEW_PROP
(preset);
32
XWCTEST_SETUP_INDI_NEW_PROP
(presetName);
33
XWCTEST_SETUP_INDI_NEW_PROP
(home);
34
XWCTEST_SETUP_INDI_NEW_PROP
(stop);
35
36
}
37
};
38
39
40
SCENARIO
(
"INDI Callbacks"
,
"[smc100ccCtrl]"
)
41
{
42
XWCTEST_INDI_NEW_CALLBACK
(
smc100ccCtrl
, position);
43
XWCTEST_INDI_NEW_CALLBACK
(
smc100ccCtrl
, preset);
44
XWCTEST_INDI_NEW_CALLBACK
(
smc100ccCtrl
, presetName);
45
XWCTEST_INDI_NEW_CALLBACK
(
smc100ccCtrl
, home);
46
XWCTEST_INDI_NEW_CALLBACK
(
smc100ccCtrl
, stop);
47
}
48
49
50
}
//namespace smc100ccCtrl_test
MagAOX::app::smc100ccCtrl
Definition:
smc100ccCtrl.hpp:44
SMCTEST::smc100ccCtrl_test
Definition:
smc100ccCtrl_test.cpp:21
SMCTEST::smc100ccCtrl_test::smc100ccCtrl_test
smc100ccCtrl_test(const std::string device)
Definition:
smc100ccCtrl_test.cpp:24
XWCTEST_INDI_NEW_CALLBACK
#define XWCTEST_INDI_NEW_CALLBACK(testclass, propname)
Catch-2 tests for whether a NEW callback properly validates the input property properly.
Definition:
testMacrosINDI.hpp:47
MagAOX::app
Definition:
dm.hpp:26
SMCTEST
Definition:
cameraSim_test.cpp:18
SMCTEST::SCENARIO
SCENARIO("INDI Callbacks", "[smc100ccCtrl]")
Definition:
smc100ccCtrl_test.cpp:40
XWCTEST_SETUP_INDI_NEW_PROP
#define XWCTEST_SETUP_INDI_NEW_PROP(propname)
Definition:
testMacrosINDI.hpp:26
apps
smc100ccCtrl
tests
smc100ccCtrl_test.cpp
Generated by
1.9.1