File: test.sh

package info (click to toggle)
hotspot 1.6.0-0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,756 kB
  • sloc: cpp: 27,071; ansic: 281; sh: 261; python: 75; xml: 48; makefile: 16
file content (33 lines) | stat: -rwxr-xr-x 603 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
#!/bin/bash

set -e

cd $(dirname $0)/../../

testWithoutPreset()
{
    tag=$1
    shift 1
    docker run hotspot-$tag bash -c "cd hotspot/build/ && ctest --output-on-failure -j \$(nproc) $@"
}

testWithPreset()
{
    tag=$1
    shift 1

    suffix=
    if [[ $tag == *qt6 ]]; then
        suffix=-qt6
    fi

    docker run hotspot-$tag bash -c "cd hotspot && ctest --preset dev-asan$suffix -j \$(nproc) $@"
}

testWithoutPreset ubuntu20.04 "-E tst_perfdata"

testWithPreset ubuntu22.04
testWithPreset archlinuxqt6
testWithPreset opensusetumbleweedqt6
testWithPreset fedora42qt6
testWithPreset neonqt6