aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2011-12-12Fix "Dead assignments" as reported by llvmLucas De Marchi
2011-12-12Do not use config if it's not needed/wantedLucas De Marchi
2011-12-12Rename kmod_loaded_get_list() to kmod_module_new_from_loaded()Lucas De Marchi
Be consistent with other similar functions already present and improve documentation.
2011-12-11API-BREAK: kmod_new() takes a second parameter for configuration directory.Gustavo Sverzut Barbieri
This is required by modprobe and also to help doing unit tests in future.
2011-12-11add lsmod, insmod and rmmod tools.Gustavo Sverzut Barbieri
these tools are compatible with module-init-tools (except insmod does not take data from stdin).
2011-12-11insmod: allows providing option to module.Gustavo Sverzut Barbieri
2011-12-11export module's options and commands.Gustavo Sverzut Barbieri
This will be required to implement modprobe later. The implementation follows "man modprobe.conf" and allows options to be specified for alias as well, thus the need for kmod_resolve_alias_options(). Example mod-a.conf: options mod-a a=1 b=2 options mod-a c=3 alias mymod-a mod-a options mymod-a d=4 Results in: options mod-a a=1 b=2 c=3 options mymod-a a=1 b=2 c=3 d=4 Install commands are being concatenated with ";", but manpage is not clean about this behavior.
2011-12-10test-lookup: allow loading resources for testing.Gustavo Sverzut Barbieri
2011-12-08add kmod_module_get_filtered_blacklist()Gustavo Sverzut Barbieri
This function will filter the given list against the known blacklist, returning a new list with remaining modules with the reference incremented.
2011-12-08test-insmod: show the path libkmod is usingLucas De Marchi
2011-12-08test-insmod: print name to test modname_normalize().Gustavo Sverzut Barbieri
2011-12-06test: add test for modules' hashLucas De Marchi
2011-12-06test: add test to get dependencies of a moduleLucas De Marchi
2011-12-06test: add test to convert name to pathLucas De Marchi
If we create a kmod_module from a name, the path returned is relative to the module dirname, as passed during kmod_ctx creation. Note that if kmod_ctx is created with kmod_new(NULL), the dir used is the one returned by uname.
2011-12-05tests: release memory before error exits.Gustavo Sverzut Barbieri
this makes it easier to valgrind the error cases as well.
2011-12-04no more kmod_loaded and kmod_loaded_module.Gustavo Sverzut Barbieri
kmod_loaded_get_list() now returns a regular list of kmod_modules, use kmod_module_get_module(), kmod_module_unref() and kmod_module_unref_list() to operate on it.
2011-12-02Clean 'shadowed declaration' warningsLucas De Marchi
2011-11-30Add test for lookup functionLucas De Marchi
2011-11-25Add test-insmod to insert modulesLucas De Marchi
Insmod is supported only with file names yet.
2011-11-25Add test-rmmod2Lucas De Marchi
Remove module without dealing with the loaded modules first.
2011-11-24Accept dir where we should lookup for modulesLucas De Marchi
2011-11-23Add binary to test rmmod featureLucas De Marchi
It doesn't run with `make check' since o It's dangerous o It needs to be run as root o It needs an argument, otherwise it removes the first module with use_count==0
2011-11-23Add libkmod-loaded to handle live modules informationLucas De Marchi
All the functions needed by a lsmod binary are in place. test/test-loaded.c implements it with the same output of lsmod.
2011-11-22Put test backLucas De Marchi