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
|
|
|
|
|
|
|
|
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}
|
|
|
|
{-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}
|
|
|
|
{-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.
|
|
|
|
"""
|
|
|
|
|
2013-09-19 18:15:56 +05:30
|
|
|
@announce
|
2013-09-11 16:10:46 +05:30
|
|
|
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
|