diff --git a/xCAT-test/autotest/testcase/chkosimage/cases0 b/xCAT-test/autotest/testcase/chkosimage/cases0 new file mode 100644 index 000000000..a5f312a6f --- /dev/null +++ b/xCAT-test/autotest/testcase/chkosimage/cases0 @@ -0,0 +1,44 @@ +start:chkosimage_h +description:chkosimage -h and --help +os:AIX +cmd:chkosimage -h +check:output=~usage|Usage +cmd:chkosimage --help +check:output=~usage|Usage +end + + +start:chkosimage_imagename +description: chkosimage autotest +os:AIX +cmd:mknimimage -V -s $$SOURCE autotest +check:rc==0 +cmd:lsnim | grep autotest +check:rc==0 +check:output=~lpp_source +check:output=~spot +check:output=~bosinst_data +cmd:nim -o update -a packages=all -a source=$$SSHPKG autotest_lpp_source +check:rc==0 +cmd:mkdir -p /install/nim/installp_bundle +cmd:cp $$SSHPKG/xCATaixCN71.bnd /install/nim/installp_bundle/ +check:rc==0 +cmd:nim -o define -t installp_bundle -a server=master -a location=/install/nim/installp_bundle/xCATaixCN71.bnd xCATaixCN71 +cmd:chdef -t osimage -o autotest installp_bundle="xCATaixCN71" +check:rc==0 +cmd:chkosimage autotest +check:rc==0 +end + +start:chkosimage_V_c_imagename +description:chkosimage -V -c autotest +os:AIX +cmd:lsnim | grep autotest +check:rc==0 +check:output=~lpp_source +check:output=~spot +check:output=~bosinst_data +cmd:chkosimage -V -c autotest +check:rc==0 +end + diff --git a/xCAT-test/autotest/testcase/makeconservercf/cases0 b/xCAT-test/autotest/testcase/makeconservercf/cases0 index c0259c0ad..ed858c3ab 100644 --- a/xCAT-test/autotest/testcase/makeconservercf/cases0 +++ b/xCAT-test/autotest/testcase/makeconservercf/cases0 @@ -8,6 +8,7 @@ check:output=~ exec /opt/xcat/share/xcat/cons/hmc testnode; check:output=~} cmd:rmdef -t node testnode end + start:makeconservercf_noderange cmd:chdef -t node -o testnode cons=hmc cmd:makeconservercf testnode @@ -18,6 +19,7 @@ check:output=~ exec /opt/xcat/share/xcat/cons/hmc testnode; check:output=~} cmd:rmdef -t node testnode end + start:makeconservercf_d cmd:chdef -t node -o testnode cons=hmc cmd:makeconservercf testnode diff --git a/xCAT-test/autotest/testcase/xcat2nim/cases0 b/xCAT-test/autotest/testcase/xcat2nim/cases0 new file mode 100644 index 000000000..42875b943 --- /dev/null +++ b/xCAT-test/autotest/testcase/xcat2nim/cases0 @@ -0,0 +1,48 @@ +start:xcat2nim_h +description:xcat2nim -h and --help +os:AIX +cmd:xcat2nim -h +check:output=~usage|Usage +cmd:xcat2nim --help +check:output=~usage|Usage +end + + +start:xcat2nim_t_f_o_V_att +description:xcat2nim -f -t node -o CN -V att= +os:AIX +cmd:xcat2nim -t node -f -o $$CN -V netboot_kernel=mp +check:rc==0 +cmd:lsnim -l $$CN +check:output=~netboot_kernel = mp +cmd:xcat2nim -t node -f -o $$CN -V +end + + +start:xcat2nim_l +description:xcat2nim -l CN +os:AIX +cmd:xcat2nim -l $$CN +check:rc==0 +check:output=~$$CN: +end + +start:xcat2nim_r +description:xcat2nim -r CN +os:AIX +cmd:xcat2nim -r $$CN +check:rc==0 +cmd:lsnim +check:output!~$$CN +cmd:xcat2nim -t node -o $$CN +end + +start:xcat2nim_u +description:xcat2nim -u CN +os:AIX +cmd:lsnim +check:output=~$$CN +cmd:xcat2nim -u $$CN +check:rc==0 +end +