Add feature file for thin_restore.
This commit is contained in:
parent
9a4783796b
commit
b7bdf1a3f2
@ -28,6 +28,10 @@ When(/^I run thin_rmap with (.*?)$/) do |opts|
|
|||||||
run_simple("thin_rmap #{opts} #{dev_file}", false)
|
run_simple("thin_rmap #{opts} #{dev_file}", false)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
When(/^I run thin_restore with (.*?)$/) do |opts|
|
||||||
|
run_simple("thin_restore #{opts}", false)
|
||||||
|
end
|
||||||
|
|
||||||
Then /^it should give no output$/ do
|
Then /^it should give no output$/ do
|
||||||
ps = only_processes.last
|
ps = only_processes.last
|
||||||
output = ps.stdout + ps.stderr
|
output = ps.stdout + ps.stderr
|
||||||
|
42
features/thin_restore.feature
Normal file
42
features/thin_restore.feature
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
Feature: thin_restore
|
||||||
|
Scenario: print version (-V flag)
|
||||||
|
When I run thin_restore with -V
|
||||||
|
Then it should pass with version
|
||||||
|
|
||||||
|
Scenario: print version (--version flag)
|
||||||
|
When I run thin_restore with --version
|
||||||
|
Then it should pass with version
|
||||||
|
|
||||||
|
Scenario: print help (-h)
|
||||||
|
When I run thin_restore with -h
|
||||||
|
Then it should pass with:
|
||||||
|
|
||||||
|
"""
|
||||||
|
Usage: thin_restore [options]
|
||||||
|
Options:
|
||||||
|
{-h|--help}
|
||||||
|
{-i|--input} <input xml file>
|
||||||
|
{-o|--output} <output device or file>
|
||||||
|
{-V|--version}
|
||||||
|
"""
|
||||||
|
|
||||||
|
Scenario: print help (--help)
|
||||||
|
When I run thin_restore with -h
|
||||||
|
Then it should pass with:
|
||||||
|
|
||||||
|
"""
|
||||||
|
Usage: thin_restore [options]
|
||||||
|
Options:
|
||||||
|
{-h|--help}
|
||||||
|
{-i|--input} <input xml file>
|
||||||
|
{-o|--output} <output device or file>
|
||||||
|
{-V|--version}
|
||||||
|
"""
|
||||||
|
|
||||||
|
@announce
|
||||||
|
Scenario: missing input file
|
||||||
|
When I run thin_restore with -o metadata.bin
|
||||||
|
Then it should fail with:
|
||||||
|
"""
|
||||||
|
No input file provided.
|
||||||
|
"""
|
Loading…
Reference in New Issue
Block a user