File: upstream-tests

package info (click to toggle)
rrdtool 1.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,772 kB
  • sloc: ansic: 39,371; sh: 1,810; perl: 1,268; cs: 652; makefile: 573; python: 169; ruby: 61; awk: 30
file content (24 lines) | stat: -rwxr-xr-x 607 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
#!/bin/bash

set -e

cd tests

TMP_OUT=$(mktemp)
trap 'rm -f "$TMP_OUT"' EXIT

# excluded:
# - list1: rrdcached test bugged when running with installed rrdcached
#
find . -mindepth 1 -maxdepth 1 -type f -perm '/u+x' | grep -v -e list1 | sort | while read -r i; do
    echo "Running test: ${i}"
    if ! RRDTOOL=/usr/bin/rrdtool "${i}" >"$TMP_OUT" 2>&1; then
        echo "Test ${i} FAILED. Output:"
        echo "--------------------------------------------------"
        cat "$TMP_OUT"
        echo "--------------------------------------------------"
        exit 1
    fi
done

echo "All tests passed."