]> err.no Git - systemd/commitdiff
[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 407ecd3b5bc5c92bbd6f9b318d98e535e7fb0eb8..0f623be0d39ee24405b431f059014be7c6e77ced 100644 (file)
@@ -552,6 +552,26 @@ EOF
                exp_majorminor  => "89:300",
                conf            => <<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
        },
 );