From 7bb9a31667bd15246e5ae90605bee84ae428ee1c Mon Sep 17 00:00:00 2001 From: Chanhee Lee Date: Fri, 9 Feb 2024 17:08:55 -0700 Subject: [PATCH] Update README.md Add a guide for testing with LF federated programs --- README.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1aa4855..cae3eca 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,20 @@ cd lf-rust-rti/rust/rti cargo run -- -n 2 ``` -## Current Status +## Run Rust RTI with Lingua Franca (LF) Test Programs -- Passing federated tests (lingua-franca/test/C/src/federated/) with Rust RTI: +1. Download and generate the LF test programs + - Download sources from https://github.com/lf-lang/lingua-franca + - Refer [https://www.lf-lang.org/docs/installation](https://www.lf-lang.org/docs/tools/code-extension) +2. Execute Rust RTI first +``` +cargo run -- -n 2 +``` +3. Execute a LF test program + - ex) For HelloDistributed program, execute following commands in each shell. + ``` + lingua-franca/test/C/fed-gen/HelloDistributed/bin$ ./federate_s + lingua-franca/test/C/fed-gen/HelloDistributed/bin$ ./federate_d + ``` +Currently passing federated tests (lingua-franca/test/C/src/federated/) with Rust RTI: (to be updated) - DistributedCount.lf, DistributedStop.lf, HelloDistributed.lf, PingPongDistibuted.lf, SimpleFederated.lf, StopAtShutdown.lf