2021-07-05 12:09:31 +02:00
|
|
|
#ifndef BSP_Q7S_BOARDTEST_Q7STESTTASK_H_
|
|
|
|
#define BSP_Q7S_BOARDTEST_Q7STESTTASK_H_
|
|
|
|
|
|
|
|
#include "test/testtasks/TestTask.h"
|
|
|
|
|
2022-01-17 15:57:52 +01:00
|
|
|
class CoreController;
|
|
|
|
|
2022-01-18 11:41:19 +01:00
|
|
|
class Q7STestTask : public TestTask {
|
|
|
|
public:
|
|
|
|
Q7STestTask(object_id_t objectId);
|
|
|
|
|
|
|
|
ReturnValue_t initialize() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
bool doTestSdCard = false;
|
|
|
|
bool doTestScratchApi = false;
|
|
|
|
bool doTestGps = false;
|
|
|
|
|
|
|
|
CoreController* coreController = nullptr;
|
|
|
|
ReturnValue_t performOneShotAction() override;
|
|
|
|
ReturnValue_t performPeriodicAction() override;
|
|
|
|
|
|
|
|
void testGpsDaemon();
|
|
|
|
|
|
|
|
void testSdCard();
|
|
|
|
void fileTests();
|
|
|
|
|
|
|
|
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_ */
|