VirtualBox

Ignore:
Timestamp:
May 17, 2011 10:30:26 AM (14 years ago)
Author:
vboxsync
Message:

Installer/linux: refactored udev rule installation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/testcase/tstInstallerLinux.sh

    r37088 r37120  
    2020CERRS=0
    2121
    22 setup_test_install_udev
    23 
    2422echo "Testing udev rule generation for the \".run\" installer"
    2523
    26 TEST_UDEV_VERSION=55
     24setup_test_input_install_udev ".run, udev-55" 55
    2725
    2826udev_55_rules=`cat <<'UDEV_END'
     
    4644esac
    4745
    48 TEST_UDEV_VERSION=54
     46cleanup_test_input_install_udev
     47
     48setup_test_input_install_udev ".run, udev-54" 54
    4949
    5050udev_54_rules=`cat <<'UDEV_END'
     
    7070echo "Testing udev rule generation for the \"package\" installer"
    7171
    72 TEST_UDEV_VERSION=55
     72cleanup_test_input_install_udev
     73
     74setup_test_input_install_udev "package, udev-55" 55
    7375
    7476udev_55_rules=`cat <<'UDEV_END'
     
    9294esac
    9395
    94 TEST_UDEV_VERSION=54
     96cleanup_test_input_install_udev
     97
     98setup_test_input_install_udev "package, udev-54" 54
    9599
    96100udev_54_rules=`cat <<'UDEV_END'
     
    114118esac
    115119
     120cleanup_test_input_install_udev
     121
     122setup_test_input_install_udev "package, no udev" 54
     123INSTALL_NO_UDEV=1
     124
     125install_udev_output="`install_udev_package root`"
     126case "$install_udev_output" in
     127    "") ;;
     128    *)
     129        echo "Bad output for udev version 54.  Expected:"
     130        echo "$udev_54_rules"
     131        echo "Actual:"
     132        echo "$install_udev_output"
     133        CERRS="`expr "$CERRS" + 1`"
     134        ;;
     135esac
     136
     137cleanup_test_input_install_udev
     138INSTALL_NO_UDEV=
     139
    116140echo "Done.  Error count $CERRS."
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette