VirtualBox

Ignore:
Timestamp:
Jun 17, 2015 2:19:57 PM (10 years ago)
Author:
vboxsync
Message:

testboxscript/setup.sh: test for core dumps on Ubuntu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testboxscript/setup.sh

    r56295 r56478  
    301301        echo "         requiretty option in /etc/sudoers."
    302302        su - "${TESTBOXSCRIPT_USER}" -c "sudo true"
     303    fi
     304}
     305
     306##
     307# Test if core dumps are enabled. See https://wiki.ubuntu.com/Apport!
     308#
     309test_coredumps() {
     310    if test "`lsb_release -is`" = "Ubuntu"; then
     311        if grep -q "apport" /proc/sys/kernel/core_pattern; then
     312            if grep -q "#.*problem_types" /etc/apport/crashdb.conf; then
     313                echo "It looks like core dumps are properly configured, good!"
     314            else
     315                echo "Warning: Core dumps will be not always generated!"
     316            fi
     317        else
     318            echo "Warning: Apport not installed! This package is required for core dump handling!"
     319        fi
    303320    fi
    304321}
     
    472489maybe_add_testboxscript_user;
    473490test_user;
     491test_coredumps;
    474492
    475493grant_user_testboxscript_write_access;
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