depmod: export static device node information to modules.devname
[mit.git] / tests / test-insmod / 03options.sh
blobb120564f4a0273651a9b8bd398d7fae1d60ee721
1 #! /bin/sh
3 SIZE=`wc -c < tests/test-insmod/02simple.sh`
4 # Old options are ignored.
5 [ "`insmod -p tests/test-insmod/02simple.sh`" = "INIT_MODULE: $SIZE " ]
6 [ "`insmod -s tests/test-insmod/02simple.sh`" = "INIT_MODULE: $SIZE " ]
7 [ "`insmod -f tests/test-insmod/02simple.sh`" = "INIT_MODULE: $SIZE " ]
8 [ "`insmod -p -f -s tests/test-insmod/02simple.sh`" = "INIT_MODULE: $SIZE " ]
10 # --version and -v
11 VERSION=`grep ^VERSION tests/build/Makefile | sed 's/.*=[ ]*//'`
12 [ "`insmod -V`" = "module-init-tools version $VERSION" ]
13 [ "`insmod --version`" = "module-init-tools version $VERSION" ]
15 # Don't try to quote or anything: we're not smart enough.
16 [ "`insmod tests/test-insmod/02simple.sh 'foo="baz bar"'`" = "INIT_MODULE: $SIZE foo=\"baz bar\" " ]