Skip to content

Commit

Permalink
Run quark-test from the CI
Browse files Browse the repository at this point in the history
Run quark-test from the centos7 build as a CI target, this is the very beginning
and we run it only in the same machine that we make a build.
  • Loading branch information
haesbaert committed Oct 26, 2024
1 parent 953dcd4 commit 2f8ede6
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
steps:
- label: "build amd64 in docker"
key: build_docker
key: make_docker
command: "make docker"
agents:
image: family/core-ubuntu-2204
Expand All @@ -10,6 +10,8 @@ steps:
- label: "build amd64 in a centos7 container"
key: make_centos7
command: "make centos7"
artifact_paths:
- "quark-test"
agents:
image: family/core-ubuntu-2204
provider: gcp
Expand All @@ -22,3 +24,13 @@ steps:
image: family/core-ubuntu-2204
provider: gcp
machineType: n2-standard-2

- label: "quark-test"
key: test
command: "./.buildkite/runtest.sh"
depends_on:
- make_centos7
agents:
image: family/core-ubuntu-2204
provider: gcp
machineType: n2-standard-2
19 changes: 19 additions & 0 deletions .buildkite/runtest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

set -euo pipefail

function download {
buildkite-agent artifact download "$1" "$2"
}

if [ -z "${BUILDKITE}" ]; then
echo "This script doesn't appear to be running in buildkite" 1>&2
echo "refusing to continue" 1>&2
exit 1
fi

download quark-test .
chmod +x quark-test

sudo ./quark-test
exit $?
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ clean-all: clean
$(call msg,CLEAN-ALL)
$(Q)rm -f $(SVGS)
$(Q)rm -rf include
$(Q)make -C $(LIBBPF_SRC) clean
$(Q)make -C $(LIBBPF_SRC) clean NO_PKG_CONFIG=y
$(Q)make -C $(ELFTOOLCHAIN_SRC)/libelf clean
$(Q)make -C $(ZLIB_SRC) clean || true

Expand Down

0 comments on commit 2f8ede6

Please sign in to comment.