mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 21:13:16 +00:00
1a1c5fa05d
* Unit tests: fix IRDA test data * Fix format-errors on test data files * Fix sticking red/green light on unit-tests Co-authored-by: あく <alleteam@gmail.com> Co-authored-by: Albert Kharisov <albert@flipperdevices.com>
31 lines
764 B
C
31 lines
764 B
C
#include <stdio.h>
|
|
#include <furi.h>
|
|
#include <api-hal.h>
|
|
#include "minunit_vars.h"
|
|
#include <notification/notification-messages.h>
|
|
|
|
int run_minunit();
|
|
int run_minunit_test_irda_decoder();
|
|
|
|
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();
|
|
test_result |= run_minunit_test_irda_decoder();
|
|
|
|
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;
|
|
}
|