2021-09-04 01:00:15 +00:00
|
|
|
|
2022-05-27 12:26:33 +00:00
|
|
|
[tasks.rust_unit_test]
|
|
|
|
run_task = { name = ["rust_lib_unit_test", "shared_lib_unit_test"] }
|
|
|
|
|
|
|
|
[tasks.rust_lib_unit_test]
|
|
|
|
description = "Run rust-lib unit tests"
|
2021-09-04 01:00:15 +00:00
|
|
|
script = '''
|
|
|
|
cd rust-lib
|
2022-05-27 12:26:33 +00:00
|
|
|
RUST_LOG=info cargo test --no-default-features --features="sync"
|
2021-09-04 01:00:15 +00:00
|
|
|
'''
|
|
|
|
|
2022-05-27 12:26:33 +00:00
|
|
|
[tasks.shared_lib_unit_test]
|
|
|
|
description = "Run shared-lib unit test"
|
|
|
|
script = '''
|
|
|
|
cd ../shared-lib
|
|
|
|
RUST_LOG=info cargo test --no-default-features
|
|
|
|
'''
|
2021-09-04 01:00:15 +00:00
|
|
|
|