]> git.proxmox.com Git - pve-common.git/blobdiff - test/etc_network_interfaces/t.base.pl
importing etc_network_interfaces tests
[pve-common.git] / test / etc_network_interfaces / t.base.pl
diff --git a/test/etc_network_interfaces/t.base.pl b/test/etc_network_interfaces/t.base.pl
new file mode 100644 (file)
index 0000000..9980a2c
--- /dev/null
@@ -0,0 +1,12 @@
+my $wanted = load('base');
+
+# parse the empty file
+r('');
+expect $wanted;
+
+# idempotency
+# save, re-parse, and re-check
+r(w());
+expect $wanted;
+
+1;