eive-obsw/bsp_q7s/boardtest/Q7STestTask.h

62 lines
1.4 KiB
C
Raw Permalink Normal View History

2021-07-05 12:09:31 +02:00
#ifndef BSP_Q7S_BOARDTEST_Q7STESTTASK_H_
#define BSP_Q7S_BOARDTEST_Q7STESTTASK_H_
2022-05-03 11:39:12 +02:00
#include <libgpsmm.h>
2022-05-05 16:55:08 +02:00
2022-11-28 11:46:06 +01:00
#include "test/TestTask.h"
2021-07-05 12:09:31 +02:00
class CoreController;
2022-01-17 15:58:27 +01:00
class Q7STestTask : public TestTask {
public:
Q7STestTask(object_id_t objectId);
ReturnValue_t initialize() override;
private:
bool doTestSdCard = false;
bool doTestScratchApi = false;
static constexpr bool DO_TEST_GOMSPACE_API = false;
2022-08-27 15:54:52 +02:00
static constexpr bool DO_TEST_GOMSPACE_GET_CONFIG = false;
2022-10-26 15:47:23 +02:00
static constexpr bool DO_TEST_FS_HANDLER = false;
2022-05-03 00:55:01 +02:00
bool doTestGpsShm = false;
bool doTestGpsSocket = false;
bool doTestProtHandler = false;
2022-03-13 16:32:40 +01:00
bool doTestXadc = false;
2022-01-17 15:58:27 +01:00
2022-05-03 00:55:01 +02:00
bool gpsNotOpenSwitch = false;
bool gpsReadFailedSwitch = false;
int32_t noModeSetCntr = 0;
2022-05-03 11:39:49 +02:00
gpsmm* gpsmmShmPtr = nullptr;
2022-05-03 00:55:01 +02:00
2022-01-17 15:58:27 +01:00
CoreController* coreController = nullptr;
ReturnValue_t performOneShotAction() override;
ReturnValue_t performPeriodicAction() override;
2022-05-03 00:55:01 +02:00
void testGpsDaemonShm();
void testGpsDaemonSocket();
2022-01-17 15:58:27 +01:00
void testSdCard();
void fileTests();
2022-03-13 16:32:40 +01:00
void xadcTest();
2022-01-17 15:58:27 +01:00
void testScratchApi();
void testJsonLibDirect();
void testDummyParams();
void testProtHandler();
enum FsOpCodes {
CREATE_EMPTY_FILE_IN_TMP,
REMOVE_TMP_FILE,
CREATE_DIR_IN_TMP,
REMOVE_EMPTY_DIR_IN_TMP,
ATTEMPT_DIR_REMOVAL_NON_EMPTY,
REMOVE_FILLED_DIR_IN_TMP,
RENAME_FILE,
APPEND_TO_FILE,
};
void testFileSystemHandlerDirect(FsOpCodes opCode);
2021-07-05 12:09:31 +02:00
};
#endif /* BSP_Q7S_BOARDTEST_Q7STESTTASK_H_ */