chiark / gitweb /
[PATCH] add big major tests to udev-test.pl
authorgreg@kroah.com <greg@kroah.com>
Sat, 13 Mar 2004 02:00:39 +0000 (18:00 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:35:09 +0000 (21:35 -0700)
test/sys/class/i2c-dev/i2c-fake1/dev [new file with mode: 0644]
test/sys/class/i2c-dev/i2c-fake1/name [new file with mode: 0644]
test/sys/class/i2c-dev/i2c-fake2/dev [new file with mode: 0644]
test/sys/class/i2c-dev/i2c-fake2/name [new file with mode: 0644]
test/udev-test.pl

diff --git a/test/sys/class/i2c-dev/i2c-fake1/dev b/test/sys/class/i2c-dev/i2c-fake1/dev
new file mode 100644 (file)
index 0000000..ab45313
--- /dev/null
@@ -0,0 +1 @@
+4095:1
diff --git a/test/sys/class/i2c-dev/i2c-fake1/name b/test/sys/class/i2c-dev/i2c-fake1/name
new file mode 100644 (file)
index 0000000..ced44c3
--- /dev/null
@@ -0,0 +1 @@
+fake1 dev
diff --git a/test/sys/class/i2c-dev/i2c-fake2/dev b/test/sys/class/i2c-dev/i2c-fake2/dev
new file mode 100644 (file)
index 0000000..d2425b7
--- /dev/null
@@ -0,0 +1 @@
+4094:89999
diff --git a/test/sys/class/i2c-dev/i2c-fake2/name b/test/sys/class/i2c-dev/i2c-fake2/name
new file mode 100644 (file)
index 0000000..b69deec
--- /dev/null
@@ -0,0 +1 @@
+fake2 dev
index 407ecd3..0f623be 100644 (file)
@@ -554,6 +554,26 @@ EOF
 KERNEL="i2c-300", NAME="node"
 EOF
        },
+       {
+               desc            => "big major number test",
+               subsys          => "i2c-dev",
+               devpath         => "class/i2c-dev/i2c-fake1",
+               exp_name        => "node",
+               exp_majorminor  => "4095:1",
+               conf            => <<EOF
+KERNEL="i2c-fake1", NAME="node"
+EOF
+       },
+       {
+               desc            => "big major and big minor number test",
+               subsys          => "i2c-dev",
+               devpath         => "class/i2c-dev/i2c-fake2",
+               exp_name        => "node",
+               exp_majorminor  => "4094:89999",
+               conf            => <<EOF
+KERNEL="i2c-fake2", NAME="node"
+EOF
+       },
 );
 
 # set env