Lines Matching refs:rules

12 # udev parses the rules, looks at the provided sysfs and
30 my $udev_rules_dir = "$udev_run/udev/rules.d";
31 my $udev_rules = "$udev_rules_dir/udev-test.rules";
36 desc => "no rules",
40 rules => <<EOF
48 rules => <<EOF
57 rules => <<EOF
66 rules => <<EOF
75 rules => <<EOF
83 rules => <<EOF
94 rules => <<EOF
103 rules => <<EOF
112 rules => <<EOF
120 rules => <<EOF
129 rules => <<EOF
139 rules => <<EOF
149 rules => <<EOF
157 rules => <<EOF
167 rules => <<EOF
177 rules => <<EOF
192 rules => <<EOF
202 rules => <<EOF
212 rules => <<EOF
220 rules => <<EOF
238 rules => <<EOF
246 rules => <<EOF
254 rules => <<EOF
262 rules => <<EOF
271 rules => <<EOF
281 rules => <<EOF
290 rules => <<EOF
298 rules => <<EOF
306 rules => <<EOF
314 rules => <<EOF
322 rules => <<EOF
330 rules => <<EOF
338 rules => <<EOF
346 rules => <<EOF
354 rules => <<EOF
362 rules => <<EOF
370 rules => <<EOF
378 rules => <<EOF
386 rules => <<EOF
395 rules => <<EOF
404 rules => <<EOF
413 rules => <<EOF
424 rules => <<EOF
437 rules => <<EOF
447 rules => <<EOF
455 rules => <<EOF
466 rules => <<EOF
474 rules => <<EOF
486 rules => <<EOF
498 rules => <<EOF
507 rules => <<EOF
516 rules => <<EOF
524 rules => <<EOF
532 rules => <<EOF
540 rules => <<EOF
550 rules => <<EOF
559 rules => <<EOF
568 rules => <<EOF
577 rules => <<EOF
586 rules => <<EOF
595 rules => <<EOF
604 rules => <<EOF
613 rules => <<EOF
622 rules => <<EOF
631 rules => <<EOF
640 rules => <<EOF
649 rules => <<EOF
658 rules => <<EOF
669 rules => <<EOF
682 rules => <<EOF
695 rules => <<EOF
704 rules => <<EOF
713 rules => <<EOF
721 rules => <<EOF
730 rules => <<EOF
738 rules => <<EOF
746 rules => <<EOF
756 rules => <<EOF
767 rules => <<EOF
775 rules => <<EOF
783 rules => <<EOF
791 rules => <<EOF
799 rules => <<EOF
807 rules => <<EOF
815 rules => <<EOF
823 rules => <<EOF
831 rules => <<EOF
839 rules => <<EOF
847 rules => <<EOF
855 rules => <<EOF
863 rules => <<EOF
873 rules => <<EOF
882 rules => <<EOF
890 rules => <<EOF
898 rules => <<EOF
906 rules => <<EOF
915 rules => <<EOF
925 rules => <<EOF
935 rules => <<EOF
944 rules => <<EOF
955 rules => <<EOF
967 rules => <<EOF
978 rules => <<EOF
990 rules => <<EOF
1002 rules => <<EOF
1010 rules => <<EOF
1018 rules => <<EOF
1026 rules => <<EOF
1034 rules => <<EOF
1045 rules => <<EOF
1055 rules => <<EOF
1065 rules => <<EOF
1075 rules => <<EOF
1084 rules => <<EOF
1095 rules => <<EOF
1105 rules => <<EOF
1114 rules => <<EOF
1124 rules => <<EOF
1135 rules => <<EOF
1148 rules => <<EOF
1158 rules => <<EOF
1166 rules => <<EOF
1180 rules => <<EOF
1191 rules => <<EOF
1201 rules => <<EOF
1210 rules => <<EOF
1218 rules => <<EOF
1229 rules => <<EOF
1237 rules => <<EOF
1246 rules => <<EOF
1254 rules => <<EOF
1262 rules => <<EOF
1272 rules => <<EOF
1282 rules => <<EOF
1293 rules => <<EOF
1303 rules => <<EOF
1313 rules => <<EOF
1321 my ($action, $devpath, $rules) = @_;
1323 # create temporary rules
1325 open CONF, ">$udev_rules" || die "unable to create rules file: $udev_rules";
1326 print CONF $$rules;
1341 my($rules, $uid, $gid, $mode) = @_;
1347 $rules->{exp_perms} =~ m/^(.*):(.*):(.*)$/;
1379 my($rules, $rdev) = @_;
1385 $rules->{exp_majorminor} =~ m/^(.*):(.*)$/;
1415 my ($rules, $number) = @_;
1417 print "TEST $number: $rules->{desc}\n";
1418 print "device \'$rules->{devpath}\' expecting node/link \'$rules->{exp_name}\'\n";
1420 udev("add", $rules->{devpath}, \$rules->{rules});
1421 if (defined($rules->{not_exp_name})) {
1422 if ((-e "$udev_dev/$rules->{not_exp_name}") ||
1423 (-l "$udev_dev/$rules->{not_exp_name}")) {
1424 print "nonexistent: error \'$rules->{not_exp_name}\' not expected to be there\n";
1430 if ((-e "$udev_dev/$rules->{exp_name}") ||
1431 (-l "$udev_dev/$rules->{exp_name}")) {
1434 $atime, $mtime, $ctime, $blksize, $blocks) = stat("$udev_dev/$rules->{exp_name}");
1436 if (defined($rules->{exp_perms})) {
1437 permissions_test($rules, $uid, $gid, $mode);
1439 if (defined($rules->{exp_majorminor})) {
1440 major_minor_test($rules, $rdev);
1445 if ($rules->{exp_add_error}) {
1456 if (defined($rules->{option}) && $rules->{option} eq "keep") {
1461 udev("remove", $rules->{devpath}, \$rules->{rules});
1462 if ((-e "$udev_dev/$rules->{exp_name}") ||
1463 (-l "$udev_dev/$rules->{exp_name}")) {
1465 if ($rules->{exp_rem_error}) {
1480 if (defined($rules->{option}) && $rules->{option} eq "clean") {
1530 foreach my $rules (@tests) {
1531 run_test($rules, $test_num);