depmod: fix tabs in help output
[module-init-tools.git] / tests / test-insmod / 02simple.sh
blob524851300417efa8296ccd4757c8e794a65158ea
1 #! /bin/sh
3 # If it doesn't exist, kill it.
4 [ "`insmod nonexistent-file 2>&1`" = "insmod: can't read 'nonexistent-file': No such file or directory" ]
6 # Make sure it passes module correctly.
7 SIZE=`wc -c < tests/test-insmod/02simple.sh`
8 [ "`insmod tests/test-insmod/02simple.sh`" = "INIT_MODULE: $SIZE " ]
10 # Check options passed intact.
11 [ "`insmod tests/test-insmod/02simple.sh a`" = "INIT_MODULE: $SIZE a " ]
12 [ "`insmod tests/test-insmod/02simple.sh a b`" = "INIT_MODULE: $SIZE a b " ]