xref: /kvm-unit-tests/.travis.yml (revision e36a9c28fc8f8f59e0e30db244af0b17c6d04be9)
1sudo: false
2dist: bionic
3language: c
4compiler:
5  - gcc
6cache: ccache
7addons:
8  apt:
9    packages:
10      # Cross Toolchains
11      - gcc-arm-linux-gnueabihf
12      - gcc-aarch64-linux-gnu
13      - gcc-powerpc64le-linux-gnu
14      - gcc-s390x-linux-gnu
15      # Run dependencies
16      - qemu-system
17git:
18  submodules: false
19env:
20  matrix:
21    - CONFIG=""
22      BUILD_DIR="."
23      TESTS="vmexit_cpuid vmexit_mov_from_cr8 vmexit_mov_to_cr8 vmexit_ipi
24             vmexit_ple_round_robin vmexit_tscdeadline vmexit_tscdeadline_immed"
25    - CONFIG=""
26      BUILD_DIR="x86-builddir"
27      TESTS="ioapic-split ioapic smptest smptest3 eventinj msr port80 syscall
28             tsc rmap_chain umip intel_iommu vmexit_inl_pmtimer vmexit_ipi_halt"
29    - CONFIG="--arch=arm --cross-prefix=arm-linux-gnueabihf-"
30      BUILD_DIR="."
31      TESTS="selftest-vectors-kernel selftest-vectors-user selftest-smp"
32    - CONFIG="--arch=arm --cross-prefix=arm-linux-gnueabihf-"
33      BUILD_DIR="arm-buildir"
34      TESTS="pci-test pmu gicv2-active gicv3-active psci selftest-setup"
35    - CONFIG="--arch=arm64 --cross-prefix=aarch64-linux-gnu-"
36      BUILD_DIR="."
37      TESTS="selftest-vectors-kernel selftest-vectors-user selftest-smp"
38    - CONFIG="--arch=arm64 --cross-prefix=aarch64-linux-gnu-"
39      BUILD_DIR="arm64-buildir"
40      TESTS="pci-test pmu gicv2-active gicv3-active psci timer selftest-setup"
41    - CONFIG="--arch=ppc64 --endian=little --cross-prefix=powerpc64le-linux-gnu-"
42      BUILD_DIR="."
43      TESTS="spapr_hcall emulator rtas-set-time-of-day"
44      ACCEL="tcg,cap-htm=off"
45    - CONFIG="--arch=ppc64 --endian=little --cross-prefix=powerpc64le-linux-gnu-"
46      BUILD_DIR="ppc64le-buildir"
47      TESTS="rtas-get-time-of-day rtas-get-time-of-day-base"
48      ACCEL="tcg,cap-htm=off"
49    - CONFIG="--arch=s390x --cross-prefix=s390x-linux-gnu-"
50      BUILD_DIR="."
51      TESTS="diag10 diag308"
52      ACCEL="tcg,firmware=s390x/run"
53    - CONFIG="--arch=s390x --cross-prefix=s390x-linux-gnu-"
54      BUILD_DIR="s390x-builddir"
55      TESTS="sieve"
56      ACCEL="tcg,firmware=s390x/run"
57
58before_script:
59  - mkdir -p $BUILD_DIR && cd $BUILD_DIR
60  - if [ -e ./configure ]; then ./configure $CONFIG ; fi
61  - if [ -e ../configure ]; then ../configure $CONFIG ; fi
62script:
63  - make -j3
64  - ACCEL="${ACCEL:-tcg}" ./run_tests.sh -v $TESTS | tee results.txt
65  - if grep -q FAIL results.txt ; then exit 1 ; fi
66