History log of /external/kmod/testsuite/test-depmod.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2a38870e3da60438ab4548846a1b639be6504338 19-Feb-2015 Lucas De Marchi <lucas.demarchi@intel.com> testsuite: port modules-order-compressed to module-playground
/external/kmod/testsuite/test-depmod.c
dea2dfee9b301da84dbb09cf510b8ebf2ef28fff 26-Dec-2014 Lucas De Marchi <lucas.demarchi@intel.com> Remove FSF mailing address

It has changed in the past, and these days, anyone can get a copy of the
LGPL via the web rather than by post.

Like 657a122 (Remove FSF mailing address) in libabc by Josh Tripplet,
but let the FSF website in which the license can be found.
/external/kmod/testsuite/test-depmod.c
4328982058bd6840518ff552a0405bf8f9d73909 09-Oct-2014 Lucas De Marchi <lucas.demarchi@intel.com> testsuite: remove now unused array of tests

Remove the arrays and let each test with a guaranteed unique name.
/external/kmod/testsuite/test-depmod.c
f1155c1574b07c1e63cc6a06d51b32bc44bebcc3 09-Oct-2014 Lucas De Marchi <lucas.demarchi@intel.com> Move static keyword to DEFINE_TEST macro
/external/kmod/testsuite/test-depmod.c
c2e4286bb98c6bec77575ac0c6f862e7ddf6394f 03-Oct-2014 Lucas De Marchi <lucas.demarchi@intel.com> Reorder and reorganize header files

Let the includes in the following order:

< system headers >
< libkmod >
< tool >
< local headers >
/external/kmod/testsuite/test-depmod.c
7a2d0e6187b37d3f7f5f5153018695d35740afa2 30-May-2014 Lucas De Marchi <lucas.demarchi@intel.com> testsuite: check for correct error message in detect-loop
/external/kmod/testsuite/test-depmod.c
8183cfa9dac9216e4f50b2fb33a22ae0eac233e9 30-May-2014 Lucas De Marchi <lucas.demarchi@intel.com> testsuite: add test to fail depmod on module loops
/external/kmod/testsuite/test-depmod.c
3e68b2c4556020c0c3327641de1bafeaec51b56e 06-Apr-2014 Lucas De Marchi <lucas.demarchi@intel.com> testsuite: Remove duplicate test

This partially reverts ad7f175 ("Add test for depmod using search dirs
with same prefix"). Testing it twice in the inverted order doesn't
ensure we get the bug with wrong ordering.

As put by Anssi Hannula <anssi@mageia.org>:

So the bug is triggered only if the shorter name is higher-prio _and_
shorter name is traversed first. If the long name is traversed first,
the bug don't trigger with either "search" directive order (and on my
"make check" runs this is the case).
/external/kmod/testsuite/test-depmod.c
81bf88d6c4a6897ae2700cd5fd4f801906c96f33 04-Apr-2014 Michal Marek <mmarek@suse.cz> testsuite: Do not run tests with *.ko.gz if zlib is not enabled
/external/kmod/testsuite/test-depmod.c
ad7f1757c03122506525c90d3d519a38aa1ceac2 19-Mar-2014 Lucas De Marchi <lucas.demarchi@intel.com> 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.
/external/kmod/testsuite/test-depmod.c
aa0abec721707da6cad794a1bf6da9ecdcefbe88 19-Mar-2014 Lucas De Marchi <lucas.demarchi@intel.com> Add test for simple search order in depmod
/external/kmod/testsuite/test-depmod.c
d96ca9c42930a2a0942b807b9afb3053f38ec9b9 17-Dec-2013 Lucas De Marchi <lucas.demarchi@intel.com> Use C11's noreturn

Also define noreturn w/o <stdnoreturn.h> and move it to macro.h instead
of in the testsuite.

Based on similar commit on systemd by Shawn Landden
<shawn@churchofgit.com>.
/external/kmod/testsuite/test-depmod.c
b6adccd6ff819b8befc48ede41a13f2201dce443 04-Jul-2013 Lucas De Marchi <lucas.demarchi@intel.com> tools: Do not link dynamically with libkmod

Instead of linking dynamically with libkmod, use libkmod-private.la. We
disallow creating a static libkmod because we can't hide symbols there
and it cause problems with external programs. However this should not
prevent users that are only interested in the tools we provide not being
able to ship only them keeping the library alone.

Other projects also do this to allow our tools to use certain functions
that should not be used outside of the project.
/external/kmod/testsuite/test-depmod.c
9de9e07da6ce6fc110b4359ff058b13b5e92dcf4 03-Jul-2013 Lucas De Marchi <lucas.demarchi@intel.com> tools: Use test/kmod instead of kmod-nolib

The reason to have a kmod-nolib binary is that we need to call kmod on
test cases (or a symlink to it) and for testing things in tree. Since
we are using libtool if we are dinamically linking to libkmod what we
end up having is a shell script that (depending on the version *)
changes argv[0] to contain an "lt-" prefix. Since this screws with our
compat stuff, we had a kmod-nolib that links statically.

This all workaround works fine iff we are using one of the compat
commands, i.e. we are using the symlinks insmod, rmmod, modprobe, etc.
However if we are actually trying the kmod binary, this doesn't work
because we can't create a kmod symlink since there's already a kmod
binary.

So, completely give up on libtool fixing their mess. Now we create a
tool/test/ directory and the symlinks and kmod is put there.

* http://lists.gnu.org/archive/html/bug-libtool/2011-12/msg00023.html
/external/kmod/testsuite/test-depmod.c
e6b0e49b4ea7937a98b16f23d621244ee1a3e588 16-Jan-2013 Lucas De Marchi <lucas.demarchi@profusion.mobi> Update copyright notices
/external/kmod/testsuite/test-depmod.c
b0c9fc85a26b89f4a12bdd87ede33917f9b33fd0 04-Oct-2012 Lucas De Marchi <lucas.de.marchi@gmail.com> testsuite: add depmod test for modules.alias

Check if modules.alias is correctly generated from modules.order if we
have compressed modules.
/external/kmod/testsuite/test-depmod.c