2011-07-06 08:25:11 +00:00
|
|
|
start:tabrestore_null
|
|
|
|
description:tabrestore without any flag
|
|
|
|
cmd:tabrestore
|
|
|
|
check:rc!=0
|
|
|
|
check:output=~Usage
|
|
|
|
end
|
|
|
|
|
2010-09-20 08:10:57 +00:00
|
|
|
start:tabrestore_table
|
|
|
|
cmd:tabdump site > /tmp/site.csv
|
|
|
|
check:rc==0
|
|
|
|
cmd:chtab key=xcatdport site.value=3333
|
|
|
|
check:rc==0
|
|
|
|
cmd:tabrestore /tmp/site.csv
|
|
|
|
check:rc==0
|
|
|
|
cmd:tabdump site > /tmp/site1.csv
|
|
|
|
check:rc==0
|
|
|
|
cmd:diff /tmp/site1.csv /tmp/site.csv
|
|
|
|
check:rc==0
|
|
|
|
cmd:rm -f /tmp/site.csv /tmp/site1.csv
|
|
|
|
end
|
2011-07-06 08:25:11 +00:00
|
|
|
|
|
|
|
start:tabrestore_h
|
|
|
|
cmd:tabrestore -h
|
|
|
|
check:output=~Usage
|
|
|
|
end
|
|
|
|
|
|
|
|
start:tabrestore_err
|
|
|
|
description:tabrestore wrong.csv
|
|
|
|
cmd:tabrestore wrong.csv
|
|
|
|
check:rc!=0
|
|
|
|
check:output=~Error
|
|
|
|
end
|
|
|
|
|