Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Kharisov <ah@bright-box.com>2021-10-13 18:39:37 +0300
committerGitHub <noreply@github.com>2021-10-13 18:39:37 +0300
commit1db29eaea85efed70bf8a249bdd9c883e8d44b31 (patch)
tree201ddbe8bc467795b6c7a4687f7f11b8b9fc63fe /applications/applications.c
parenta643bd14be803d3bd47c8dde3ecca9f7ae2e8b4d (diff)
[FL-1946] RPC App launch (#758)
* RPC: Add App start, lock status - Add RPC commands Application start, lock status acquiring. - Write tests for RPC App system. - Replace Unit Tests application with CLI command. This is for CI needs and for tests that run application. * Fix NDEBUG build * Update PB submodule * Fix RPC print (ENABLE DEBUG PRINT!) * snprintf -> string_t * Fix Hard Fault (early mutex free) * printf -> string_t, format, enable tests * Update submodule: protobuf * Applications: rollback unit test naming scheme. Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
Diffstat (limited to 'applications/applications.c')
-rw-r--r--applications/applications.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/applications/applications.c b/applications/applications.c
index 1e1469c4..761dd8fc 100644
--- a/applications/applications.c
+++ b/applications/applications.c
@@ -20,7 +20,7 @@ extern int32_t desktop_srv(void* p);
extern int32_t accessor_app(void* p);
extern int32_t archive_app(void* p);
extern int32_t blink_test_app(void* p);
-extern int32_t flipper_test_app(void* p);
+extern int32_t delay_test_app(void* p);
extern int32_t gpio_app(void* p);
extern int32_t ibutton_app(void* p);
extern int32_t irda_app(void* p);
@@ -49,6 +49,7 @@ extern void nfc_cli_init();
extern void storage_cli_init();
extern void subghz_cli_init();
extern void power_cli_init();
+extern void unit_tests_cli_init();
// Settings
extern int32_t notification_settings_app(void* p);
@@ -183,6 +184,10 @@ const FlipperOnStartHook FLIPPER_ON_SYSTEM_START[] = {
#ifdef SRV_STORAGE
storage_cli_init,
#endif
+
+#ifdef APP_UNIT_TESTS
+ unit_tests_cli_init,
+#endif
};
const size_t FLIPPER_ON_SYSTEM_START_COUNT =
@@ -220,10 +225,6 @@ const FlipperApplication FLIPPER_DEBUG_APPS[] = {
{.app = usb_test_app, .name = "USB Test", .stack_size = 1024, .icon = &A_Plugins_14},
#endif
-#ifdef APP_UNIT_TESTS
- {.app = flipper_test_app, .name = "Unit Tests", .stack_size = 1024 * 8, .icon = &A_Plugins_14},
-#endif
-
#ifdef APP_IRDA_MONITOR
{.app = irda_monitor_app, .name = "Irda Monitor", .stack_size = 1024, .icon = &A_Plugins_14},
#endif
@@ -239,6 +240,10 @@ const FlipperApplication FLIPPER_DEBUG_APPS[] = {
#ifdef SRV_BT
{.app = bt_debug_app, .name = "Bluetooth Debug", .stack_size = 1024, .icon = NULL},
#endif
+
+#ifdef APP_UNIT_TESTS
+ {.app = delay_test_app, .name = "Delay Test App", .stack_size = 1024, .icon = &A_Plugins_14},
+#endif
};
const size_t FLIPPER_DEBUG_APPS_COUNT = sizeof(FLIPPER_DEBUG_APPS) / sizeof(FlipperApplication);