"make check" shouldn't run our testsuite
[mit.git] / tests / test-generate-modprobe.conf / disabled05off.sh
blobfbf62a38a51116a69a05996af1eff1a2c7ce4b50
1 #! /bin/sh
2 # Test conversion of "alias" command when they are for off or null.
4 TESTING_MODPROBE_CONF=tests/tmp/modules.conf
5 export TESTING_MODPROBE_CONF
7 echo 'alias net-pf-1 off' > tests/tmp/modules.conf
8 echo 'alias net-pf-2 null' >> tests/tmp/modules.conf
9 echo 'add alias net-pf-3 off' >> tests/tmp/modules.conf
10 echo 'add alias net-pf-4 null' >> tests/tmp/modules.conf
12 [ "`generate-modprobe.conf > tests/tmp/modprobe.conf 2>&1`" = "" ]
13 [ `grep -v '^#' < tests/tmp/modprobe.conf | wc -l` = 4 ]
14 [ "`grep ^install tests/tmp/modprobe.conf`" = "install net-pf-1 /bin/true
15 install net-pf-2 /bin/true
16 install net-pf-3 /bin/true
17 install net-pf-4 /bin/true" ]