2013-08-19 17:10:03 +05:30
|
|
|
Feature: cache_dump
|
|
|
|
Scenario: print version (-V flag)
|
|
|
|
When I run cache_dump with -V
|
|
|
|
Then it should pass with version
|
|
|
|
|
|
|
|
Scenario: print version (--version flag)
|
|
|
|
When I run cache_dump with --version
|
|
|
|
Then it should pass with version
|
|
|
|
|
2013-09-26 16:35:53 +05:30
|
|
|
@announce
|
2013-08-19 17:10:03 +05:30
|
|
|
Scenario: print help (-h)
|
|
|
|
When I run cache_dump with -h
|
|
|
|
Then it should pass with:
|
|
|
|
"""
|
|
|
|
Usage: cache_dump [options] {device|file}
|
|
|
|
Options:
|
|
|
|
{-h|--help}
|
2013-09-26 16:35:53 +05:30
|
|
|
{-o <xml file>}
|
2013-08-19 17:10:03 +05:30
|
|
|
{-V|--version}
|
|
|
|
"""
|
|
|
|
|
|
|
|
Scenario: print help (--help)
|
|
|
|
When I run cache_dump with -h
|
|
|
|
Then it should pass with:
|
|
|
|
"""
|
|
|
|
Usage: cache_dump [options] {device|file}
|
|
|
|
Options:
|
|
|
|
{-h|--help}
|
2013-09-26 16:35:53 +05:30
|
|
|
{-o <xml file>}
|
2013-08-19 17:10:03 +05:30
|
|
|
{-V|--version}
|
|
|
|
"""
|
2013-09-11 16:10:46 +05:30
|
|
|
|
|
|
|
Scenario: accepts an output file
|
|
|
|
Given valid cache metadata
|
|
|
|
When I run cache_dump with -o metadata.xml metadata.bin
|
|
|
|
Then it should pass
|
|
|
|
|
|
|
|
Scenario: missing input file
|
|
|
|
When I run cache_dump
|
|
|
|
Then it should fail with:
|
|
|
|
"""
|
|
|
|
No input file provided.
|
|
|
|
"""
|
|
|
|
|
|
|
|
Scenario: dump/restore is a noop
|
|
|
|
Given valid cache metadata
|
|
|
|
When I cache_dump
|
|
|
|
And I cache_restore
|
|
|
|
And I cache_dump
|
|
|
|
Then cache dumps 1 and 2 should be identical
|