mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 20:49:49 +04:00
* cli_shell: separate into toolbox * fix: cmd flags * fix formatting * cli: increase default stack depth * cli_shell: fix loader lock logic * cli: fix command flags * fix f18 * speaker_debug: fix * cli_registry: fix docs * ufbt: rename cli target back * cli: rename app and record * cli: fix and simplify help command * cli_master_shell: fix ext commands * fix formatting * cli: rename master to main * fix formatting --------- Co-authored-by: hedger <hedger@users.noreply.github.com>
25 lines
677 B
C
25 lines
677 B
C
#include <furi.h>
|
|
#include <toolbox/pipe.h>
|
|
#include <toolbox/cli/cli_command.h>
|
|
#include <toolbox/cli/cli_registry.h>
|
|
#include <cli/cli_main_commands.h>
|
|
|
|
#include "test_runner.h"
|
|
|
|
void unit_tests_cli(PipeSide* pipe, FuriString* args, void* context) {
|
|
UNUSED(context);
|
|
|
|
TestRunner* test_runner = test_runner_alloc(pipe, args);
|
|
test_runner_run(test_runner);
|
|
test_runner_free(test_runner);
|
|
}
|
|
|
|
void unit_tests_on_system_start(void) {
|
|
#ifdef SRV_CLI
|
|
CliRegistry* registry = furi_record_open(RECORD_CLI);
|
|
cli_registry_add_command(
|
|
registry, "unit_tests", CliCommandFlagParallelSafe, unit_tests_cli, NULL);
|
|
furi_record_close(RECORD_CLI);
|
|
#endif
|
|
}
|