mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-19 17:23:25 +00:00
b85a50f912
* Lib: added nanopb * Hal rfid: fixed confused arguments * Lib: update makefile, include nanopb * Lib: remove nanopb * Lib: add nanopb as submodule * Assets: remove protobuf * Assets: add protobuf message definitions as submodule * WIP: [FL-1792] Add Protobuf RPC * WIP: RPC add ping * Add Ping * Fix Ping, Add (WIP) storage * Update submodule * ble-glue: add ptotobuf to ble * WIP: Add storage list test * revert applications.mk * Add Storage List command * ble-glue: fix fast updating rx charachteristic * ble serial: split long ble packets * Add Storage Read/Write/Mkdir/Delete * Disable tests * Rename Element -> File * Add md5sum, fix test leak * Regenerate Protobuf * Fix review comments * ble-glue: sync f7 target Co-authored-by: Albert Kharisov <albert@flipperdevices.com> Co-authored-by: gornekich <n.gorbadey@gmail.com> Co-authored-by: あく <alleteam@gmail.com>
33 lines
895 B
C
33 lines
895 B
C
#include <stdio.h>
|
|
#include <furi.h>
|
|
#include <furi-hal.h>
|
|
#include "minunit_vars.h"
|
|
#include <notification/notification-messages.h>
|
|
|
|
int run_minunit();
|
|
int run_minunit_test_irda_decoder_encoder();
|
|
int run_minunit_test_rpc();
|
|
|
|
int32_t flipper_test_app(void* p) {
|
|
uint32_t test_result = 0;
|
|
|
|
NotificationApp* notification = furi_record_open("notification");
|
|
|
|
notification_message_block(notification, &sequence_set_only_blue_255);
|
|
|
|
// test_result |= run_minunit(); // disabled as it fails randomly
|
|
test_result |= run_minunit_test_irda_decoder_encoder();
|
|
test_result |= run_minunit_test_rpc();
|
|
|
|
if(test_result == 0) {
|
|
// test passed
|
|
notification_message(notification, &sequence_success);
|
|
} else {
|
|
// test failed
|
|
notification_message(notification, &sequence_error);
|
|
}
|
|
|
|
furi_record_close("notification");
|
|
|
|
return 0;
|
|
}
|