From: greg@kroah.com Date: Wed, 22 Oct 2003 08:14:59 +0000 (-0700) Subject: [PATCH] regression tests starting to be added. X-Git-Tag: 005~21 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=562e8810163ace28ec6683b494e26bd173a81f58;p=systemd [PATCH] regression tests starting to be added. --- diff --git a/test/label_test b/test/label_test new file mode 100644 index 00000000..f2208cbb --- /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 00000000..b317537b --- /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 00000000..fae0a505 --- /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 00000000..1e8b3149 --- /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 00000000..08839f6b --- /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 00000000..e373ee69 --- /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 00000000..e373ee69 --- /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 00000000..08839f6b --- /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 00000000..a949a93d --- /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 00000000..b6a7d89c --- /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 00000000..92c4b9b0 --- /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 00000000..f00a5924 --- /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 00000000..4b9026d8 --- /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 00000000..199ce733 --- /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 00000000..9799a267 --- /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 00000000..80483ab9 --- /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 00000000..3a4bf076 --- /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 00000000..c06b749c --- /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 00000000..44ccff41 --- /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 00000000..1373b38f --- /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 00000000..cab5c333 --- /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 00000000..82fb1463 --- /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 00000000..aab3fc56 --- /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 00000000..062619c4 --- /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 00000000..b65020c8 --- /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 00000000..3e7b7ad7 --- /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 00000000..88da032f --- /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 00000000..b93c7d4a --- /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 00000000..145a5508 --- /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 00000000..c271a13f --- /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 00000000..573541ac --- /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 00000000..392039b1 --- /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 00000000..d00491fd --- /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 00000000..f5c89552 --- /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 00000000..65dd5144 --- /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 00000000..b8626c4c --- /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 00000000..573541ac --- /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 00000000..d87b2a5c --- /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 00000000..2bd5a0a9 --- /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 00000000..2a3d654b --- /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 00000000..8419b39d --- /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 00000000..7369ccd5 --- /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 00000000..a5d57044 --- /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 00000000..8b40e6a7 --- /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 00000000..9fe3927f --- /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 00000000..573541ac --- /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 00000000..f8f56abf --- /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 00000000..aa01954c --- /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 00000000..aa01954c --- /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 00000000..ce6dc4da --- /dev/null +++ b/test/sys/devices/pci0000:00/0000:00:1e.0/vendor @@ -0,0 +1 @@ +0x8086