diff options
author | Vadim Kaushan <admin@disasm.info> | 2020-08-26 13:08:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-26 13:08:20 +0300 |
commit | 1bec8dd23ab06ab3c8912e162bc3733330d4205f (patch) | |
tree | 6cfd1b42194fdaaae38caf58f4c893ff8b18b2e4 /applications/tests | |
parent | 046a20fa0e1ae6b44e7ba6af269bd3fa704a6e8e (diff) |
Install Rust in docker image, add Rust library and build rules (#41)
* Install Rust in docker image
* Also install thumbv7em-none-eabi target
* Install Rust in docker image
* Also install thumbv7em-none-eabi target
* Add Rust example
* Link to the Rust example
* Call function from the Rust lib
* Move PROJECT_DIR to the 'paths' section
* Fix target_f1 build
* Link to the Rust library in target_f1
* Generate cbindgen bindings
* Add forgotten dependency line
* Use panic=abort instead of eh_personality lang item
* Install Rust in docker image
* Also install thumbv7em-none-eabi target
* Add Rust example
* Link to the Rust example
* Call function from the Rust lib
* Move PROJECT_DIR to the 'paths' section
* Link to the Rust library in target_f1
* Generate cbindgen bindings
* Add forgotten dependency line
* Use panic=abort instead of eh_personality lang item
* add rust call test
Co-authored-by: aanper <mail@s3f.ru>
Diffstat (limited to 'applications/tests')
-rw-r--r-- | applications/tests/test_index.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/applications/tests/test_index.c b/applications/tests/test_index.c index d6758bd4..d2b99bde 100644 --- a/applications/tests/test_index.c +++ b/applications/tests/test_index.c @@ -2,6 +2,8 @@ #include "flipper.h" #include "debug.h" +#include "flipper-core.h" + bool furi_ac_create_kill(FILE* debug_uart); bool furi_ac_switch_exit(FILE* debug_uart); @@ -56,5 +58,11 @@ void flipper_test_app(void* p) { fprintf(debug_uart, "[TEST] furi_mute_algorithm FAILED\n"); } + if(add(1, 2) == 3) { + fprintf(debug_uart, "[TEST] Rust add PASSED\n"); + } else { + fprintf(debug_uart, "[TEST] Rust add FAILED\n"); + } + furiac_exit(NULL); }
\ No newline at end of file |