API
Applications
Utilities
API
Handbook
GitHub
Home
Loading...
Searching...
No Matches
observerCtrl_test.cpp
Go to the documentation of this file.
1
/** \file observerCtrl_test.cpp
2
* \brief Catch2 tests for the observerCtrl 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 "../observerCtrl.hpp"
14
15
using namespace
MagAOX::app
;
16
17
namespace
SMCTEST
18
{
19
20
class
observerCtrl_test
:
public
observerCtrl
21
{
22
23
public
:
24
observerCtrl_test
(
const
std::string device)
25
{
26
m_configName
= device;
27
28
XWCTEST_SETUP_INDI_NEW_PROP
(
observers
);
29
XWCTEST_SETUP_INDI_NEW_PROP
(obsName);
30
XWCTEST_SETUP_INDI_NEW_PROP
(observing);
31
XWCTEST_SETUP_INDI_NEW_PROP
(
sws
);
32
33
34
}
35
};
36
37
38
SCENARIO
(
"INDI Callbacks"
,
"[observerCtrl]"
)
39
{
40
XWCTEST_INDI_NEW_CALLBACK
(
observerCtrl
, observers);
41
XWCTEST_INDI_NEW_CALLBACK
(
observerCtrl
, obsName);
42
XWCTEST_INDI_NEW_CALLBACK
(
observerCtrl
, observing);
43
XWCTEST_INDI_NEW_CALLBACK
(
observerCtrl
, sws);
44
45
46
}
47
48
49
}
//namespace observerCtrl_test
SCENARIO
#define SCENARIO(...)
Definition
catch.hpp:17760
MagAOX::app::MagAOXApp< true >::m_configName
std::string m_configName
The name of the configuration file (minus .conf).
Definition
MagAOXApp.hpp:83
MagAOX::app::MagAOXApp< true >::log
static int log(const typename logT::messageT &msg, logPrioT level=logPrio::LOG_DEFAULT)
Make a log entry.
Definition
MagAOXApp.hpp:1804
MagAOX::app::observerCtrl
The MagAO-X Observer Controller.
Definition
observerCtrl.hpp:38
SMCTEST::observerCtrl_test
Definition
observerCtrl_test.cpp:21
SMCTEST::observerCtrl_test::observerCtrl_test
observerCtrl_test(const std::string device)
Definition
observerCtrl_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
XWCTEST_SETUP_INDI_NEW_PROP
#define XWCTEST_SETUP_INDI_NEW_PROP(propname)
Definition
testMacrosINDI.hpp:26
apps
observerCtrl
tests
observerCtrl_test.cpp
Generated by
1.9.8