2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 02:30:21 +00:00
Files
xcat-core/xCAT-test/autotest/testcase/imgimport/cases0
Chen Hanxiao 6b0a287cbe test: remove imgimport -v test case
we don't support show version of imgimport.
-v means verbose for imgimport.
So delete this testcase.

Issue:
# imgexport -v
Error: [xcat]: Cannot find /root/-v

Reported-by: Yang Jian <fun_yang@foxmail.com>
Signed-off-by: Chen Hanxiao <chen_han_xiao@126.com>
2020-06-10 16:32:44 +08:00

93 lines
2.8 KiB
Plaintext

start:imgimport_h
os:Linux
description:imgimport -h and --help
label:others
cmd:imgimport -h
check:output=~usage|Usage
cmd:imgimport --help
check:output=~usage|Usage
end
start:imgimport_bundlefile
os:Linux
description:imgimport foo.tgz
label:others,packaging
cmd:copycds $$ISO
cmd:genimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute
check:rc==0
cmd:ls -l /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg
check:rc==0
cmd:packimage -o __GETNODEATTR($$CN,os)__ -p compute -a __GETNODEATTR($$CN,arch)__
check:rc==0
cmd:ls -l /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg.gz
check:rc==0
cmd:imgexport __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute foo.tgz
check:rc==0
check:output=~Done!
cmd:ls foo.tgz
check:rc==0
cmd:imgimport foo.tgz
check:rc==0
check:output=~Successfully imported the image.
cmd:rm -rf foo.tgz
end
start:imgimport_bundlefile_p
os:Linux
description:imgimport foo.tgz -p $$CN
label:others,packaging
cmd:copycds $$ISO
cmd:genimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute
check:rc==0
cmd:ls -l /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg
check:rc==0
cmd:packimage -o __GETNODEATTR($$CN,os)__ -p compute -a __GETNODEATTR($$CN,arch)__
check:rc==0
cmd:ls -l /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg.gz
check:rc==0
cmd:imgexport __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute foo.tgz
check:rc==0
check:output=~Done!
cmd:ls foo.tgz
check:rc==0
cmd:imgimport foo.tgz -p $$CN
check:rc==0
check:output=~Successfully imported the image.
cmd:rm -rf foo.tgz
end
start:imgimport_bundlefile_f
os:Linux
description:imgimport foo.tgz -f compute_test
label:others,packaging
cmd:copycds $$ISO
cmd:genimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute
check:rc==0
cmd:ls -l /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg
check:rc==0
cmd:packimage -o __GETNODEATTR($$CN,os)__ -p compute -a __GETNODEATTR($$CN,arch)__
check:rc==0
cmd:ls -l /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg.gz
check:rc==0
cmd:imgexport __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute foo.tgz
check:rc==0
check:output=~Done!
cmd:ls foo.tgz
check:rc==0
cmd:imgimport foo.tgz -f compute_test
check:rc==0
check:output=~Successfully imported the image.
cmd:ls /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute_test
check:rc==0
cmd:ls /install/custom/netboot/rh/compute_test.*
check:rc==0
cmd:rm -rf foo.tgz
cmd:rm -rf /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute_test
cmd:rm -rf /install/custom/netboot/rh/compute_test.*
end