Blame SOURCES/0087-test-Add-suite-identifiers-to-tests.patch

2eb93d
From a61377ecf015929de27a665d0b5c937315f9e4aa Mon Sep 17 00:00:00 2001
2eb93d
From: Dan Williams <dan.j.williams@intel.com>
2eb93d
Date: Sun, 23 Jan 2022 16:51:54 -0800
2eb93d
Subject: [PATCH 087/217] test: Add 'suite' identifiers to tests
2eb93d
2eb93d
In preparation for adding CXL tests, and in anticipation of wanting to only
2eb93d
run the CXL tests, label each test with a suite id.
2eb93d
2eb93d
Link: https://lore.kernel.org/r/164298551461.3021641.4591877842309963514.stgit@dwillia2-desk3.amr.corp.intel.com
2eb93d
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2eb93d
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
2eb93d
---
2eb93d
 test/meson.build | 73 ++++++++++++++++++++++++------------------------
2eb93d
 1 file changed, 37 insertions(+), 36 deletions(-)
2eb93d
2eb93d
diff --git a/test/meson.build b/test/meson.build
2eb93d
index 94287aa..07a5bb6 100644
2eb93d
--- a/test/meson.build
2eb93d
+++ b/test/meson.build
2eb93d
@@ -152,28 +152,28 @@ pfn_meta_errors = find_program('pfn-meta-errors.sh')
2eb93d
 track_uuid = find_program('track-uuid.sh')
2eb93d
 
2eb93d
 tests = [
2eb93d
-  [ 'libndctl',               libndctl ],
2eb93d
-  [ 'dsm-fail',               dsm_fail ],
2eb93d
-  [ 'create.sh',              create ],
2eb93d
-  [ 'clear.sh',               clear ],
2eb93d
-  [ 'pmem-errors.sh',         pmem_errors ],
2eb93d
-  [ 'daxdev-errors.sh',       daxdev_errors_sh ],
2eb93d
-  [ 'multi-dax.sh',           multi_dax ],
2eb93d
-  [ 'btt-check.sh',           btt_check ],
2eb93d
-  [ 'label-compat.sh',        label_compat ],
2eb93d
-  [ 'sector-mode.sh',         sector_mode ],
2eb93d
-  [ 'inject-error.sh',        inject_error ],
2eb93d
-  [ 'btt-errors.sh',          btt_errors ],
2eb93d
-  [ 'hugetlb',                hugetlb ],
2eb93d
-  [ 'btt-pad-compat.sh',      btt_pad_compat ],
2eb93d
-  [ 'firmware-update.sh',     firmware_update ],
2eb93d
-  [ 'ack-shutdown-count-set', ack_shutdown_count ],
2eb93d
-  [ 'rescan-partitions.sh',   rescan_partitions ],
2eb93d
-  [ 'inject-smart.sh',        inject_smart ],
2eb93d
-  [ 'monitor.sh',             monitor ],
2eb93d
-  [ 'max_extent_ns',          max_extent ],
2eb93d
-  [ 'pfn-meta-errors.sh',     pfn_meta_errors ],
2eb93d
-  [ 'track-uuid.sh',          track_uuid ],
2eb93d
+  [ 'libndctl',               libndctl,		  'ndctl' ],
2eb93d
+  [ 'dsm-fail',               dsm_fail,	      	  'ndctl' ],
2eb93d
+  [ 'create.sh',              create,	      	  'ndctl' ],
2eb93d
+  [ 'clear.sh',               clear,	      	  'ndctl' ],
2eb93d
+  [ 'pmem-errors.sh',         pmem_errors,    	  'ndctl' ],
2eb93d
+  [ 'daxdev-errors.sh',       daxdev_errors_sh,	  'dax'	  ],
2eb93d
+  [ 'multi-dax.sh',           multi_dax,	  'dax'   ],
2eb93d
+  [ 'btt-check.sh',           btt_check,	  'ndctl' ],
2eb93d
+  [ 'label-compat.sh',        label_compat,       'ndctl' ],
2eb93d
+  [ 'sector-mode.sh',         sector_mode,        'ndctl' ],
2eb93d
+  [ 'inject-error.sh',        inject_error,	  'ndctl' ],
2eb93d
+  [ 'btt-errors.sh',          btt_errors,	  'ndctl' ],
2eb93d
+  [ 'hugetlb',                hugetlb,		  'ndctl' ],
2eb93d
+  [ 'btt-pad-compat.sh',      btt_pad_compat,	  'ndctl' ],
2eb93d
+  [ 'firmware-update.sh',     firmware_update,	  'ndctl' ],
2eb93d
+  [ 'ack-shutdown-count-set', ack_shutdown_count, 'ndctl' ],
2eb93d
+  [ 'rescan-partitions.sh',   rescan_partitions,  'ndctl' ],
2eb93d
+  [ 'inject-smart.sh',        inject_smart,	  'ndctl' ],
2eb93d
+  [ 'monitor.sh',             monitor,		  'ndctl' ],
2eb93d
+  [ 'max_extent_ns',          max_extent,	  'ndctl' ],
2eb93d
+  [ 'pfn-meta-errors.sh',     pfn_meta_errors,	  'ndctl' ],
2eb93d
+  [ 'track-uuid.sh',          track_uuid,	  'ndctl' ],
2eb93d
 ]
2eb93d
 
2eb93d
 if get_option('destructive').enabled()
2eb93d
@@ -188,26 +188,26 @@ if get_option('destructive').enabled()
2eb93d
   mmap_test = find_program('mmap.sh')
2eb93d
 
2eb93d
   tests += [
2eb93d
-    [ 'pmem-ns',           pmem_ns ],
2eb93d
-    [ 'sub-section.sh',    sub_section ],
2eb93d
-    [ 'dax-dev',           dax_dev ],
2eb93d
-    [ 'dax-ext4.sh',       dax_ext4 ],
2eb93d
-    [ 'dax-xfs.sh',        dax_xfs ],
2eb93d
-    [ 'align.sh',          align ],
2eb93d
-    [ 'device-dax',        device_dax ],
2eb93d
-    [ 'revoke-devmem',     revoke_devmem ],
2eb93d
-    [ 'device-dax-fio.sh', device_dax_fio ],
2eb93d
-    [ 'daxctl-devices.sh', daxctl_devices ],
2eb93d
-    [ 'daxctl-create.sh',  daxctl_create ],
2eb93d
-    [ 'dm.sh',             dm ],
2eb93d
-    [ 'mmap.sh',           mmap_test ],
2eb93d
+    [ 'pmem-ns',           pmem_ns,	   'ndctl' ],
2eb93d
+    [ 'sub-section.sh',    sub_section,	   'dax'   ],
2eb93d
+    [ 'dax-dev',           dax_dev,	   'dax'   ],
2eb93d
+    [ 'dax-ext4.sh',       dax_ext4,	   'dax'   ],
2eb93d
+    [ 'dax-xfs.sh',        dax_xfs,	   'dax'   ],
2eb93d
+    [ 'align.sh',          align,	   'ndctl' ],
2eb93d
+    [ 'device-dax',        device_dax,	   'dax'   ],
2eb93d
+    [ 'revoke-devmem',     revoke_devmem,  'dax'   ],
2eb93d
+    [ 'device-dax-fio.sh', device_dax_fio, 'dax'   ],
2eb93d
+    [ 'daxctl-devices.sh', daxctl_devices, 'dax'   ],
2eb93d
+    [ 'daxctl-create.sh',  daxctl_create,  'dax'   ],
2eb93d
+    [ 'dm.sh',             dm,		   'dax'   ],
2eb93d
+    [ 'mmap.sh',           mmap_test,	   'dax'   ],
2eb93d
   ]
2eb93d
 endif
2eb93d
 
2eb93d
 if get_option('keyutils').enabled()
2eb93d
   security = find_program('security.sh')
2eb93d
   tests += [
2eb93d
-    [ 'security.sh', security ]
2eb93d
+    [ 'security.sh', security, 'ndctl' ]
2eb93d
   ]
2eb93d
 endif
2eb93d
 
2eb93d
@@ -226,6 +226,7 @@ foreach t : tests
2eb93d
       dax_dev,
2eb93d
       mmap,
2eb93d
     ],
2eb93d
+    suite: t[2],
2eb93d
     timeout : 0,
2eb93d
     env : [
2eb93d
       'NDCTL=@0@'.format(ndctl_tool.full_path()),
2eb93d
-- 
2eb93d
2.27.0
2eb93d