source: /cluster/svnroot/bccd-ng/branches/skylar/bccd-3.4.0/bin/test-3.3.0 @ 5000

Last change on this file since 5000 was 5000, checked in by skylar, 6 years ago

removing other references to intelcc re #872

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1#!/bin/bash
2
3set -eo pipefail
4
5trap '/bin/rm -f ${TEMP_R_SCRIPT}' INT TERM EXIT ERR
6
7RC=0
8
9if [[ "$(cat /etc/bccd-stage)" = "LIVE" ]]; then
10    # #780
11    if [[ -d /etc/vim ]] && [[ $(ls /etc/vim|wc -l) -gt 0 ]]; then
12        echo "#780 passed - /etc/vim files exist"
13    else
14        echo "#780 failed"
15        RC=$((RC+1))
16    fi
17
18    # #786
19    if groups|grep -q video; then
20        echo "#786 passed - bccd user in video group"
21    else
22        echo "#786 failed"
23        RC=$((RC+1))
24    fi
25
26    # #790
27    module purge && module load modules openmpi pypar mpi4py
28    if python -c 'import mpi4py'; then
29        echo "#790 passed - mpi4py"
30        echo "#795 passed"
31    else
32        echo "#790 failed - mpi4py"
33        RC=$((RC+1))
34    fi
35
36    if python -c 'import pypar'; then
37        echo "#790 passed - pypar"
38    else
39        echo "#790 failed - pypar"
40        RC=$((RC+1))
41    fi
42
43    # #788
44    TEMP_R_SCRIPT=$(mktemp /tmp/temp_XXXXX.R)
45    cat > ${TEMP_R_SCRIPT} <<R_HELLO
46cat('Hello, world!\n')
47R_HELLO
48    module purge && module load modules openmpi R
49    if R CMD BATCH ${TEMP_R_SCRIPT}; then
50        echo "#788 passed - R"
51    else
52        echo "#788 failed"
53        RC=$((RC+1))
54    fi
55
56    # #794
57    module purge && module load modules papi
58    if papi_avail > /dev/null; then
59        echo "#794 passed"
60    else
61        echo "#794 failed"
62        RC=$((RC+1))
63    fi
64
65    # #781
66    if sudo sh -c "rm -f /root/machines-openmpi && bccd-snarfhosts && test -f /root/machines-openmpi"; then
67        echo "#781 passed"
68    else
69        echo "#781 failed"
70        RC=$((RC+1))
71    fi
72
73    # #666
74    if sensors > /dev/null ;then
75        echo "#666 passed"
76    else
77        echo "#666 failed"
78        RC=$((RC+1))
79    fi
80
81    # #803
82    module purge && module load modules openmpi
83    if [[ -d "${HOME}/HPL-benchmark/hpl-2.0" ]]; then
84        /bin/rm -fr ${HOME}/HPL-benchmark/hpl-2.0
85    fi
86    if make -C ~/HPL-benchmark > /dev/null; then
87        echo "#803 passed"
88    else
89        echo "#803 failed"
90        RC=$((RC+1))
91    fi
92
93    # #802
94    if sudo modprobe r8168; then
95        echo "#802 passed"
96    else
97        echo "#802 failed"
98        RC=$((RC+1))
99    fi
100
101    # #822
102    if ! sudo grep -q t-voc /var/log/*; then
103        echo "#822 passed"
104    else
105        echo "#822 failed"
106        RC=$((RC+1))
107    fi
108
109    # #823
110    if [[ ! -d "${HOME}/Molecular-dynamicss/NAMD" ]]; then
111        echo "#823 passed"
112    else
113        echo "#823 failed"
114        RC=$((RC+1))
115    fi
116
117    # CUDA
118    module purge && module load modules openmpi cuda
119    if make -C ~/CUDA > /dev/null && ~/CUDA/device-query > /dev/null; then
120        echo "CUDA works"
121    else
122        echo "CUDA fails"
123        RC=$((RC+1))
124    fi
125elif [[ "$(cat /etc/bccd-stage)" = "LIBERATED" ]]; then
126    for MPI in mpich2 openmpi; do
127        module purge && module load modules ${MPI}
128        bccd-snarfhosts
129
130        for DIR in ${HOME}/{GalaxSee,Life}; do
131            make -C ${DIR} clean > /dev/null
132            if make -j3 -C ${DIR} > /dev/null; then
133                echo "Built ${DIR} w/ ${MPI}"
134            else
135                echo "${DIR} w/ ${MPI} failed"
136                RC=$((RC+1))
137            fi
138        done
139    done
140fi
141
142exit ${RC}
Note: See TracBrowser for help on using the repository browser.