xref: /kernel/linux/linux-6.6/tools/testing/selftests/bpf/test_doc_build.sh
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/tools/testing/selftests/bpf/
162306a36Sopenharmony_ci#!/bin/bash
262306a36Sopenharmony_ci# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
362306a36Sopenharmony_ciset -e
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci# Assume script is located under tools/testing/selftests/bpf/. We want to start
662306a36Sopenharmony_ci# build attempts from the top of kernel repository.
762306a36Sopenharmony_ciSCRIPT_REL_PATH=$(realpath $0)
862306a36Sopenharmony_ciSCRIPT_REL_DIR=$(dirname $SCRIPT_REL_PATH)
962306a36Sopenharmony_ciKDIR_ROOT_DIR=$(realpath $SCRIPT_REL_DIR/../../../../)
1062306a36Sopenharmony_ciSCRIPT_REL_DIR=$(dirname $(realpath --relative-to=$KDIR_ROOT_DIR $SCRIPT_REL_PATH))
1162306a36Sopenharmony_cicd $KDIR_ROOT_DIR
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ciif [ ! -e $PWD/$SCRIPT_REL_DIR/Makefile ]; then
1462306a36Sopenharmony_ci	echo -e "skip:    bpftool files not found!\n"
1562306a36Sopenharmony_ci	exit 4 # KSFT_SKIP=4
1662306a36Sopenharmony_cifi
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_cifor tgt in docs docs-clean; do
1962306a36Sopenharmony_ci	make -s -C $PWD/$SCRIPT_REL_DIR $tgt;
2062306a36Sopenharmony_cidone
21

Indexes created Thu Nov 07 10:32:03 CST 2024