summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2003-10-22 01:14:59 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:04:10 -0700
commit562e8810163ace28ec6683b494e26bd173a81f58 (patch)
tree2ac761f31be175ab8c8b15751d74d291202c26d9
parent64455bfc69aa4c9a79bdfa9face9c4ecbdb5a8ed (diff)
downloadsystemd-562e8810163ace28ec6683b494e26bd173a81f58.tar.gz
[PATCH] regression tests starting to be added.
-rw-r--r--test/label_test14
-rw-r--r--test/label_test.config3
-rw-r--r--test/sys/block/sda/dev1
-rw-r--r--test/sys/block/sda/queue/iosched/antic_expire1
-rw-r--r--test/sys/block/sda/queue/iosched/read_batch_expire1
-rw-r--r--test/sys/block/sda/queue/iosched/read_expire1
-rw-r--r--test/sys/block/sda/queue/iosched/write_batch_expire1
-rw-r--r--test/sys/block/sda/queue/iosched/write_expire1
-rw-r--r--test/sys/block/sda/queue/nr_requests1
-rw-r--r--test/sys/block/sda/range1
-rw-r--r--test/sys/block/sda/sda1/dev1
-rw-r--r--test/sys/block/sda/sda1/size1
-rw-r--r--test/sys/block/sda/sda1/start1
-rw-r--r--test/sys/block/sda/sda1/stat1
-rw-r--r--test/sys/block/sda/sda2/dev1
-rw-r--r--test/sys/block/sda/sda2/size1
-rw-r--r--test/sys/block/sda/sda2/start1
-rw-r--r--test/sys/block/sda/sda2/stat1
-rw-r--r--test/sys/block/sda/sda3/dev1
-rw-r--r--test/sys/block/sda/sda3/size1
-rw-r--r--test/sys/block/sda/sda3/start1
-rw-r--r--test/sys/block/sda/sda3/stat1
-rw-r--r--test/sys/block/sda/sda4/dev1
-rw-r--r--test/sys/block/sda/sda4/size1
-rw-r--r--test/sys/block/sda/sda4/start1
-rw-r--r--test/sys/block/sda/sda4/stat1
-rw-r--r--test/sys/block/sda/size1
-rw-r--r--test/sys/block/sda/stat1
-rw-r--r--test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/class1
-rw-r--r--test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/device1
-rw-r--r--test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/device_blocked1
-rw-r--r--test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/model1
-rw-r--r--test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/online1
-rw-r--r--test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/queue_depth1
-rw-r--r--test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/rev1
-rw-r--r--test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/scsi_level1
-rw-r--r--test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/type1
-rw-r--r--test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/vendor1
-rw-r--r--test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/irq1
-rw-r--r--test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/resource7
-rw-r--r--test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/subsystem_device1
-rw-r--r--test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/subsystem_vendor1
-rw-r--r--test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/vendor1
-rw-r--r--test/sys/devices/pci0000:00/0000:00:1e.0/class1
-rw-r--r--test/sys/devices/pci0000:00/0000:00:1e.0/device1
-rw-r--r--test/sys/devices/pci0000:00/0000:00:1e.0/irq1
-rw-r--r--test/sys/devices/pci0000:00/0000:00:1e.0/resource12
-rw-r--r--test/sys/devices/pci0000:00/0000:00:1e.0/subsystem_device1
-rw-r--r--test/sys/devices/pci0000:00/0000:00:1e.0/subsystem_vendor1
-rw-r--r--test/sys/devices/pci0000:00/0000:00:1e.0/vendor1
50 files changed, 82 insertions, 0 deletions
diff --git a/test/label_test b/test/label_test
new file mode 100644
index 0000000000..f2208cbbdd
--- /dev/null
+++ b/test/label_test
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+export UDEV_TEST=yes
+export UDEV_SYSFS_PATH=$PWD/sys/
+export UDEV_CONFIG_DIR=$PWD/
+export UDEV_ROOT=$PWD/udev/
+export UDEV_DB=udev.tdb
+export UDEV_CONFIG_FILE=label_test.config
+export UDEV_PERMISSION_FILE=udev.permissions
+
+export DEVPATH=block/sda
+export ACTION=add
+
+../udev block
diff --git a/test/label_test.config b/test/label_test.config
new file mode 100644
index 0000000000..b317537bb6
--- /dev/null
+++ b/test/label_test.config
@@ -0,0 +1,3 @@
+# LABEL test
+LABEL, BUS="scsi", vendor="IBM-ESXS", NAME="boot_disk"
+
diff --git a/test/sys/block/sda/dev b/test/sys/block/sda/dev
new file mode 100644
index 0000000000..fae0a50572
--- /dev/null
+++ b/test/sys/block/sda/dev
@@ -0,0 +1 @@
+8:0
diff --git a/test/sys/block/sda/queue/iosched/antic_expire b/test/sys/block/sda/queue/iosched/antic_expire
new file mode 100644
index 0000000000..1e8b314962
--- /dev/null
+++ b/test/sys/block/sda/queue/iosched/antic_expire
@@ -0,0 +1 @@
+6
diff --git a/test/sys/block/sda/queue/iosched/read_batch_expire b/test/sys/block/sda/queue/iosched/read_batch_expire
new file mode 100644
index 0000000000..08839f6bb2
--- /dev/null
+++ b/test/sys/block/sda/queue/iosched/read_batch_expire
@@ -0,0 +1 @@
+200
diff --git a/test/sys/block/sda/queue/iosched/read_expire b/test/sys/block/sda/queue/iosched/read_expire
new file mode 100644
index 0000000000..e373ee695f
--- /dev/null
+++ b/test/sys/block/sda/queue/iosched/read_expire
@@ -0,0 +1 @@
+50
diff --git a/test/sys/block/sda/queue/iosched/write_batch_expire b/test/sys/block/sda/queue/iosched/write_batch_expire
new file mode 100644
index 0000000000..e373ee695f
--- /dev/null
+++ b/test/sys/block/sda/queue/iosched/write_batch_expire
@@ -0,0 +1 @@
+50
diff --git a/test/sys/block/sda/queue/iosched/write_expire b/test/sys/block/sda/queue/iosched/write_expire
new file mode 100644
index 0000000000..08839f6bb2
--- /dev/null
+++ b/test/sys/block/sda/queue/iosched/write_expire
@@ -0,0 +1 @@
+200
diff --git a/test/sys/block/sda/queue/nr_requests b/test/sys/block/sda/queue/nr_requests
new file mode 100644
index 0000000000..a949a93dfc
--- /dev/null
+++ b/test/sys/block/sda/queue/nr_requests
@@ -0,0 +1 @@
+128
diff --git a/test/sys/block/sda/range b/test/sys/block/sda/range
new file mode 100644
index 0000000000..b6a7d89c68
--- /dev/null
+++ b/test/sys/block/sda/range
@@ -0,0 +1 @@
+16
diff --git a/test/sys/block/sda/sda1/dev b/test/sys/block/sda/sda1/dev
new file mode 100644
index 0000000000..92c4b9b088
--- /dev/null
+++ b/test/sys/block/sda/sda1/dev
@@ -0,0 +1 @@
+8:1
diff --git a/test/sys/block/sda/sda1/size b/test/sys/block/sda/sda1/size
new file mode 100644
index 0000000000..f00a59241e
--- /dev/null
+++ b/test/sys/block/sda/sda1/size
@@ -0,0 +1 @@
+1060227
diff --git a/test/sys/block/sda/sda1/start b/test/sys/block/sda/sda1/start
new file mode 100644
index 0000000000..4b9026d8e2
--- /dev/null
+++ b/test/sys/block/sda/sda1/start
@@ -0,0 +1 @@
+63
diff --git a/test/sys/block/sda/sda1/stat b/test/sys/block/sda/sda1/stat
new file mode 100644
index 0000000000..199ce7330b
--- /dev/null
+++ b/test/sys/block/sda/sda1/stat
@@ -0,0 +1 @@
+ 50 400 103 824
diff --git a/test/sys/block/sda/sda2/dev b/test/sys/block/sda/sda2/dev
new file mode 100644
index 0000000000..9799a2674a
--- /dev/null
+++ b/test/sys/block/sda/sda2/dev
@@ -0,0 +1 @@
+8:2
diff --git a/test/sys/block/sda/sda2/size b/test/sys/block/sda/sda2/size
new file mode 100644
index 0000000000..80483ab968
--- /dev/null
+++ b/test/sys/block/sda/sda2/size
@@ -0,0 +1 @@
+112455
diff --git a/test/sys/block/sda/sda2/start b/test/sys/block/sda/sda2/start
new file mode 100644
index 0000000000..3a4bf076fc
--- /dev/null
+++ b/test/sys/block/sda/sda2/start
@@ -0,0 +1 @@
+1060290
diff --git a/test/sys/block/sda/sda2/stat b/test/sys/block/sda/sda2/stat
new file mode 100644
index 0000000000..c06b749cd1
--- /dev/null
+++ b/test/sys/block/sda/sda2/stat
@@ -0,0 +1 @@
+ 342 500 15 30
diff --git a/test/sys/block/sda/sda3/dev b/test/sys/block/sda/sda3/dev
new file mode 100644
index 0000000000..44ccff41b0
--- /dev/null
+++ b/test/sys/block/sda/sda3/dev
@@ -0,0 +1 @@
+8:3
diff --git a/test/sys/block/sda/sda3/size b/test/sys/block/sda/sda3/size
new file mode 100644
index 0000000000..1373b38f8d
--- /dev/null
+++ b/test/sys/block/sda/sda3/size
@@ -0,0 +1 @@
+20482875
diff --git a/test/sys/block/sda/sda3/start b/test/sys/block/sda/sda3/start
new file mode 100644
index 0000000000..cab5c33336
--- /dev/null
+++ b/test/sys/block/sda/sda3/start
@@ -0,0 +1 @@
+1172745
diff --git a/test/sys/block/sda/sda3/stat b/test/sys/block/sda/sda3/stat
new file mode 100644
index 0000000000..82fb1463a1
--- /dev/null
+++ b/test/sys/block/sda/sda3/stat
@@ -0,0 +1 @@
+ 415052 6872874 669740 5357920
diff --git a/test/sys/block/sda/sda4/dev b/test/sys/block/sda/sda4/dev
new file mode 100644
index 0000000000..aab3fc56e1
--- /dev/null
+++ b/test/sys/block/sda/sda4/dev
@@ -0,0 +1 @@
+8:4
diff --git a/test/sys/block/sda/sda4/size b/test/sys/block/sda/sda4/size
new file mode 100644
index 0000000000..062619c44b
--- /dev/null
+++ b/test/sys/block/sda/sda4/size
@@ -0,0 +1 @@
+49432005
diff --git a/test/sys/block/sda/sda4/start b/test/sys/block/sda/sda4/start
new file mode 100644
index 0000000000..b65020c801
--- /dev/null
+++ b/test/sys/block/sda/sda4/start
@@ -0,0 +1 @@
+21655620
diff --git a/test/sys/block/sda/sda4/stat b/test/sys/block/sda/sda4/stat
new file mode 100644
index 0000000000..3e7b7ad75c
--- /dev/null
+++ b/test/sys/block/sda/sda4/stat
@@ -0,0 +1 @@
+ 642730 9095506 275223 2201728
diff --git a/test/sys/block/sda/size b/test/sys/block/sda/size
new file mode 100644
index 0000000000..88da032f61
--- /dev/null
+++ b/test/sys/block/sda/size
@@ -0,0 +1 @@
+71096640
diff --git a/test/sys/block/sda/stat b/test/sys/block/sda/stat
new file mode 100644
index 0000000000..b93c7d4ac4
--- /dev/null
+++ b/test/sys/block/sda/stat
@@ -0,0 +1 @@
+ 1043906 19157 16008400 4313104 317001 625161 7560502 48785829 0 3846686 53153390
diff --git a/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/class b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/class
new file mode 100644
index 0000000000..145a550829
--- /dev/null
+++ b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/class
@@ -0,0 +1 @@
+0x010000
diff --git a/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/device b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/device
new file mode 100644
index 0000000000..c271a13ff6
--- /dev/null
+++ b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/device
@@ -0,0 +1 @@
+0x008f
diff --git a/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/device_blocked b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/device_blocked
new file mode 100644
index 0000000000..573541ac97
--- /dev/null
+++ b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/device_blocked
@@ -0,0 +1 @@
+0
diff --git a/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/model b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/model
new file mode 100644
index 0000000000..392039b199
--- /dev/null
+++ b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/model
@@ -0,0 +1 @@
+ST336605LW !#
diff --git a/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/online b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/online
new file mode 100644
index 0000000000..d00491fd7e
--- /dev/null
+++ b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/online
@@ -0,0 +1 @@
+1
diff --git a/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/queue_depth b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/queue_depth
new file mode 100644
index 0000000000..f5c89552bd
--- /dev/null
+++ b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/queue_depth
@@ -0,0 +1 @@
+32
diff --git a/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/rev b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/rev
new file mode 100644
index 0000000000..65dd514497
--- /dev/null
+++ b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/rev
@@ -0,0 +1 @@
+B245
diff --git a/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/scsi_level b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/scsi_level
new file mode 100644
index 0000000000..b8626c4cff
--- /dev/null
+++ b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/scsi_level
@@ -0,0 +1 @@
+4
diff --git a/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/type b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/type
new file mode 100644
index 0000000000..573541ac97
--- /dev/null
+++ b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/type
@@ -0,0 +1 @@
+0
diff --git a/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/vendor b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/vendor
new file mode 100644
index 0000000000..d87b2a5c0b
--- /dev/null
+++ b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/vendor
@@ -0,0 +1 @@
+IBM-ESXS
diff --git a/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/irq b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/irq
new file mode 100644
index 0000000000..2bd5a0a98a
--- /dev/null
+++ b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/irq
@@ -0,0 +1 @@
+22
diff --git a/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/resource b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/resource
new file mode 100644
index 0000000000..2a3d654b9a
--- /dev/null
+++ b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/resource
@@ -0,0 +1,7 @@
+0x0000000000007400 0x00000000000074ff 0x0000000000000101
+0x0000000080a11000 0x0000000080a11fff 0x0000000000000204
+0x0000000000000000 0x0000000000000000 0x0000000000000000
+0x0000000000000000 0x0000000000000000 0x0000000000000000
+0x0000000000000000 0x0000000000000000 0x0000000000000000
+0x0000000000000000 0x0000000000000000 0x0000000000000000
+0x0000000080a40000 0x0000000080a5ffff 0x0000000000007200
diff --git a/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/subsystem_device b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/subsystem_device
new file mode 100644
index 0000000000..8419b39dd6
--- /dev/null
+++ b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/subsystem_device
@@ -0,0 +1 @@
+0x0205
diff --git a/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/subsystem_vendor b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/subsystem_vendor
new file mode 100644
index 0000000000..7369ccd585
--- /dev/null
+++ b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/subsystem_vendor
@@ -0,0 +1 @@
+0x1014
diff --git a/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/vendor b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/vendor
new file mode 100644
index 0000000000..a5d57044c8
--- /dev/null
+++ b/test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/vendor
@@ -0,0 +1 @@
+0x9005
diff --git a/test/sys/devices/pci0000:00/0000:00:1e.0/class b/test/sys/devices/pci0000:00/0000:00:1e.0/class
new file mode 100644
index 0000000000..8b40e6a7b7
--- /dev/null
+++ b/test/sys/devices/pci0000:00/0000:00:1e.0/class
@@ -0,0 +1 @@
+0x060400
diff --git a/test/sys/devices/pci0000:00/0000:00:1e.0/device b/test/sys/devices/pci0000:00/0000:00:1e.0/device
new file mode 100644
index 0000000000..9fe3927fbb
--- /dev/null
+++ b/test/sys/devices/pci0000:00/0000:00:1e.0/device
@@ -0,0 +1 @@
+0x244e
diff --git a/test/sys/devices/pci0000:00/0000:00:1e.0/irq b/test/sys/devices/pci0000:00/0000:00:1e.0/irq
new file mode 100644
index 0000000000..573541ac97
--- /dev/null
+++ b/test/sys/devices/pci0000:00/0000:00:1e.0/irq
@@ -0,0 +1 @@
+0
diff --git a/test/sys/devices/pci0000:00/0000:00:1e.0/resource b/test/sys/devices/pci0000:00/0000:00:1e.0/resource
new file mode 100644
index 0000000000..f8f56abf32
--- /dev/null
+++ b/test/sys/devices/pci0000:00/0000:00:1e.0/resource
@@ -0,0 +1,12 @@
+0x0000000000000000 0x0000000000000000 0x0000000000000000
+0x0000000000000000 0x0000000000000000 0x0000000000000000
+0x0000000000000000 0x0000000000000000 0x0000000000000000
+0x0000000000000000 0x0000000000000000 0x0000000000000000
+0x0000000000000000 0x0000000000000000 0x0000000000000000
+0x0000000000000000 0x0000000000000000 0x0000000000000000
+0x0000000000000000 0x0000000000000000 0x0000000000000000
+0x0000000000000000 0x0000000000000000 0x0000000000000000
+0x0000000000000000 0x0000000000000000 0x0000000000000000
+0x0000000000000000 0x0000000000000000 0x0000000000000000
+0x0000000000000000 0x0000000000000000 0x0000000000000000
+0x0000000000000000 0x0000000000000000 0x0000000000000000
diff --git a/test/sys/devices/pci0000:00/0000:00:1e.0/subsystem_device b/test/sys/devices/pci0000:00/0000:00:1e.0/subsystem_device
new file mode 100644
index 0000000000..aa01954cc8
--- /dev/null
+++ b/test/sys/devices/pci0000:00/0000:00:1e.0/subsystem_device
@@ -0,0 +1 @@
+0x0000
diff --git a/test/sys/devices/pci0000:00/0000:00:1e.0/subsystem_vendor b/test/sys/devices/pci0000:00/0000:00:1e.0/subsystem_vendor
new file mode 100644
index 0000000000..aa01954cc8
--- /dev/null
+++ b/test/sys/devices/pci0000:00/0000:00:1e.0/subsystem_vendor
@@ -0,0 +1 @@
+0x0000
diff --git a/test/sys/devices/pci0000:00/0000:00:1e.0/vendor b/test/sys/devices/pci0000:00/0000:00:1e.0/vendor
new file mode 100644
index 0000000000..ce6dc4da35
--- /dev/null
+++ b/test/sys/devices/pci0000:00/0000:00:1e.0/vendor
@@ -0,0 +1 @@
+0x8086