API
Applications
Utilities
API
Handbook
GitHub
Home
Loading...
Searching...
No Matches
zaberLowLevel_test.cpp
Go to the documentation of this file.
1
/** \file zaberLowLevel_test.cpp
2
* \brief Catch2 tests for the zaberLowLevel app.
3
* \author Jared R. Males (jaredmales@gmail.com)
4
*
5
* History:
6
*/
7
8
9
//Direct include to avoid having to link separately
10
extern
"C"
11
{
12
#include "../za_serial.c"
13
}
14
15
#include "../../../tests/catch2/catch.hpp"
16
#include "../../tests/testMacrosINDI.hpp"
17
18
#include "../zaberLowLevel.hpp"
19
20
using namespace
MagAOX::app
;
21
22
namespace
ZLLTEST
23
{
24
25
class
zaberLowLevel_test
:
public
zaberLowLevel
26
{
27
28
public
:
29
zaberLowLevel_test
(
const
std::string device)
30
{
31
m_configName
= device;
32
33
XWCTEST_SETUP_INDI_NEW_PROP
(
tgt_pos
);
34
XWCTEST_SETUP_INDI_NEW_PROP
(
tgt_relpos
);
35
XWCTEST_SETUP_INDI_NEW_PROP
(
req_home
);
36
XWCTEST_SETUP_INDI_NEW_PROP
(
req_halt
);
37
XWCTEST_SETUP_INDI_NEW_PROP
(
req_ehalt
);
38
}
39
};
40
41
//#define QUOTE(s) #s
42
43
44
SCENARIO
(
"INDI Callbacks"
,
"[zaberLowLevel]"
)
45
{
46
XWCTEST_INDI_NEW_CALLBACK
(
zaberLowLevel
, tgt_pos);
47
XWCTEST_INDI_NEW_CALLBACK
(
zaberLowLevel
, tgt_relpos);
48
XWCTEST_INDI_NEW_CALLBACK
(
zaberLowLevel
, req_home);
49
XWCTEST_INDI_NEW_CALLBACK
(
zaberLowLevel
, req_halt);
50
XWCTEST_INDI_NEW_CALLBACK
(
zaberLowLevel
, req_ehalt);
51
}
52
53
54
}
//namespace zaberLowLevel_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::zaberLowLevel
Definition
zaberLowLevel.hpp:45
ZLLTEST::zaberLowLevel_test
Definition
zaberLowLevel_test.cpp:26
ZLLTEST::zaberLowLevel_test::zaberLowLevel_test
zaberLowLevel_test(const std::string device)
Definition
zaberLowLevel_test.cpp:29
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
ZLLTEST
Definition
zaberLowLevel_test.cpp:23
XWCTEST_SETUP_INDI_NEW_PROP
#define XWCTEST_SETUP_INDI_NEW_PROP(propname)
Definition
testMacrosINDI.hpp:26
apps
zaberLowLevel
tests
zaberLowLevel_test.cpp
Generated by
1.9.8