NITSI_TESTS = \
test/nitsi/test/hello-world \
- test/nitsi/test/make-check
+ test/nitsi/test/make-check \
+ test/nitsi/test/raw-device-get-by-mac
EXTRA_DIST += \
test/nitsi/test/hello-world/recipe \
test/nitsi/test/hello-world/settings \
test/nitsi/test/make-check/recipe.in \
test/nitsi/test/make-check/settings.in
+ test/nitsi/test/raw-device-get-by-mac/recipe\
+ test/nitsi/test/raw-device-get-by-mac/settings.in
+
CLEANFILES += \
test/nitsi/test/make-check/recipe \
- test/nitsi/test/make-check/settings
+ test/nitsi/test/make-check/settings \
+ test/nitsi/test/raw-device-get-by-mac/settings
NITSI_ENVIRONMENT =
--- /dev/null
+include: ../../include/make-install
+include: ../../include/network-settings
+include: ../../include/network-reset
+alice: port="$(network raw device-get-by-mac-address "52:54:00:8a:b8:b5")"
+alice: echo $port
+alice: [ "52:54:00:8a:b8:b5" = "$(cat /sys/class/net/${port}/address)" ]
--- /dev/null
+[GENERAL]
+name = raw-device-get-by-mac
+description = This test checks if 'network raw device-get-by-mac' return the correct device for a given mac
+copy_from = ../../../../@PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz
+copy_to = /root/
+
+[VIRTUAL_ENVIRONMENT]
+path = ../../virtual-environment/basic