Lines Matching +full:gitlab +full:- +full:ci
2 # SPDX-License-Identifier: GPL-2.0
4 set -u
5 set -e
8 ARCH="$(uname -m)"
11 QEMU_BINARY=qemu-system-x86_64
22 B2C_URL="https://gitlab.freedesktop.org/gfx-ci/boot2container/-/raw/main/vm2c.py"
24 LOG_FILE_BASE="$(date +"hid_selftests.%Y-%m-%d_%H-%M-%S")"
27 CONTAINER_IMAGE="registry.freedesktop.org/bentiss/hid/fedora/39:2023-11-22.1"
30 DEFAULT_COMMAND="pip3 install hid-tools; make -C tools/testing/selftests TARGETS=${TARGETS} run_tes…
35 Usage: $0 [-j N] [-s] [-b] [-d <output_dir>] -- [<command>]
40 $0 -- ./tools/testing/selftests/hid/hid_bpf
42 If no command is specified and a debug shell (-s) is not requested,
48 O=<kernel_build_path> $0 -- ./tools/testing/selftests/hid/hid_bpf
52 KBUILD_OUTPUT=<kernel_build_path> $0 -- ./tools/testing/selftests/hid/hid_bpf
56 -u) Update the boot2container script to a newer version.
57 -d) Update the output directory (default: ${OUTPUT_DIR})
58 -b) Run only the build steps for the kernel and the selftests
59 -j) Number of jobs for compilation, similar to -j in make
61 -s) Instead of powering off the VM, start an interactive
72 curl -Lsf "$file" -o "${@:2}"
114 # alpine (used in post-container requires the PATH to have /bin
120 …command="mount bpffs -t bpf /sys/fs/bpf/; set -o pipefail ; ${command} 2>&1 | tee ${OUTPUT_DIR}/${…
123 command="mount bpffs -t bpf /sys/fs/bpf/; ${command}"
127 $b2c --command "${command}" \
128 --kernel ${kernel_bzimage} \
129 --workdir ${OUTPUT_DIR} \
130 --image ${CONTAINER_IMAGE}
134 set -e
151 rm -f "$kconfig_file" 2> /dev/null
164 if [[ -f "${kconfig_file}" ]]; then
165 local local_modified="$(stat -c %Y "${kconfig_file}")"
169 local src_modified="$(stat -c %Y "${kconfig_src}")"
173 if [[ "${src_modified}" -gt "${local_modified}" ]]; then
187 local script_dir="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
220 echo "Invalid Option: -$OPTARG"
225 echo "Invalid Option: -$OPTARG requires an argument"
231 shift $((OPTIND -1))
235 if [[ $# -eq 0 ]]; then
248 local make_command="make -j ${NUM_COMPILE_JOBS} KCONFIG_CONFIG=${kconfig_file}"
270 mkdir -p "${OUTPUT_DIR}"
277 if [[ "${update_b2c}" == "no" && ! -f "${b2c}" ]]; then