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 " ]
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\" " ]