start:copycds_iso
os:Linux
cmd:rm -rf /install/__GETNODEATTR($$CN,os)__
#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)__
check:rc==0
end

start:lskmodules_o
cmd:lskmodules -o __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__
check:rc==0
check:output=~.ko(.xz):
end


start:copycds_n
os:Linux
#cmd:umount /mnt/xca
cmd:rm -rf /install/__GETNODEATTR($$CN,os)__
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:lsdef $$CN
cmd:ps -aux |grep copycds
cmd:ls /install/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__
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)__
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)__
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

start:copycds_p
os:Linux
#cmd:umount /mnt/xcat
cmd:mkdir -p /install/tmp
cmd:copycds -p /install/tmp $$ISO
check:rc==0
check:output=~Copying media to /install/tmp
check:output=~Media copy operation successful
cmd:ls /install/tmp/1/suse
check:rc==0
cmd:rm -rf /install/tmp
check:rc==0
end

start:copycds_path
os:Linux
#cmd:umount /mnt/xcat
cmd:mkdir -p /install/tmp
cmd:copycds --path /install/tmp $$ISO
check:rc==0
check:output=~Copying media to /install/tmp
check:output=~Media copy operation successful
cmd:ls /install/tmp/1/suse
check:rc==0
cmd:rm -rf /install/tmp
check:rc==0
end


start:copycds_i
os:Linux
cmd:copycds -i $$ISO
check:rc==0
check:output=~OS Image:$$ISO
check:output=~DISTNAME:__GETNODEATTR($$CN,os)__
check:output=~ARCH:__GETNODEATTR($$CN,arch)__
check:rc==0
end

start:copycds_inspection
os:Linux
cmd:copycds --inspection $$ISO
check:rc==0
check:output=~OS Image:$$ISO
check:output=~DISTNAME:__GETNODEATTR($$CN,os)__
check:output=~ARCH:__GETNODEATTR($$CN,arch)__
check:rc==0
end

start:copycds_o
os:Linux
cmd:copycds -o $$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 || ls /install/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/1/suse
check:rc==0
end

start:copycds_noosimage
os:Linux
cmd:copycds --noosimage $$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 || ls /install/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/1/suse
check:rc==0
end

start:copycds_w
os:Linux
cmd:copycds $$ISO
check:rc==0
cmd:copycds -w $$ISO
check:rc==0
check:output=~The disc iso has already been copied in!
end


start:copycds_w2
os:Linux
cmd:rm -rf /install/__GETNODEATTR($$CN,os)__
check:rc==0
cmd:copycds -w $$ISO
check:rc==0
check:output=~~Copying media to /install/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__
end


start:copycds_nonoverwrite
os:Linux
cmd:copycds $$ISO
check:rc==0
cmd:copycds --nonoverwrite $$ISO
check:rc==0
check:output=~The disc iso has already been copied in!
end

start:copycds_nonoverwrite2
os:Linux
cmd:rm -rf /install/__GETNODEATTR($$CN,os)__
check:rc==0
cmd:copycds --nonoverwrite $$ISO
check:rc==0
check:output=~~Copying media to /install/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__
end


start:copycds_p_newdir
os:Linux
cmd:if [ -e /install/newdir ];then mv  /install/newdir /install/newdirbak; fi
cmd:copycds $$ISO -p /install/newdir
check:rc==0
check:output=~Copying media to /install/newdir
check:output=~Media copy operation successful
cmd:ls -l /install/newdir/Packages
check:rc==0
cmd:rm -rf /install/newdir
cmd:if [ -e /install/newdirbak ];then mv  /install/newdirbak /install/newdir; fi
end

start:copycds_p_noninstalldir
os:Linux
cmd:if [ -e /noninstalldir ];then mv /noninstalldir /noninstaldirbak; fi
cmd:copycds $$ISO -p /noninstalldir
check:rc==0
check:output=~Warning: copycds: the specified path "/noninstalldir" is not a subdirectory under /install
check:output=~Copying media to /noninstalldir
cmd:ls -l /noninstalldir/Packages
check:rc==0
cmd:rm -rf /noninstalldir
cmd:if [ -e /noninstalldirbak ];then mv /noninstalldirbak /noninstalldir; fi
end
