summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-03-12 18:00:39 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:35:09 -0700
commit7d12d4e175eececfc6956e99438f7c1ddd6b85eb (patch)
tree798e548ff47432065b9522e99b9374e221130d19 /test
parenta5e8d2b4a312b43a295e8f022dd10034b3572125 (diff)
[PATCH] add big major tests to udev-test.pl
Diffstat (limited to 'test')
-rw-r--r--test/sys/class/i2c-dev/i2c-fake1/dev1
-rw-r--r--test/sys/class/i2c-dev/i2c-fake1/name1
-rw-r--r--test/sys/class/i2c-dev/i2c-fake2/dev1
-rw-r--r--test/sys/class/i2c-dev/i2c-fake2/name1
-rw-r--r--test/udev-test.pl20
5 files changed, 24 insertions, 0 deletions
diff --git a/test/sys/class/i2c-dev/i2c-fake1/dev b/test/sys/class/i2c-dev/i2c-fake1/dev
new file mode 100644
index 0000000000..ab453138aa
--- /dev/null
+++ b/test/sys/class/i2c-dev/i2c-fake1/dev
@@ -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
index 0000000000..ced44c39d4
--- /dev/null
+++ b/test/sys/class/i2c-dev/i2c-fake1/name
@@ -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
index 0000000000..d2425b701a
--- /dev/null
+++ b/test/sys/class/i2c-dev/i2c-fake2/dev
@@ -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
index 0000000000..b69deec2bf
--- /dev/null
+++ b/test/sys/class/i2c-dev/i2c-fake2/name
@@ -0,0 +1 @@
+fake2 dev
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 407ecd3b5b..0f623be0d3 100644
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -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