summaryrefslogtreecommitdiffstatsci
path: root/utils/system_description.sh
blob: 23f3de4440ea781ef432375f8bccbadcfce15039 (plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/bash

export DISPLAY=:0 

. /etc/lsb-release

cpu=$(grep ^model\ name /proc/cpuinfo | head -n1 | cut -d: -f2)
xserver_version=$(/usr/bin/Xorg -version |& grep ^xorg-server | cut -d' ' -f2)
mesa_version=$(glxinfo  | grep "OpenGL version")
xpci=$(xpci)
kernel=$(uname -r)
platform=$(uname -po)

cat <<EOF
System
------------------------------------------------------------------------
cpu:            ${cpu}
platform:       ${platform}
distribution:   ${DISTRIB_DESCRIPTION}
linux kernel:   ${kernel}
xserver:        ${xserver_version}
mesa:           ${mesa_version}
video:          ${xpci}
------------------------------------------------------------------------

EOF

# TODO: Detect this
cat <<EOF
Caskbench
------------------------------------------------------------------------
description:    TBD
respository:    https://github.com/SRA-SiliconValley/caskbench
version:        $(git log | head -n 1 | cut -d' ' -f2)
config:         Default
patches:        None
build-type:     Release

EOF

# TODO: Detect this
cat <<EOF
Cairo
------------------------------------------------------------------------
description:    filters-wip branch of the cairogles fork
repository:     https://github.com/SRA-SiliconValley/cairogles
version:        1a15478f9398ac5d0afbae977e548079bfc9d43a
config:         All defaults, with
                --enable-egl --enable-gles3
patches:        None
build-type:     Release
------------------------------------------------------------------------

EOF

# TODO: Detect this
cat <<EOF
Skia
------------------------------------------------------------------------
description:    Manually installed skia-sra from SRA-SiliconValley
repository:     https://github.com/SRA-SiliconValley/skia
version:        a850b9f1e9da4dbf0956543ae7f843d0d0883919
config:         -Dskia_build_for_tizen=1 \\
                -Duse_system_libjpeg=1 \\
                -Duse_system_libpng=1 \\
                -Dskia_shared_lib=1 \\
                -Dskia_arch_width=64 \\
                -Dskia_arch_type=x86
build-type:     Release
------------------------------------------------------------------------

EOF