xcat-core/xCAT-test/autotest/testcase/getmacs/cases0
ellen56 a05837bdca new files for xCAT test
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7514 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-09-20 08:10:57 +00:00

35 lines
1.3 KiB
Plaintext

start:getmacs_noderange
cmd:tabdump mac > /tmp/mac.csv
cmd:chtab -d node=$$CN mac
cmd:getmacs $$CN
check:rc==0
check:output=~[a-f0-9A-F]{12}|[a-f0-9A-F]{2}:[a-f0-9A-F]{2}:[a-f0-9A-F]{2}:[a-f0-9A-F]{2}:[a-f0-9A-F]{2}:[a-f0-9A-F]{2}
cmd:tabdump mac | grep $$CN
check:output=~[a-f0-9A-F]{12}|[a-f0-9A-F]{2}:[a-f0-9A-F]{2}:[a-f0-9A-F]{2}:[a-f0-9A-F]{2}:[a-f0-9A-F]{2}:[a-f0-9A-F]{2}
cmd:tabrestore /tmp/mac.csv
cmd:rm /tmp/mac.csv
end
start:getmacs_d
cmd:tabdump mac > /tmp/mac.csv
cmd:chtab -d node=$$CN mac
cmd:getmacs $$CN -d
check:rc==0
check:output=~[a-f0-9A-F]{12}|[a-f0-9A-F]{2}:[a-f0-9A-F]{2}:[a-f0-9A-F]{2}:[a-f0-9A-F]{2}:[a-f0-9A-F]{2}:[a-f0-9A-F]{2}
cmd:tabdump mac | grep $$CN
check:output!~[a-f0-9A-F]{12}|[a-f0-9A-F]{2}:[a-f0-9A-F]{2}:[a-f0-9A-F]{2}:[a-f0-9A-F]{2}:[a-f0-9A-F]{2}:[a-f0-9A-F]{2}
cmd:tabrestore /tmp/mac.csv
cmd:rm /tmp/mac.csv
end
start:getmacs_f_D
cmd:tabdump mac > /tmp/mac.csv
cmd:chtab -d node=$$CN mac
cmd:getmacs $$CN -f -D
check:rc==0
check:output=~[a-f0-9A-F]{12}|[a-f0-9A-F]{2}:[a-f0-9A-F]{2}:[a-f0-9A-F]{2}:[a-f0-9A-F]{2}:[a-f0-9A-F]{2}:[a-f0-9A-F]{2}
cmd:tabdump mac | grep $$CN
check:output=~[a-f0-9A-F]{12}|[a-f0-9A-F]{2}:[a-f0-9A-F]{2}:[a-f0-9A-F]{2}:[a-f0-9A-F]{2}:[a-f0-9A-F]{2}:[a-f0-9A-F]{2}
cmd:tabrestore /tmp/mac.csv
cmd:rm /tmp/mac.csv
cmd:rpower $$CN on
end