From a148f7885292b7e73db3b0f3eb71ea93e20bcc78 Mon Sep 17 00:00:00 2001 From: Doug Chapman Date: Tue, 29 Aug 2023 14:45:42 -0700 Subject: [PATCH] ci: buildspec for qemu ktls test --- codebuild/spec/buildspec_ktls.yml | 17 +++++++++++++++++ nix/shell.sh | 1 + 2 files changed, 18 insertions(+) create mode 100644 codebuild/spec/buildspec_ktls.yml diff --git a/codebuild/spec/buildspec_ktls.yml b/codebuild/spec/buildspec_ktls.yml new file mode 100644 index 00000000000..5958b9c6711 --- /dev/null +++ b/codebuild/spec/buildspec_ktls.yml @@ -0,0 +1,17 @@ +--- +version: 0.2 +phases: + install: + commands: + - apt update + - apt upgrade -y + - apt install -y qemu qemu-system-x86 wget cloud-image-utils + pre_build: + commands: + - aws s3 --quiet sync s3://s2n-ktls-testing ./qemu + - cd qemu; bash ./run.sh; cd .. + - rsync -avz --exclude=qemu --exclude=tests/fuzz -e 'ssh -p 2222' . codebuild@localhost:/home/codebuild/s2n-tls + build: + commands: + - codebuild-breakpoint + - ssh -p 2222 codebuild@localhost "cd s2n-tls; sudo modprobe tls; nix develop .#openssl111 --command bash -c 'source ./nix/shell.sh && clean && configure && build && unit'" diff --git a/nix/shell.sh b/nix/shell.sh index 14acd88a4aa..f9f9d922d8d 100644 --- a/nix/shell.sh +++ b/nix/shell.sh @@ -24,6 +24,7 @@ function configure { -DS2N_INTEG_NIX=ON \ -DBUILD_SHARED_LIBS=ON \ -DCMAKE_BUILD_TYPE=RelWithDebInfo + } function build {