summaryrefslogtreecommitdiffstats
path: root/client/shared/lib/engine/tests/NoModify/Net1.shtest
diff options
context:
space:
mode:
Diffstat (limited to 'client/shared/lib/engine/tests/NoModify/Net1.shtest')
-rw-r--r--client/shared/lib/engine/tests/NoModify/Net1.shtest21
1 files changed, 21 insertions, 0 deletions
diff --git a/client/shared/lib/engine/tests/NoModify/Net1.shtest b/client/shared/lib/engine/tests/NoModify/Net1.shtest
new file mode 100644
index 00000000..977b00d6
--- /dev/null
+++ b/client/shared/lib/engine/tests/NoModify/Net1.shtest
@@ -0,0 +1,21 @@
+Test para la librería Net.lib No modifica
+=========================================
+$ if [ "$(ogGetHostname)" == "$(hostname)" ] ; then echo si; else echo no; fi
+si
+
+$ if [ "$(ogGetNetInterface)" == "$(ifconfig|head -1|cut -d\ -f1 )" ]; then echo si; else echo no; fi
+si
+
+$ AUX=$(ifconfig eth0|grep 'inet addr'|cut -dB -f1|sed s/\ //g); if [ "$(ogGetIpAddress)" == "${AUX#*:}" ]; then echo si; else echo no; fi
+si
+
+$ AUX=$(ifconfig |head -1|sed s/\ //g| tr '[a-z]' '[A-Z]'); if [ "$(ogGetMacAddress)" == "${AUX##*HWADDR}" ]; then echo si; else echo no; fi
+si
+
+$ AUX=$(df|grep $OGIMG); if [ "//$(ogGetRepoIp)" == "${AUX%/ogimages*}" ]; then echo si; else echo no; fi
+si
+
+$ AUX=$(df|grep $OGIMG); if [ "//$(ogGetServerIp)" == "${AUX%/ogimages*}" ]; then echo si; else echo no; fi
+si
+
+