-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 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
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 |
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,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 = "" |