xcat-core/xCAT-test/autotest/testcase/copycds/cases0
amy0701 47840ae1ba update copycds testcases
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11007 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-11-15 06:08:16 +00:00

59 lines
1.5 KiB
Plaintext

start:copycds_iso
os:Linux
cmd:umount /mnt/xcat
cmd:copycds $$ISO
check:rc==0
check:output=~Copying media to /install/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/
check:output=~Media copy operation successful
cmd:ls /install/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/.treeinfo
check:rc==0
end
start:copycds_n
os:Linux
cmd:umount /mnt/xcat
cmd:copycds -n __GETNODEATTR($$CN,os)__ $$ISO
check:rc==0
check:output=~Copying media to /install/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/
check:output=~Media copy operation successful
cmd:ls /install/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/.treeinfo
check:rc==0
end
start:copycds_a
os:Linux
cmd:umount /mnt/xcat
cmd:copycds -a __GETNODEATTR($$CN,arch)__ $$ISO
check:rc==0
check:output=~Copying media to /install/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/
check:output=~Media copy operation successful
cmd:ls /install/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/.treeinfo
check:rc==0
end
start:copycds_n_a
os:Linux
cmd:umount /mnt/xcat
cmd:copycds -n __GETNODEATTR($$CN,os)__ -a __GETNODEATTR($$CN,arch)__ $$ISO
check:rc==0
check:output=~Copying media to /install/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/
check:output=~Media copy operation successful
cmd:ls /install/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/.treeinfo
check:rc==0
end
start:copycds_a_err
os:Linux
cmd:umount /mnt/xcat
cmd:copycds -a 386 $$ISO
check:output=~Error
end
start:copycds_n_err
os:Linux
cmd:umount /mnt/xcat
cmd:copycds -n aix $$ISO
check:rc!=0
check:output=~Error
end