]> git.ipfire.org Git - thirdparty/kmod.git/commit
tools: Use test/kmod instead of kmod-nolib
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 3 Jul 2013 00:03:20 +0000 (21:03 -0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 3 Jul 2013 00:15:54 +0000 (21:15 -0300)
commit9de9e07da6ce6fc110b4359ff058b13b5e92dcf4
treec83930685042d3b4c0ba68cd5c21d00355f2eae8
parenta5cbde4bcea66e80418bada4e0aedbc26713e5ed
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
Makefile.am
testsuite/test-depmod.c
testsuite/test-modinfo.c
testsuite/test-modprobe.c
tools/.gitignore