summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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