File: testsuite_init

package info (click to toggle)
lcov 2.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,464 kB
  • sloc: perl: 27,911; sh: 7,320; xml: 6,982; python: 1,152; makefile: 597; cpp: 520; ansic: 176
file content (47 lines) | stat: -rwxr-xr-x 861 bytes parent folder | download | duplicates (2)
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
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env bash
#
# Copyright IBM Corp. 2017
#
# Usage: testsuite_init
#
# Announce start of test suite and prepare log files.
#

TOPDIR=$(readlink -f $(dirname $0)/..) && test -d "$TOPDIR"\
    && source "$TOPDIR/bin/common"

printf "${BOLD}Starting tests${RESET}\n"
echo "start_time $(date +%s.%N)" >"$COUNTFILE"
exec >"$LOGFILE" 2>&1

t_detail "DATE" "$(t_timestamp)"

t_detail "LCOV" ""
lcov --version 2>&1 | t_indent

t_detail "GCOV" ""
gcov --version 2>&1 | t_indent

case "$OSTYPE" in
    linux*)
	t_detail "CPUINFO" ""
	t_indent < /proc/cpuinfo

	t_detail "MEMINFO" ""
	t_indent < /proc/meminfo
	;;
    darwin*)
	t_detail "CPUINFO" ""
	sysctl machdep.cpu | t_indent

	t_detail "MEMINFO" ""
	vm_stat | t_indent
	;;
    *)
	t_detail "CPUINFO" ""
	echo "unknown cpu info" | t_indent

	t_detail "MEMINFO" ""
	echo "unknown mem info" | t_indent
	;;
esac