Skip to content

Commit

Permalink
First try at bors
Browse files Browse the repository at this point in the history
  • Loading branch information
0152la committed Feb 9, 2022
1 parent 96a72ee commit 2c4d2c5
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .buildbot.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

set -e

export CC=/home/cheriworker/cheri/output/morello-sdk/bin/clang
export CFLAGS="--config cheribsd-morello-hybrid.cfg"
export ASMFLAGS="--config cheribsd-morello-hybrid.cfg"

build_dir="$(pwd)/build"
src_dir="$(pwd)/"

# Build project locally
cmake \
-G Ninja \
-DCMAKE_BUILD_TYPE=DEBUG \
-DLLVM_DIR=/home/cheriworker/cheri/output/morello-sdk/lib/cmake/llvm \
-DClang_DIR=/home/cheriworker/cheri/output/morello-sdk/lib/cmake/clang \
-B $build_dir \
-S $src_dir
cmake --build $build_dir

# Spawn CHERI QEMU instance
NETDEV="user,id=net0,hostfwd=tcp::10086-:22"
$HOME/cheri/output/morello-sdk/bin/qemu-system-morello -M virt,gic-version=3 -cpu morello -m 2048 -nographic -bios edk2-aarch64-code.fd -drive if=none,file=$HOME/cheri/output/cheribsd-morello-hybrid.img,id=drv,format=raw -device virtio-blk-device,drive=drv -device virtio-net-device,netdev=net0 -netdev $NETDEV -device virtio-rng-pci

# Execute tests via CMake
cd $build_dir
ctest
10 changes: 10 additions & 0 deletions bors.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Sourced from
# https://github.com/capablevms/cheri-examples/blob/master/bors.toml
status = ["buildbot/capablevms-test-script"]

timeout_sec = 600 # 10 minutes

# Have bors delete auto-merged branches
delete_merged_branches = true

cut_body_after = ""

0 comments on commit 2c4d2c5

Please sign in to comment.