Changeset 4840 in /cluster/svnroot


Ignore:
Timestamp:
Jul 29, 2014 10:49:11 PM (6 years ago)
Author:
skylar
Message:

adding fresh bccd-test-suite (#866,#867)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/branches/skylar/bccd-3.3.2/trees/bin/bccd-test-suite

    r4751 r4840  
    1919
    2020# LIVE
    21 if [[ "$(cat /etc/bccd-stage)" = "LIVE" ]]; then
     21if [ "$(cat /etc/bccd-stage)" = "LIVE" ]; then
    2222
    2323    # #567
    24     if [[ -f "/lib/modules/$(uname -r)/kernel/drivers/video/nvidia.ko" ]]; then
     24    if [ -f "/lib/modules/$(uname -r)/kernel/drivers/video/nvidia.ko" ]; then
    2525        echo "#567 passed"
    2626    else
     
    3838
    3939    # #658
    40     if [[ -f "/lib/modules/$(uname -r)/kernel/drivers/net/usb/asix.ko" ]]; then
     40    if [ -f "/lib/modules/$(uname -r)/kernel/drivers/net/usb/asix.ko" ]; then
    4141        echo "#658 passed"
    4242    else
     
    5454
    5555    # #771
    56     if [[ -f /bin/bccd-shutdown ]]; then
     56    if [ -f /bin/bccd-shutdown ]; then
    5757        echo "#771 passed";
    5858    else
     
    6262
    6363    # #780
    64     if [[ -d /etc/vim ]] && [[ $(ls /etc/vim|wc -l) -gt 0 ]]; then
     64    if [ -d /etc/vim ] && [ $(ls /etc/vim|wc -l) -gt 0 ]; then
    6565        echo "#780 passed - /etc/vim files exist"
    6666    else
     
    154154
    155155    # #811
    156     if [[ -d ~/Community-Modules/UMW/cpumon ]]; then
     156    if [ -d ~/Community-Modules/UMW/cpumon ]; then
    157157        echo "#811 passed";
    158158    else
     
    186186
    187187    # #822
    188     if [[ "$(count_tvoc_logs)" = "0" ]]; then
     188    if [ "$(count_tvoc_logs)" = "0" ]; then
    189189        echo "#822 passed"
    190190    else
     
    194194
    195195    # #823
    196     if [[ ! -d "${HOME}/Molecular-dynamicss/NAMD" ]]; then
     196    if [ ! -d "${HOME}/Molecular-dynamicss/NAMD" ]; then
    197197        echo "#823 passed"
    198198    else
     
    202202
    203203    # #825
    204     if [[ -d /var/log/apache2 ]]; then
     204    if [ -d /var/log/apache2 ]; then
    205205        echo "#825 passed"
    206206    else
     
    279279
    280280    # ASROCK USB support (#853)
    281     if [[ -f /lib/modules/$(uname -r)/kernel/drivers/usb/host/xhci-hcd.ko
    282 ]]; then
     281    if [ -f /lib/modules/$(uname -r)/kernel/drivers/usb/host/xhci-hcd.ko ]; then
    283282        echo "ASROCK USB support passed"
    284283    else
     
    287286    fi
    288287
     288    # sudo mail disabled (#866)
     289    if sudo egrep -q 'Defaults[[:space:]][[:space:]]*!mail_no_user' /etc/sudoers; then
     290        echo "sudoers mail passed"
     291    else
     292        echo "sudoers mail FAILED"
     293        RC=$((RC+1))
     294    fi
     295
     296    # cron email disabled (#867)
     297    CRON_EMAIL=0
     298    for f in /etc/cron.d/*;do
     299        if /usr/bin/head -1 ${f}|egrep -q '^# \$Id:'; then
     300            if ! egrep -q 'MAILTO=""' ${f}; then
     301                CRON_EMAIL=1
     302            fi
     303        fi
     304    done
     305    if [ ${CRON_EMAIL} -eq 0 ]; then
     306        echo "cron email disabled passed"
     307    else
     308        echo "cron email disabled FAILED"
     309    fi
     310
     311
    289312# LIBERATED
    290 elif [[ "$(cat /etc/bccd-stage)" = "LIBERATED" ]]; then
     313elif [ "$(cat /etc/bccd-stage)" = "LIBERATED" ]; then
    291314    for MPI in mpich2 openmpi; do
    292315        module purge && module load modules intelcc ${MPI}
Note: See TracChangeset for help on using the changeset viewer.