d/tests: Add initial autopkgtests.
The network-manager
packages has been running several DEP-8 integration tests on https://autopkgtest.ubuntu.com/packages/network-manager for many years. Most of them require a virtual machine environment, due to loading the mac80211_hwsim
kernel module for simulating wireless interfaces.
I took the time to refactor those tests and split them into smaller, isolated classes for improved code-reusability and allowing some of the test cases to be executed without the need for special kernel modules.
For now, it executes the integration tests for wired interfaces, using veth
devices. So this merge request copies the relevant test code for wired interface testing of NetworkManager in Ubuntu. This is probably still better than not having any DEP-8 tests.