From 393ab1f650eabded91f090b41231752cdf011ef6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Thu, 28 Apr 2011 21:17:50 +0300 Subject: [PATCH] testsuite: Add basic mii-diag and mii-tool test cases. --- test/completion/mii-diag.exp | 1 + test/completion/mii-tool.exp | 1 + test/lib/completions/mii-diag.exp | 20 ++++++++++++++++++++ test/lib/completions/mii-tool.exp | 20 ++++++++++++++++++++ 4 files changed, 42 insertions(+) create mode 100644 test/completion/mii-diag.exp create mode 100644 test/completion/mii-tool.exp create mode 100644 test/lib/completions/mii-diag.exp create mode 100644 test/lib/completions/mii-tool.exp diff --git a/test/completion/mii-diag.exp b/test/completion/mii-diag.exp new file mode 100644 index 00000000..b4ddef79 --- /dev/null +++ b/test/completion/mii-diag.exp @@ -0,0 +1 @@ +assert_source_completions mii-diag diff --git a/test/completion/mii-tool.exp b/test/completion/mii-tool.exp new file mode 100644 index 00000000..cd12f228 --- /dev/null +++ b/test/completion/mii-tool.exp @@ -0,0 +1 @@ +assert_source_completions mii-tool diff --git a/test/lib/completions/mii-diag.exp b/test/lib/completions/mii-diag.exp new file mode 100644 index 00000000..952ff632 --- /dev/null +++ b/test/lib/completions/mii-diag.exp @@ -0,0 +1,20 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "mii-diag " + + +sync_after_int + + +teardown diff --git a/test/lib/completions/mii-tool.exp b/test/lib/completions/mii-tool.exp new file mode 100644 index 00000000..03827edd --- /dev/null +++ b/test/lib/completions/mii-tool.exp @@ -0,0 +1,20 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "mii-tool " + + +sync_after_int + + +teardown