File: 02simple.sh

package info (click to toggle)
module-init-tools 3.12-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 4,296 kB
  • ctags: 1,264
  • sloc: sh: 7,010; ansic: 6,584; makefile: 1,114
file content (12 lines) | stat: -rwxr-xr-x 487 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/sh

# If it doesn't exist, kill it.
[ "`insmod nonexistent-file 2>&1`" = "insmod: can't read 'nonexistent-file': No such file or directory" ]

# Make sure it passes module correctly.
SIZE=`wc -c < tests/test-insmod/02simple.sh`
[ "`insmod tests/test-insmod/02simple.sh`" = "INIT_MODULE: $SIZE " ]

# Check options passed intact.
[ "`insmod tests/test-insmod/02simple.sh a`" = "INIT_MODULE: $SIZE a " ]
[ "`insmod tests/test-insmod/02simple.sh a b`" = "INIT_MODULE: $SIZE a b " ]