Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/implementers-guide/implementers-guide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ Here follows a dummy example of what wrapper-script could be:

[source,bash]
----
#!/bin/bash
#!/usr/bin/env bash

# The parameter, $1, is the name of the test executable to run
echo "WRAPPER!!!"
Expand Down
2 changes: 1 addition & 1 deletion example/classifier/odp_classifier_run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2020 Marvell
Expand Down
2 changes: 1 addition & 1 deletion example/cli/odp_cli_run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2021 Nokia
Expand Down
2 changes: 1 addition & 1 deletion example/ipsec_api/odp_ipsec_api_run_ah_in.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Test input AH
# - 2 loop interfaces
Expand Down
2 changes: 1 addition & 1 deletion example/ipsec_api/odp_ipsec_api_run_ah_out.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Test output AH
# - 2 loop interfaces
Expand Down
2 changes: 1 addition & 1 deletion example/ipsec_api/odp_ipsec_api_run_ah_tun_in.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Test input AH
# - 2 loop interfaces
Expand Down
2 changes: 1 addition & 1 deletion example/ipsec_api/odp_ipsec_api_run_ah_tun_out.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Test output AH
# - 2 loop interfaces
Expand Down
2 changes: 1 addition & 1 deletion example/ipsec_api/odp_ipsec_api_run_esp_in.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Test input ESP
# - 2 loop interfaces
Expand Down
2 changes: 1 addition & 1 deletion example/ipsec_api/odp_ipsec_api_run_esp_out.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Test output ESP
# - 2 loop interfaces
Expand Down
2 changes: 1 addition & 1 deletion example/ipsec_api/odp_ipsec_api_run_esp_tun_in.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Test input ESP
# - 2 loop interfaces
Expand Down
2 changes: 1 addition & 1 deletion example/ipsec_api/odp_ipsec_api_run_esp_tun_out.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Test output ESP
# - 2 loop interfaces
Expand Down
2 changes: 1 addition & 1 deletion example/ipsec_api/odp_ipsec_api_run_live.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Live router test
# - 2 interfaces interfaces
Expand Down
2 changes: 1 addition & 1 deletion example/ipsec_api/odp_ipsec_api_run_router.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Live router test
# - 2 interfaces interfaces
Expand Down
2 changes: 1 addition & 1 deletion example/ipsec_api/odp_ipsec_api_run_simple.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Simple router test
# - 2 loop interfaces
Expand Down
2 changes: 1 addition & 1 deletion example/ipsec_crypto/odp_ipsec_crypto_run_ah_in.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Test input AH
# - 2 loop interfaces
Expand Down
2 changes: 1 addition & 1 deletion example/ipsec_crypto/odp_ipsec_crypto_run_ah_out.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Test output AH
# - 2 loop interfaces
Expand Down
2 changes: 1 addition & 1 deletion example/ipsec_crypto/odp_ipsec_crypto_run_both_in.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Test AH and ESP input
# - 2 loop interfaces
Expand Down
2 changes: 1 addition & 1 deletion example/ipsec_crypto/odp_ipsec_crypto_run_both_out.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Test AH and ESP output
# - 2 loop interfaces
Expand Down
2 changes: 1 addition & 1 deletion example/ipsec_crypto/odp_ipsec_crypto_run_esp_in.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Test input ESP
# - 2 loop interfaces
Expand Down
2 changes: 1 addition & 1 deletion example/ipsec_crypto/odp_ipsec_crypto_run_esp_out.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Test output ESP
# - 2 loop interfaces
Expand Down
2 changes: 1 addition & 1 deletion example/ipsec_crypto/odp_ipsec_crypto_run_live.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Live router test
# - 2 interfaces interfaces
Expand Down
2 changes: 1 addition & 1 deletion example/ipsec_crypto/odp_ipsec_crypto_run_router.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Live router test
# - 2 interfaces interfaces
Expand Down
2 changes: 1 addition & 1 deletion example/ipsec_crypto/odp_ipsec_crypto_run_simple.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Simple router test
# - 2 loop interfaces
Expand Down
2 changes: 1 addition & 1 deletion example/l3fwd/odp_l3fwd_run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2016-2018 Linaro Limited
Expand Down
2 changes: 1 addition & 1 deletion example/packet/packet_dump_run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2018 Linaro Limited
Expand Down
2 changes: 1 addition & 1 deletion example/packet/pktio_run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2016-2018 Linaro Limited
Expand Down
2 changes: 1 addition & 1 deletion example/ping/ping_run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2019 Nokia
Expand Down
2 changes: 1 addition & 1 deletion example/simple_pipeline/simple_pipeline_run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2019 Nokia
Expand Down
2 changes: 1 addition & 1 deletion example/switch/switch_run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2016-2018 Linaro Limited
Expand Down
2 changes: 1 addition & 1 deletion platform/linux-generic/example/ml/odp_ml_run_mnist.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2023 Nokia
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2023 Nokia
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2023 Nokia
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2023 Nokia
Expand Down
3 changes: 2 additions & 1 deletion scripts/check-globals.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env bash
#
# Check that global symbols in a static library conform to a given regex.
# Only static library is checked, since libtool -export-symbols-regex
Expand All @@ -11,6 +11,7 @@
# lib_LTLIBRARIES Library .la file.
# CHECK_GLOBALS_REGEX Global symbols matching this regex are accepted.
#
set -o errexit

tmpfile=$(mktemp)

Expand Down
4 changes: 3 additions & 1 deletion scripts/ci-checkpatches.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash -x
#!/usr/bin/env bash

set -o xtrace

PATCHES=$1
echo "Run checkpatch for ${PATCHES}"
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

cd "$(dirname "$0")"/../..
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/build_arm64.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

export TARGET_ARCH=aarch64-linux-gnu
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/build_armhf.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

export TARGET_ARCH=arm-linux-gnueabihf
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/build_i386.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

export TARGET_ARCH=i686-linux-gnu
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/build_ppc64el.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

export TARGET_ARCH=powerpc64le-linux-gnu
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/build_riscv64.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

export TARGET_ARCH=riscv64-linux-gnu
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/build_static.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

CONFIG_OPT="--prefix=/opt/odp ${CONF}"
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/build_x86_64.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

if [ "${CC#clang}" != "${CC}" ] ; then
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/check.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

echo 1500 | tee /proc/sys/vm/nr_hugepages
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/check_inline_timer.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

echo 1000 | tee /proc/sys/vm/nr_hugepages
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/check_pktio.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

echo 1000 | tee /proc/sys/vm/nr_hugepages
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/coverage.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

if [ "${CC#clang}" != "${CC}" ] ; then
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/coverity.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

cd "$(dirname "$0")"/../..
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/distcheck.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

if [ "${CC#clang}" != "${CC}" ] ; then
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/out_of_tree.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

if [ "${CC#clang}" != "${CC}" ] ; then
Expand Down
2 changes: 1 addition & 1 deletion scripts/odp_check
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# This script is a clean up for the ODP project src files.
#
Expand Down
2 changes: 1 addition & 1 deletion test/performance/odp_dmafwd_run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2023 Nokia
Expand Down
2 changes: 1 addition & 1 deletion test/performance/odp_l2fwd_perf_run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2015-2018 Linaro Limited
Expand Down
2 changes: 1 addition & 1 deletion test/performance/odp_l2fwd_run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2015-2018 Linaro Limited
Expand Down
2 changes: 1 addition & 1 deletion test/performance/odp_pktio_ordered_run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2016-2018 Linaro Limited
Expand Down
2 changes: 1 addition & 1 deletion test/performance/odp_timer_accuracy_run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2022-2024 Nokia
Expand Down