-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
- Loading branch information
Showing
12 changed files
with
164 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,18 @@ | ||
#!/bin/bash -ex | ||
# SPDX-License-Identifier: GPL-2.0 | ||
|
||
cd "$(dirname "$(realpath -P "${0}")")" | ||
docker build -t "${DOCKER_VIRTME_NAME:-mptcp/mptcp-upstream-virtme-docker:latest}" -f Dockerfile . | ||
|
||
ARGS=( | ||
-t "${DOCKER_VIRTME_NAME:-mptcp/mptcp-upstream-virtme-docker:latest}" | ||
-f Dockerfile | ||
) | ||
|
||
if [[ "${-}" =~ "x" ]]; then | ||
ARGS+=(--progress plain) | ||
else | ||
echo "Building Docker image" >&2 | ||
ARGS+=(--quiet) | ||
fi | ||
|
||
docker buildx build "${ARGS[@]}" "${@}" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash -e | ||
# SPDX-License-Identifier: GPL-2.0 | ||
DIR="$(dirname "$(realpath -P "${0}")")" | ||
export INPUT_CLANG=1 | ||
|
||
bash "-${-}" "${DIR}/run-tests.sh" "${@}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash -ex | ||
# SPDX-License-Identifier: GPL-2.0 | ||
DIR="$(dirname "$(realpath -P "${0}")")" | ||
export INPUT_CLANG=1 | ||
|
||
bash "-${-}" "${DIR}/run-tests-dev.sh" "${@}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash -e | ||
# SPDX-License-Identifier: GPL-2.0 | ||
DIR="$(dirname "$(realpath -P "${0}")")" | ||
CMD="$(basename "${0}")" | ||
|
||
if [ "${CMD}" = "run-tests-dev-cmd.sh" ]; then | ||
if [ -n "${1}" ]; then | ||
CMD="${1}" | ||
shift | ||
else | ||
CMD="bash" | ||
fi | ||
elif [[ "${CMD}" = ".virtme-run-"* ]]; then | ||
export VIRTME_NO_INTERACTIVE=1 | ||
CMD="${CMD:12}" | ||
elif [[ "${CMD}" = "mptcp-virtme-"* ]]; then | ||
export VIRTME_NO_INTERACTIVE=1 | ||
CMD="${CMD:13}" | ||
fi | ||
|
||
bash "-${-}" "${DIR}/run-tests-dev.sh" cmd "${CMD}" "${@}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#! /bin/bash | ||
# SPDX-License-Identifier: GPL-2.0 | ||
|
||
# shellcheck disable=SC2317 | ||
|
||
export VIRTME_NO_INTERACTIVE=1 | ||
export INPUT_CLANG="1" | ||
export MAKE="./.virtme.sh make" | ||
export SILENT_BUILD_FLAG=" " | ||
export SPINNER=0 | ||
|
||
defconfig() { | ||
./.virtme.sh defconfig | ||
} | ||
|
||
case "${COMMAND}" in | ||
"build" | "clean" | "menuconfig" | "update" | "systemtap-build") | ||
echo "local: allow: ${COMMAND}" | ||
;; | ||
"gdb-index") | ||
echo "local: skip: ${COMMAND}" | ||
exit 0 | ||
;; | ||
"defconfig") | ||
echo "local: custom: ${COMMAND}" | ||
${COMMAND} | ||
exit | ||
;; | ||
*) | ||
echo "local: block: ${COMMAND}" | ||
exit 1 | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#! /bin/bash | ||
# SPDX-License-Identifier: GPL-2.0 | ||
|
||
docker run -v "${PWD}:${PWD}:rw" -w "${PWD}" --rm -t \ | ||
mptcp/mptcp-upstream-virtme-docker:latest \ | ||
cmd clangd "${@}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"clangd.arguments": [ | ||
"-compile-commands-dir=${workspaceFolder}/.virtme/build-clang" | ||
], | ||
"clangd.path": "${workspaceFolder}/.vscode/mptcp-virtme-clangd" | ||
} |