exit 1 ;
fi
-# Run in a test suite. Special variables:
-# - SUITES: the meson test suites to run, or
-# - SUITE_NAMES: all elements will be expanded to libinput-test-suite-$value
-# Set one or the other, not both.
-.test-suite-vm:
+# Run meson and meson test in the qemu image
+.build-in-qemu@template:
extends:
- .policy
- .fdo.distribution-image@fedora
- stage: test-suite
tags:
- kvm
variables:
MESON_BUILDDIR: build_dir
- # remove the global --no-suite=hardware
- MESON_TEST_ARGS: ''
- before_script:
- - if ! [[ -z $SUITE_NAMES ]]; then SUITES=$(echo $SUITE_NAMES | sed 's/\([^ ]*\)/libinput-test-suite-\1/g'); fi
- - echo "Testing $SUITES"
script:
# start our vm, no args required
- /app/vmctl start || (echo "Error - Failed to start the VM." && exit 1)
reports:
junit: $MESON_BUILDDIR/junit-*.xml
+
+# Run in a test suite. Special variables:
+# - SUITES: the meson test suites to run, or
+# - SUITE_NAMES: all elements will be expanded to libinput-test-suite-$value
+# Set one or the other, not both.
+.test-suite-vm:
+ extends:
+ - .build-in-qemu@template
+ stage: test-suite
+ variables:
+ # remove the global --no-suite=hardware
+ MESON_TEST_ARGS: ''
+ before_script:
+ - if ! [[ -z $SUITE_NAMES ]]; then SUITES=$(echo $SUITE_NAMES | sed 's/\([^ ]*\)/libinput-test-suite-\1/g'); fi
+ - echo "Testing $SUITES"
retry:
max: 2
when: script_failure
exit 1 ;
fi
-# Run in a test suite. Special variables:
-# - SUITES: the meson test suites to run, or
-# - SUITE_NAMES: all elements will be expanded to libinput-test-suite-$value
-# Set one or the other, not both.
-.test-suite-vm:
+# Run meson and meson test in the qemu image
+.build-in-qemu@template:
extends:
- .policy
- .fdo.distribution-image@fedora
- stage: test-suite
tags:
- kvm
variables:
MESON_BUILDDIR: build_dir
- # remove the global --no-suite=hardware
- MESON_TEST_ARGS: ''
- before_script:
- - if ! [[ -z $SUITE_NAMES ]]; then SUITES=$(echo $SUITE_NAMES | sed 's/\([^ ]*\)/libinput-test-suite-\1/g'); fi
- - echo "Testing $SUITES"
script:
# start our vm, no args required
- /app/vmctl start || (echo "Error - Failed to start the VM." && exit 1)
reports:
junit: $MESON_BUILDDIR/junit-*.xml
+
+# Run in a test suite. Special variables:
+# - SUITES: the meson test suites to run, or
+# - SUITE_NAMES: all elements will be expanded to libinput-test-suite-$value
+# Set one or the other, not both.
+.test-suite-vm:
+ extends:
+ - .build-in-qemu@template
+ stage: test-suite
+ variables:
+ # remove the global --no-suite=hardware
+ MESON_TEST_ARGS: ''
+ before_script:
+ - if ! [[ -z $SUITE_NAMES ]]; then SUITES=$(echo $SUITE_NAMES | sed 's/\([^ ]*\)/libinput-test-suite-\1/g'); fi
+ - echo "Testing $SUITES"
retry:
max: 2
when: script_failure