source: client/shared/lib/engine/tests/NoModify/Net1.shtest @ e3a1d64

Last change on this file since e3a1d64 was a80bf33, checked in by irina <irinagomez@…>, 14 years ago

test de File.lib y Net.lib

git-svn-id: https://opengnsys.es/svn/branches/version1.0@1737 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100644
File size: 788 bytes
Line 
1Test para la librería Net.lib No modifica
2=========================================
3$ if [ "$(ogGetHostname)" == "$(hostname)" ] ; then echo si; else echo no; fi
4si
5
6$ if [ "$(ogGetNetInterface)" == "$(ifconfig|head -1|cut -d\  -f1 )" ]; then echo si; else echo no; fi
7si
8
9$ AUX=$(ifconfig eth0|grep 'inet addr'|cut -dB  -f1|sed s/\ //g); if [ "$(ogGetIpAddress)" == "${AUX#*:}" ]; then echo si; else echo no; fi
10si
11
12$ AUX=$(ifconfig |head -1|sed s/\ //g| tr '[a-z]' '[A-Z]'); if [ "$(ogGetMacAddress)" == "${AUX##*HWADDR}" ]; then echo si; else echo no; fi
13si
14
15$ AUX=$(df|grep $OGIMG); if [ "//$(ogGetRepoIp)" == "${AUX%/ogimages*}" ]; then  echo si; else echo no; fi
16si
17
18$ AUX=$(df|grep $OGIMG); if [ "//$(ogGetServerIp)" == "${AUX%/ogimages*}" ]; then  echo si; else echo no; fi
19si
20
21
Note: See TracBrowser for help on using the repository browser.