]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: Minor adjustments for test data
authorMartin Kletzander <mkletzan@redhat.com>
Sun, 12 Nov 2017 20:01:46 +0000 (21:01 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Sat, 18 Nov 2017 09:45:10 +0000 (10:45 +0100)
This patch modifies some not yet used test data so that the adding a test using
this data is a clean patch and not an addition of huge file with some
adjustments in small files that will be hidden in the middle of that commit.
These changes include:

- Add system dir in vircaps2xmldata/linux-caches

  Back when data for systems with resctrl support were added they had the
  /sys/fs/system directory put into a system/ subdir of the test and
  /sys/fs/resctrl in a resctrl/ subdir of that test.  However, if we also want a
  negative test for the resctrl (requesting allocation on a system that does not
  support resctrl), we need one a test case with any sensible (with cache info)
  system/ subdir and no resctrl/ one.  Easiest way is to add a
  system -> . symlink into existing test case.

- Change default group schemata for linux-resctrl and linux-resctrl-cdp

  That way we can fit some allocation in.

- Remove one cache from resctrl-skx's schemata and make some room for
  allocations

  That system already has only one cache, so that file was wrong anyway.  We
  have a version with 2 caches already (linux-resctrl-skx-twocaches), so this
  will also add variety to future tests.

- Add some empty allocation for resctrl-skx

  Just to have slightly more coverage and variety.  We can be sure nothing bad
  happens if such allocation exists in case we have that in the tests.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
tests/vircaps2xmldata/linux-caches/system [new symlink]
tests/vircaps2xmldata/linux-resctrl-cdp/resctrl/schemata
tests/vircaps2xmldata/linux-resctrl-skx/resctrl/empty/schemata [new file with mode: 0644]
tests/vircaps2xmldata/linux-resctrl-skx/resctrl/schemata
tests/vircaps2xmldata/linux-resctrl/resctrl/schemata

diff --git a/tests/vircaps2xmldata/linux-caches/system b/tests/vircaps2xmldata/linux-caches/system
new file mode 120000 (symlink)
index 0000000..945c9b4
--- /dev/null
@@ -0,0 +1 @@
+.
\ No newline at end of file
index 89dc76b86465d8d5f0fa3b9ee003c2d9bf50395c..5de8fb0261a1b2158794baf4faae18835007c392 100644 (file)
@@ -1,2 +1,2 @@
-L3DATA:0=fffff;1=fffff
-L3CODE:0=fffff;1=fffff
+L3DATA:0=fffff;1=fc000
+L3CODE:0=ff003;1=f00ff
diff --git a/tests/vircaps2xmldata/linux-resctrl-skx/resctrl/empty/schemata b/tests/vircaps2xmldata/linux-resctrl-skx/resctrl/empty/schemata
new file mode 100644 (file)
index 0000000..e69de29
index 4a4913735386ad5d54cf2f830ecb7fed33503ee9..191081f1db47e6cd5454649db853cc75e19e35ba 100644 (file)
@@ -1 +1 @@
-L3:0=7ff;1=7ff
+L3:0=0f0
index 9b47d25fc72e4bcf933578d449a2fce4b32f9657..c1a765f1e0a7ccbfc1e770b2f6e23a5af78c5998 100644 (file)
@@ -1 +1 @@
-L3:0=1ffff;1=1ffff
+L3:0=1ff00;1=1ff0f