-
Notifications
You must be signed in to change notification settings - Fork 711
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Move kTLS test out of GeneralBatch (#4904)
- Loading branch information
Showing
2 changed files
with
26 additions
and
14 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,26 @@ | ||
--- | ||
# This is designed to work with CodeBuild's reserved instances fleet and curated Ec2 AMI for AL2023. | ||
version: 0.2 | ||
env: | ||
variables: | ||
NIX_CACHE_BUCKET: "s3://s2n-tls-nixcachebucket-x86-64?region=us-west-2" | ||
S2N_KTLS_TESTING_EXPECTED: 1 | ||
phases: | ||
install: | ||
commands: | ||
- yum update -y; yum upgrade -y | ||
pre_build: | ||
commands: | ||
# Nix is installed, but intentionally not setup for root, fix that | ||
- cp -aR /home/nix/.nix-profile ~/; chown -R root /root/.nix-profile; export PATH=$HOME/.nix-profile/bin:$PATH | ||
# Turn on flakes | ||
- mkdir -p ~/.config/nix; echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf | ||
# Populate the store from the nix cache | ||
- nix copy --from $NIX_CACHE_BUCKET --all --no-check-sigs | ||
# Load the TLS kernel module | ||
- sudo modprobe tls | ||
- echo "Checking that the TLS kernel mod loaded..."; test $(sudo lsmod|grep -c tls) = 1 | ||
build: | ||
commands: | ||
- nix develop .#openssl111 --command bash -c 'source ./nix/shell.sh && clean && configure && unit' | ||
- S2N_CMAKE_OPTIONS="-DASAN=ON" nix develop .#openssl111 --command bash -c 'source ./nix/shell.sh && clean && configure && unit' |
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