File: check_failures.sh

package info (click to toggle)
nwchem 7.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,134,820 kB
  • sloc: fortran: 4,903,090; ansic: 67,501; f90: 19,555; python: 17,912; java: 12,311; sh: 12,023; cpp: 9,896; perl: 6,123; csh: 4,345; makefile: 1,856; sed: 246; awk: 115; exp: 111; pascal: 76
file content (37 lines) | stat: -rwxr-xr-x 1,129 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
tail -20 $TRAVIS_BUILD_DIR/src/tools/build/config.log
tail -10 $TRAVIS_BUILD_DIR/src/tools/build/comex/config.log
grep -A 2 -B 2 -i error $TRAVIS_BUILD_DIR/src/make.log 
head -200 $TRAVIS_BUILD_DIR/src/make.log
tail -200 $TRAVIS_BUILD_DIR/src/make.log
tail -200 $TRAVIS_BUILD_DIR/src/6log
grep -i tce_energy $TRAVIS_BUILD_DIR/src/6log
# tail output files on failures
check_file () {
    file=$TRAVIS_BUILD_DIR/QA/testoutputs/$1.out
    if [ -f $file ] ; then
	echo ============================================================
	echo $file
	head -2 $file
	echo ============================================================
	tail -260 $file
	echo ============================================================
	grep -s 'l DFT energy' $file |tail
	echo ============================================================
	grep -s 'Total PSPW energy' $file |tail
    fi
}
    
check_file tce_n2
check_file tce_h2o_eomcc
check_file tce_ccsd_t_h2o
check_file dft_he2+
check_file prop_mem_gcube
check_file dft_siosi3
check_file h2o_opt
check_file tddft_h2o
check_file h2o2-response
check_file pspw
check_file pspw_md
check_file aump2