unleashed-firmware/applications/tests/test_index.c
Albert Kharisov 9f6e14d005
[FL-1398] IRDA: Implement timings encoder, add RC-6 (#570)
* Add RC-6 protocol
* Implement timings Encoder
* Remove Unit-tests from build
2021-07-08 21:20:13 +03:00

32 lines
823 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_encoder();
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();
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;
}