API
 
Loading...
Searching...
No Matches
zaberCtrl_test.cpp
Go to the documentation of this file.
1/** \file zaberCtrl_test.cpp
2 * \brief Catch2 tests for the zaberCtrl 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 "../zaberCtrl.hpp"
14
15using namespace MagAOX::app;
16
17namespace ZCTRLTEST
18{
19
44
45
46SCENARIO( "INDI Callbacks", "[zaberCtrl]" )
47{
54
55 XWCTEST_INDI_SET_CALLBACK( zaberCtrl, m_indiP_stageState, stest, curr_state);
56 XWCTEST_INDI_SET_CALLBACK( zaberCtrl, m_indiP_stageMaxRawPos, stest, max_pos);
57 XWCTEST_INDI_SET_CALLBACK( zaberCtrl, m_indiP_stageRawPos, stest, curr_pos);
58 XWCTEST_INDI_SET_CALLBACK( zaberCtrl, m_indiP_stageTgtPos, stest, tgt_pos);
59 XWCTEST_INDI_SET_CALLBACK( zaberCtrl, m_indiP_stageTemp, stest, temp);
60
61}
62
63
64} //namespace zaberCtrl_test
#define SCENARIO(...)
Definition catch.hpp:17760
std::string m_configName
The name of the configuration file (minus .conf).
Definition MagAOXApp.hpp:83
static int log(const typename logT::messageT &msg, logPrioT level=logPrio::LOG_DEFAULT)
Make a log entry.
The MagAO-X Zaber Stage Controller.
Definition zaberCtrl.hpp:38
pcf::IndiProperty m_indiP_stageMaxRawPos
pcf::IndiProperty m_indiP_stageTemp
int stop()
Stop the stage motion immediately.
pcf::IndiProperty m_indiP_stageState
pcf::IndiProperty m_indiP_stageTgtPos
pcf::IndiProperty m_indiP_stageRawPos
zaberCtrl_test(const std::string &device)
#define XWCTEST_INDI_SET_CALLBACK(testclass, varname, device, propname)
Catch-2 tests for whether a SET callback properly validates the input property properly.
#define XWCTEST_INDI_NEW_CALLBACK(testclass, propname)
Catch-2 tests for whether a NEW callback properly validates the input property properly.
#define XWCTEST_SETUP_INDI_ARB_PROP(varname, device, propname)
#define XWCTEST_SETUP_INDI_NEW_PROP(propname)