"make check" shouldn't run our testsuite
[mit.git] / tests / test-generate-modprobe.conf / disabled01above.sh
blob97e3281311c503747a44d0252f4c9ef13357d486
1 #! /bin/sh
2 # Test conversion of "above" command.
4 # Single arg.
5 echo 'above scsi_mod ide-scsi' > tests/tmp/modules.conf
7 TESTING_MODPROBE_CONF=tests/tmp/modules.conf
8 export TESTING_MODPROBE_CONF
10 [ "`./generate-modprobe.conf > tests/tmp/modprobe.conf 2>&1`" = "" ]
12 #[ `grep -v '^#' < tests/tmp/modprobe.conf | wc -l` = 2 ]
14 [ "`grep ^install tests/tmp/modprobe.conf`" = "install scsi_mod /sbin/modprobe --first-time --ignore-install scsi_mod && { /sbin/modprobe ide-scsi; /bin/true; }" ]
16 [ "`grep ^remove tests/tmp/modprobe.conf`" = "remove scsi_mod { /sbin/modprobe -r ide-scsi; } ; /sbin/modprobe -r --first-time --ignore-remove scsi_mod" ]
18 # Multiple arg.
19 echo 'above mod a b c' > tests/tmp/modules.conf
21 [ "`generate-modprobe.conf > tests/tmp/modprobe.conf 2>&1`" = "" ]
23 [ `grep -v '^#' < tests/tmp/modprobe.conf | wc -l` = 2 ]
25 [ "`grep ^install tests/tmp/modprobe.conf`" = "install mod /sbin/modprobe --first-time --ignore-install mod && { /sbin/modprobe a; /sbin/modprobe b; /sbin/modprobe c; /bin/true; }" ]
27 [ "`grep ^remove tests/tmp/modprobe.conf`" = "remove mod { /sbin/modprobe -r a; /sbin/modprobe -r b; /sbin/modprobe -r c; } ; /sbin/modprobe -r --first-time --ignore-remove mod" ]
29 # This matches with test-modprobe/22recursiveinstall.sh
30 echo 'add above ip_conntrack ip_conntrack_ftp' > tests/tmp/modules.conf
32 [ "`generate-modprobe.conf > tests/tmp/modprobe.conf 2>&1`" = "" ]
34 [ `grep -v '^#' < tests/tmp/modprobe.conf | wc -l` = 2 ]
36 [ "`grep ^install tests/tmp/modprobe.conf`" = "install ip_conntrack /sbin/modprobe --first-time --ignore-install ip_conntrack && { /sbin/modprobe ip_conntrack_ftp; /bin/true; }" ]