]> err.no Git - systemd/commitdiff
[PATCH] regression tests starting to be added.
authorgreg@kroah.com <greg@kroah.com>
Wed, 22 Oct 2003 08:14:59 +0000 (01:14 -0700)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:04:10 +0000 (21:04 -0700)
50 files changed:
test/label_test [new file with mode: 0644]
test/label_test.config [new file with mode: 0644]
test/sys/block/sda/dev [new file with mode: 0644]
test/sys/block/sda/queue/iosched/antic_expire [new file with mode: 0644]
test/sys/block/sda/queue/iosched/read_batch_expire [new file with mode: 0644]
test/sys/block/sda/queue/iosched/read_expire [new file with mode: 0644]
test/sys/block/sda/queue/iosched/write_batch_expire [new file with mode: 0644]
test/sys/block/sda/queue/iosched/write_expire [new file with mode: 0644]
test/sys/block/sda/queue/nr_requests [new file with mode: 0644]
test/sys/block/sda/range [new file with mode: 0644]
test/sys/block/sda/sda1/dev [new file with mode: 0644]
test/sys/block/sda/sda1/size [new file with mode: 0644]
test/sys/block/sda/sda1/start [new file with mode: 0644]
test/sys/block/sda/sda1/stat [new file with mode: 0644]
test/sys/block/sda/sda2/dev [new file with mode: 0644]
test/sys/block/sda/sda2/size [new file with mode: 0644]
test/sys/block/sda/sda2/start [new file with mode: 0644]
test/sys/block/sda/sda2/stat [new file with mode: 0644]
test/sys/block/sda/sda3/dev [new file with mode: 0644]
test/sys/block/sda/sda3/size [new file with mode: 0644]
test/sys/block/sda/sda3/start [new file with mode: 0644]
test/sys/block/sda/sda3/stat [new file with mode: 0644]
test/sys/block/sda/sda4/dev [new file with mode: 0644]
test/sys/block/sda/sda4/size [new file with mode: 0644]
test/sys/block/sda/sda4/start [new file with mode: 0644]
test/sys/block/sda/sda4/stat [new file with mode: 0644]
test/sys/block/sda/size [new file with mode: 0644]
test/sys/block/sda/stat [new file with mode: 0644]
test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/class [new file with mode: 0644]
test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/device [new file with mode: 0644]
test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/device_blocked [new file with mode: 0644]
test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/model [new file with mode: 0644]
test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/online [new file with mode: 0644]
test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/queue_depth [new file with mode: 0644]
test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/rev [new file with mode: 0644]
test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/scsi_level [new file with mode: 0644]
test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/type [new file with mode: 0644]
test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/host0/0:0:0:0/vendor [new file with mode: 0644]
test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/irq [new file with mode: 0644]
test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/resource [new file with mode: 0644]
test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/subsystem_device [new file with mode: 0644]
test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/subsystem_vendor [new file with mode: 0644]
test/sys/devices/pci0000:00/0000:00:1e.0/0000:02:05.0/vendor [new file with mode: 0644]
test/sys/devices/pci0000:00/0000:00:1e.0/class [new file with mode: 0644]
test/sys/devices/pci0000:00/0000:00:1e.0/device [new file with mode: 0644]
test/sys/devices/pci0000:00/0000:00:1e.0/irq [new file with mode: 0644]
test/sys/devices/pci0000:00/0000:00:1e.0/resource [new file with mode: 0644]
test/sys/devices/pci0000:00/0000:00:1e.0/subsystem_device [new file with mode: 0644]
test/sys/devices/pci0000:00/0000:00:1e.0/subsystem_vendor [new file with mode: 0644]
test/sys/devices/pci0000:00/0000:00:1e.0/vendor [new file with mode: 0644]

diff --git a/test/label_test b/test/label_test
new file mode 100644 (file)
index 0000000..f2208cb
--- /dev/null
@@ -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 (file)
index 0000000..b317537
--- /dev/null
@@ -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 (file)
index 0000000..fae0a50
--- /dev/null
@@ -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 (file)
index 0000000..1e8b314
--- /dev/null
@@ -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 (file)
index 0000000..08839f6
--- /dev/null
@@ -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 (file)
index 0000000..e373ee6
--- /dev/null
@@ -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 (file)
index 0000000..e373ee6
--- /dev/null
@@ -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 (file)
index 0000000..08839f6
--- /dev/null
@@ -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 (file)
index 0000000..a949a93
--- /dev/null
@@ -0,0 +1 @@
+128
diff --git a/test/sys/block/sda/range b/test/sys/block/sda/range
new file mode 100644 (file)
index 0000000..b6a7d89
--- /dev/null
@@ -0,0 +1 @@
+16
diff --git a/test/sys/block/sda/sda1/dev b/test/sys/block/sda/sda1/dev
new file mode 100644 (file)
index 0000000..92c4b9b
--- /dev/null
@@ -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 (file)
index 0000000..f00a592
--- /dev/null
@@ -0,0 +1 @@
+1060227
diff --git a/test/sys/block/sda/sda1/start b/test/sys/block/sda/sda1/start
new file mode 100644 (file)
index 0000000..4b9026d
--- /dev/null
@@ -0,0 +1 @@
+63
diff --git a/test/sys/block/sda/sda1/stat b/test/sys/block/sda/sda1/stat
new file mode 100644 (file)
index 0000000..199ce73
--- /dev/null
@@ -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 (file)
index 0000000..9799a26
--- /dev/null
@@ -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 (file)
index 0000000..80483ab
--- /dev/null
@@ -0,0 +1 @@
+112455
diff --git a/test/sys/block/sda/sda2/start b/test/sys/block/sda/sda2/start
new file mode 100644 (file)
index 0000000..3a4bf07
--- /dev/null
@@ -0,0 +1 @@
+1060290
diff --git a/test/sys/block/sda/sda2/stat b/test/sys/block/sda/sda2/stat
new file mode 100644 (file)
index 0000000..c06b749
--- /dev/null
@@ -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 (file)
index 0000000..44ccff4
--- /dev/null
@@ -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 (file)
index 0000000..1373b38
--- /dev/null
@@ -0,0 +1 @@
+20482875
diff --git a/test/sys/block/sda/sda3/start b/test/sys/block/sda/sda3/start
new file mode 100644 (file)
index 0000000..cab5c33
--- /dev/null
@@ -0,0 +1 @@
+1172745
diff --git a/test/sys/block/sda/sda3/stat b/test/sys/block/sda/sda3/stat
new file mode 100644 (file)
index 0000000..82fb146
--- /dev/null
@@ -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 (file)
index 0000000..aab3fc5
--- /dev/null
@@ -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 (file)
index 0000000..062619c
--- /dev/null
@@ -0,0 +1 @@
+49432005
diff --git a/test/sys/block/sda/sda4/start b/test/sys/block/sda/sda4/start
new file mode 100644 (file)
index 0000000..b65020c
--- /dev/null
@@ -0,0 +1 @@
+21655620
diff --git a/test/sys/block/sda/sda4/stat b/test/sys/block/sda/sda4/stat
new file mode 100644 (file)
index 0000000..3e7b7ad
--- /dev/null
@@ -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 (file)
index 0000000..88da032
--- /dev/null
@@ -0,0 +1 @@
+71096640
diff --git a/test/sys/block/sda/stat b/test/sys/block/sda/stat
new file mode 100644 (file)
index 0000000..b93c7d4
--- /dev/null
@@ -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 (file)
index 0000000..145a550
--- /dev/null
@@ -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 (file)
index 0000000..c271a13
--- /dev/null
@@ -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 (file)
index 0000000..573541a
--- /dev/null
@@ -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 (file)
index 0000000..392039b
--- /dev/null
@@ -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 (file)
index 0000000..d00491f
--- /dev/null
@@ -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 (file)
index 0000000..f5c8955
--- /dev/null
@@ -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 (file)
index 0000000..65dd514
--- /dev/null
@@ -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 (file)
index 0000000..b8626c4
--- /dev/null
@@ -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 (file)
index 0000000..573541a
--- /dev/null
@@ -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 (file)
index 0000000..d87b2a5
--- /dev/null
@@ -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 (file)
index 0000000..2bd5a0a
--- /dev/null
@@ -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 (file)
index 0000000..2a3d654
--- /dev/null
@@ -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 (file)
index 0000000..8419b39
--- /dev/null
@@ -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 (file)
index 0000000..7369ccd
--- /dev/null
@@ -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 (file)
index 0000000..a5d5704
--- /dev/null
@@ -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 (file)
index 0000000..8b40e6a
--- /dev/null
@@ -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 (file)
index 0000000..9fe3927
--- /dev/null
@@ -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 (file)
index 0000000..573541a
--- /dev/null
@@ -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 (file)
index 0000000..f8f56ab
--- /dev/null
@@ -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 (file)
index 0000000..aa01954
--- /dev/null
@@ -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 (file)
index 0000000..aa01954
--- /dev/null
@@ -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 (file)
index 0000000..ce6dc4d
--- /dev/null
@@ -0,0 +1 @@
+0x8086