Home
last modified time | relevance | path

Searched full:cli (Results 1 – 25 of 2295) sorted by relevance

12345678910>>...92

/external/openthread/tests/toranj/
DREADME_CLI.md1 # `toranj-cli`
3 `toranj-cli` is a test framework for OpenThread using its CLI interface.
10 - `toranj` in CLI mode runs `ot-cli-ftd` on simulation platform (real-time).
19 Building OpenThread (NCP/CLI for FTD/MTD/RCP mode) with simulation platform using cmake
28 The `toranj-cli` tests are included in `tests/toranj/cli` folder. Each test-case has its own script…
33 $ cd tests/toranj/cli
37 To run all CLI tests, `start` script can be used. This script will build OpenThread with proper con…
44 ## `toranj-cli` Components
46 `cli` python module defines the `toranj-cli` test components.
48 ### `cli.Node()` Class
[all …]
Dstart.sh135 app_name="cli"
158 run cli/test-700-multi-radio-join.py
159 run cli/test-701-multi-radio-probe.py
160 run cli/test-702-multi-radio-discover-by-rx.py
161 run cli/test-703-multi-radio-mesh-header-msg.py
162 run cli/test-704-multi-radio-scan.py
163 run cli/test-705-multi-radio-discover-scan.py
168 run cli/test-001-get-set.py
169 run cli/test-002-form.py
170 run cli/test-003-join.py
[all …]
/external/openthread/tests/toranj/cli/
Dtest-602-channel-manager-channel-select.py29 from cli import verify
30 from cli import verify_within
31 import cli
44 # Creating `cli.Node` instances
48 cli.Node.set_time_speedup_factor(speedup)
50 node = cli.Node()
69 delay = int(node.cli('channel manager delay')[0])
80 node.cli('channel manager supported', all_channels_mask)
88 result = cli.Node.parse_list(node.cli('channel monitor')[:5])
95 node.cli('channel manager select 0')
[all …]
Dtest-601-channel-manager-channel-change.py29 from cli import verify
30 from cli import verify_within
31 import cli
52 # Creating `cli.Node` instances
55 cli.Node.set_time_speedup_factor(speedup)
57 r1 = cli.Node()
58 r2 = cli.Node()
59 r3 = cli.Node()
60 sc1 = cli.Node()
61 ec1 = cli.Node()
[all …]
Dtest-023-mesh-diag.py29 from cli import verify
30 from cli import verify_within
31 import cli
49 # Creating `cli.Node` instances
52 cli.Node.set_time_speedup_factor(speedup)
54 r1 = cli.Node()
55 r2 = cli.Node()
56 r3 = cli.Node()
57 fed1 = cli.Node()
58 fed2 = cli.Node()
[all …]
Dtest-705-multi-radio-discover-scan.py29 from cli import verify
30 from cli import verify_within
31 import cli
43 # Creating `cli.Node` instances
46 cli.Node.set_time_speedup_factor(speedup)
48 n1 = cli.Node(cli.RADIO_15_4)
49 n2 = cli.Node(cli.RADIO_TREL)
50 n3 = cli.Node(cli.RADIO_15_4_TREL)
51 s1 = cli.Node(cli.RADIO_15_4)
52 s2 = cli.Node(cli.RADIO_TREL)
[all …]
Dtest-026-coaps-conn-limit.py29 from cli import verify
30 from cli import verify_within
31 import cli
51 # Creating `cli.Node` instances
54 cli.Node.set_time_speedup_factor(speedup)
56 r1 = cli.Node()
57 r2 = cli.Node()
71 r1.cli('coaps psk RIGHT 1234')
74 r1.cli('coaps start 3')
78 r2.cli('coaps psk WRONG 1234')
[all …]
Dtest-704-multi-radio-scan.py29 from cli import verify
30 from cli import verify_within
31 import cli
43 # Creating `cli.Node` instances
46 cli.Node.set_time_speedup_factor(speedup)
48 n1 = cli.Node(cli.RADIO_15_4)
49 n2 = cli.Node(cli.RADIO_TREL)
50 n3 = cli.Node(cli.RADIO_15_4_TREL)
51 s1 = cli.Node(cli.RADIO_15_4)
52 s2 = cli.Node(cli.RADIO_TREL)
[all …]
Dtest-004-scan.py29 from cli import verify
30 from cli import verify_within
31 import cli
43 table = cli.Node.parse_table(scan_result)
57 # Creating `cli.Nodes` instances
60 cli.Node.set_time_speedup_factor(speedup)
62 node1 = cli.Node()
63 node2 = cli.Node()
64 node3 = cli.Node()
65 node4 = cli.Node()
[all …]
Dtest-700-multi-radio-join.py29 from cli import verify
30 from cli import verify_within
31 import cli
52 # Creating `cli.Node` instances
55 cli.Node.set_time_speedup_factor(speedup)
57 parent = cli.Node(cli.RADIO_15_4_TREL)
58 c1 = cli.Node(cli.RADIO_15_4)
59 c2 = cli.Node(cli.RADIO_TREL)
60 c3 = cli.Node(cli.RADIO_15_4_TREL)
74 c1.join(parent, cli.JOIN_TYPE_END_DEVICE)
[all …]
Dtest-008-multicast-traffic.py29 from cli import verify
30 from cli import verify_within
31 import cli
73 # Creating `cli.Nodes` instances
76 cli.Node.set_time_speedup_factor(speedup)
78 r1 = cli.Node()
79 r2 = cli.Node()
80 r3 = cli.Node()
81 r4 = cli.Node()
82 fed = cli.Node()
[all …]
/external/zstd/
DCHANGELOG13 cli: add common compressed file types to `--exclude-compressed`` by @daniellerozenblit
14 cli: fix mixing `-c` and `-o` commands with `--rm`, by @Cyan4973
15 cli: fix erroneous exclusion of hidden files with `--output-dir-mirror` by @felixhandte
16 cli: improved time accuracy on BSD, by @felixhandte
17 cli: better errors on argument parsing, by @KapJI
42 cli: mmap large dictionaries to save memory, by @daniellerozenblit
43 cli: improve speed of --patch-from mode (~+50%) (#3545) by @daniellerozenblit
44 cli: improve i/o speed (~+10%) when processing lots of small files (#3479) by @felixhandte
45 cli: zstd no longer crashes when requested to write into write-protected directory (#3541) by @feli…
46 cli: fix decompression into block device using -o, reported by @georgmu (#3583)
[all …]
/external/bazelbuild-rules_rust/crate_universe/src/
Dmain.rs3 use cargo_bazel::cli;
5 fn main() -> cli::Result<()> { in main()
7 let opt = cli::parse_args(); in main()
10 cli::Options::Generate(opt) => { in main()
11 cli::init_logging("Generate"); in main()
12 cli::generate(opt) in main()
14 cli::Options::Splice(opt) => { in main()
15 cli::init_logging("Splice"); in main()
16 cli::splice(opt) in main()
18 cli::Options::Query(opt) => { in main()
[all …]
/external/aws-crt-java/src/test/java/software/amazon/awssdk/crt/test/
DElasticurl.java14 import org.apache.commons.cli.CommandLine;
15 import org.apache.commons.cli.CommandLineParser;
16 import org.apache.commons.cli.DefaultParser;
17 import org.apache.commons.cli.HelpFormatter;
18 import org.apache.commons.cli.Option;
19 import org.apache.commons.cli.Options;
20 import org.apache.commons.cli.ParseException;
94 CommandLine cli = null; in parseArgs() local
96 cli = cliParser.parse(cliOpts, args); in parseArgs()
98 if (cli.hasOption("help") || cli.getArgs().length == 0) { in parseArgs()
[all …]
/external/llvm/test/CodeGen/SystemZ/
Dint-cmp-21.ll6 ; Check unsigned comparison near the low end of the CLI range, using zero
10 ; CHECK: cli 0(%r2), 1
20 ; Check unsigned comparison near the low end of the CLI range, using sign
24 ; CHECK: cli 0(%r2), 1
34 ; Check unsigned comparison near the high end of the CLI range, using zero
38 ; CHECK: cli 0(%r2), 254
48 ; Check unsigned comparison near the high end of the CLI range, using sign
52 ; CHECK: cli 0(%r2), 254
62 ; Check unsigned comparison above the high end of the CLI range, using zero
66 ; CHECK-NOT: cli
[all …]
Dint-cmp-20.ll6 ; Check unsigned comparison near the low end of the CLI range, using zero
10 ; CHECK: cli 0(%r2), 1
20 ; Check unsigned comparison near the low end of the CLI range, using sign
24 ; CHECK: cli 0(%r2), 1
34 ; Check unsigned comparison near the high end of the CLI range, using zero
38 ; CHECK: cli 0(%r2), 254
48 ; Check unsigned comparison near the high end of the CLI range, using sign
52 ; CHECK: cli 0(%r2), 254
62 ; Check unsigned comparison above the high end of the CLI range, using zero
66 ; CHECK-NOT: cli {{.*}}
[all …]
/external/rust/crates/clap/examples/tutorial_derive/
D04_04_custom.rs6 struct Cli { struct
35 let cli = Cli::parse(); in main() argument
43 let version = if let Some(ver) = cli.set_ver.as_deref() { in main()
44 if cli.major || cli.minor || cli.patch { in main()
45 let mut cmd = Cli::command(); in main()
55 let (maj, min, pat) = (cli.major, cli.minor, cli.patch); in main()
61 let mut cmd = Cli::command(); in main()
75 if let Some(config) = cli.config.as_deref() { in main()
76 let input = cli in main()
80 .or(cli.spec_in.as_deref()) in main()
[all …]
/external/rust/crates/clap/3.2.23/examples/tutorial_derive/
D04_04_custom.rs5 struct Cli { struct
35 let cli = Cli::parse(); in main() argument
43 let version = if let Some(ver) = cli.set_ver.as_deref() { in main()
44 if cli.major || cli.minor || cli.patch { in main()
45 let mut cmd = Cli::command(); in main()
55 let (maj, min, pat) = (cli.major, cli.minor, cli.patch); in main()
61 let mut cmd = Cli::command(); in main()
75 if let Some(config) = cli.config.as_deref() { in main()
78 let input = cli in main()
82 .or(cli.spec_in.as_deref()) in main()
[all …]
/external/python/rsa/rsa/
Dutil.py26 # Parse the CLI options
45 (cli, cli_args) = parser.parse_args(sys.argv)
48 if cli.infilename:
50 (cli.infilename, cli.inform), file=sys.stderr)
51 with open(cli.infilename, 'rb') as infile:
54 print('Reading private key from stdin in %s format' % cli.inform,
61 priv_key = rsa.key.PrivateKey.load_pkcs1(in_data, cli.inform)
65 out_data = pub_key.save_pkcs1(cli.outform)
67 if cli.outfilename:
69 (cli.outfilename, cli.outform), file=sys.stderr)
[all …]
/external/lz4/
DNEWS3 perf : faster decoding speed (~+70%) for -BD4 setting in CLI
9 cli : `--list` works on `stdin` input, by @Low-power
10 cli : `--no-crc` does not produce (compression) nor check (decompression) checksums
11 cli : fix: `--test` and `--list` produce an error code when parsing invalid input
12 cli : fix: support skippable frames when passed via `stdin`, reported by @davidmankin
33 cli : `-l` legacy format is now compatible with `-m` multiple files, by Filipe Calasans
34 cli : benchmark mode supports dictionary, by @rkoradi
35 cli : fix --fast with large argument, detected by @picoHz
53 cli : --list supports multi-frames files, by @gstedman
54 cli: --version outputs to stdout
[all …]
/external/openthread/src/posix/
Dcli.cmake29 add_executable(ot-cli
35 target_include_directories(ot-cli PRIVATE ${COMMON_INCLUDES})
38 target_compile_definitions(ot-cli PRIVATE
42 target_compile_options(ot-cli PRIVATE
46 target_link_libraries(ot-cli PRIVATE
47 openthread-cli-ftd
51 openthread-cli-ftd
63 target_link_libraries(ot-cli PRIVATE -Wl,-map,ot-cli.map)
65 target_link_libraries(ot-cli PRIVATE -Wl,-Map=ot-cli.map)
69 install(TARGETS ot-cli DESTINATION bin)
/external/openthread/src/cli/
Dcli_utils.hpp31 * This file contains definitions for the CLI output.
41 #include <openthread/cli.h>
52 namespace Cli { namespace
55 * Represents a ID number value associated with a CLI command string.
61 * This `constexpr` function converts a CLI command string to its associated `CommandId` value.
63 * @param[in] aString The CLI command string.
87 …n] aCallback A pointer to an `otCliOutputCallback` to deliver strings to the CLI console.
114 * Provides CLI helper methods.
123 * Represent a CLI command table entry, mapping a command with `aName` to a handler method.
125 * @tparam Cli The CLI module type.
[all …]
Dcli.hpp31 * This file contains definitions for the CLI interpreter.
43 #include <openthread/cli.h>
61 #include "cli/cli_bbr.hpp"
62 #include "cli/cli_br.hpp"
63 #include "cli/cli_commissioner.hpp"
64 #include "cli/cli_dataset.hpp"
65 #include "cli/cli_dns.hpp"
66 #include "cli/cli_history.hpp"
67 #include "cli/cli_joiner.hpp"
68 #include "cli/cli_link_metrics.hpp"
[all …]
/external/openthread/examples/apps/cli/
Dradio.cmake29 add_executable(ot-cli-radio
34 target_include_directories(ot-cli-radio PRIVATE ${COMMON_INCLUDES})
44 target_link_libraries(ot-cli-radio PRIVATE
45 openthread-cli-radio
47 openthread-radio-cli
49 openthread-cli-radio
57 target_link_libraries(ot-cli-radio PRIVATE -Wl,-map,ot-cli-radio.map)
59 target_link_libraries(ot-cli-radio PRIVATE -Wl,-Map=ot-cli-radio.map)
63 install(TARGETS ot-cli-radio
/external/perfetto/src/base/
Dunix_socket_unittest.cc103 auto cli = in TEST_F() local
106 ASSERT_FALSE(cli->is_connected()); in TEST_F()
108 EXPECT_CALL(event_listener_, OnConnect(cli.get(), false)) in TEST_F()
133 auto cli = in TEST_F() local
136 EXPECT_CALL(event_listener_, OnConnect(cli.get(), true)) in TEST_F()
143 EXPECT_CALL(event_listener_, OnDisconnect(cli.get())) in TEST_F()
148 cli->SendStr("."); in TEST_F()
149 EXPECT_FALSE(cli->SendStr("should_fail_both_on_win_and_unix")); in TEST_F()
159 auto cli = in TEST_F() local
163 EXPECT_CALL(event_listener_, OnConnect(cli.get(), true)) in TEST_F()
[all …]

12345678910>>...92