Add test for depmod using search dirs with same prefix
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 19 Mar 2014 12:15:59 +0000 (09:15 -0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 19 Mar 2014 12:22:20 +0000 (09:22 -0300)
commitad7f1757c03122506525c90d3d519a38aa1ceac2
tree3a0555b940fcada688795cdf397bd53bdd8ff0ed
parent49b33c1f215d5d58838845cbbaefc007bd0f9ac7
Add test for depmod using search dirs with same prefix

Test depmod with search dirs "foo" and "foobar". Previously to 49b33c1
("depmod: do not allow partial matches with "search" directive") we were
failing this test due to matching the prefix without checking if
it's the full dir name.

We are adding 2 tests here in order to catch the case we only pass the
test due to processing the directories in a favourable order.
testsuite/rootfs-pristine/test-depmod/search-order-same-prefix/etc/depmod.d/search.conf [new file with mode: 0644]
testsuite/rootfs-pristine/test-depmod/search-order-same-prefix/lib/modules/4.4.4/correct-modules.dep [new file with mode: 0644]
testsuite/rootfs-pristine/test-depmod/search-order-same-prefix/lib/modules/4.4.4/foo/md5.ko.gz [new file with mode: 0644]
testsuite/rootfs-pristine/test-depmod/search-order-same-prefix/lib/modules/4.4.4/foobar/md5.ko.gz [new file with mode: 0644]
testsuite/rootfs-pristine/test-depmod/search-order-same-prefix2/etc/depmod.d/search.conf [new file with mode: 0644]
testsuite/rootfs-pristine/test-depmod/search-order-same-prefix2/lib/modules/4.4.4/correct-modules.dep [new file with mode: 0644]
testsuite/rootfs-pristine/test-depmod/search-order-same-prefix2/lib/modules/4.4.4/foo/md5.ko.gz [new file with mode: 0644]
testsuite/rootfs-pristine/test-depmod/search-order-same-prefix2/lib/modules/4.4.4/foobar/md5.ko.gz [new file with mode: 0644]
testsuite/test-depmod.c