From 7d12d4e175eececfc6956e99438f7c1ddd6b85eb Mon Sep 17 00:00:00 2001 From: "greg@kroah.com" Date: Fri, 12 Mar 2004 18:00:39 -0800 Subject: [PATCH] [PATCH] add big major tests to udev-test.pl --- test/sys/class/i2c-dev/i2c-fake1/dev | 1 + test/sys/class/i2c-dev/i2c-fake1/name | 1 + test/sys/class/i2c-dev/i2c-fake2/dev | 1 + test/sys/class/i2c-dev/i2c-fake2/name | 1 + test/udev-test.pl | 20 ++++++++++++++++++++ 5 files changed, 24 insertions(+) create mode 100644 test/sys/class/i2c-dev/i2c-fake1/dev create mode 100644 test/sys/class/i2c-dev/i2c-fake1/name create mode 100644 test/sys/class/i2c-dev/i2c-fake2/dev create mode 100644 test/sys/class/i2c-dev/i2c-fake2/name 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 00000000..ab453138 --- /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 00000000..ced44c39 --- /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 00000000..d2425b70 --- /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 00000000..b69deec2 --- /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 407ecd3b..0f623be0 100644 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -552,6 +552,26 @@ EOF exp_majorminor => "89:300", conf => < "big major number test", + subsys => "i2c-dev", + devpath => "class/i2c-dev/i2c-fake1", + exp_name => "node", + exp_majorminor => "4095:1", + conf => < "big major and big minor number test", + subsys => "i2c-dev", + devpath => "class/i2c-dev/i2c-fake2", + exp_name => "node", + exp_majorminor => "4094:89999", + conf => <