Skip to content

Instantly share code, notes, and snippets.

@toidiu
Last active August 12, 2022 22:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toidiu/358f2fe86c7e1c770a258071ae001bc0 to your computer and use it in GitHub Desktop.
Save toidiu/358f2fe86c7e1c770a258071ae001bc0 to your computer and use it in GitHub Desktop.
Summary:
- execute run.sh to build and test with Make
- the others are individual commands set and use different libcrypto providers and GCC versions
----------------------------
OS requirements: `cat /etc/os-release`
NAME="Ubuntu"
VERSION="18.04.6 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.6 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
-----------------------------
------------------ Executable: local_toidiu_ubuntu_make.sh
source codebuild/bin/s2n_setup_env.sh
codebuild/bin/s2n_install_test_dependencies.sh
codebuild/bin/s2n_codebuild.sh
--------
Test commands (specify libcrypto):
`ldd build/bin/s2nd` # check which libcrypto we linked against
sudo S2N_LIBCRYPTO=openssl-3 BUILD_S2N=true TESTS=integration GCC_VERSION=9 ./local_toidiu_ubuntu_make.sh
sudo S2N_LIBCRYPTO=openssl-3 BUILD_S2N=true TESTS=unit GCC_VERSION=9 ./local_toidiu_ubuntu_make.sh
sudo TESTS=integration GCC_VERSION=6 S2N_GDB=1 S2N_LIBCRYPTO=openssl-1.0.2-fips ./local_toidiu_ubuntu_make.sh
sudo S2N_LIBCRYPTO=openssl-1.1.1 BUILD_S2N=true TESTS=integration GCC_VERSION=9 ./local_toidiu_ubuntu_make.sh
sudo S2N_LIBCRYPTO=openssl-1.0.2 BUILD_S2N=true TESTS=valgrind GCC_VERSION=6 ./local_toidiu_ubuntu_make.sh
sudo S2N_LIBCRYPTO=awslc-fips GCC_VERSION=9 ./local_toidiu_ubuntu_make.sh
sudo S2N_LIBCRYPTO=openssl-1.0.2-fips BUILD_S2N=true TESTS=valgrind GCC_VERSION=6 ./local_toidiu_ubuntu_make.sh
sudo S2N_LIBCRYPTO=openssl-1.0.2-fips BUILD_S2N=true GCC_VERSION=6 ./local_toidiu_ubuntu_make.sh
sudo S2N_LIBCRYPTO=openssl-1.0.2-fips BUILD_S2N=true TESTS=valgrind GCC_VERSION=6 ./local_toidiu_ubuntu_make.sh
sudo S2N_LIBCRYPTO=openssl-1.0.2-fips BUILD_S2N=true TESTS=valgrind GCC_VERSION=6 ./local_toidiu_ubuntu_make.sh
sudo S2N_LIBCRYPTO=openssl-1.0.2 BUILD_S2N=true TESTS=valgrind GCC_VERSION=6 ./local_toidiu_ubuntu_make.sh
sudo S2N_LIBCRYPTO=openssl-1.1.1 BUILD_S2N=true TESTS=valgrind GCC_VERSION=9 ./local_toidiu_ubuntu_make.sh
sudo S2N_LIBCRYPTO=openssl-1.0.2 BUILD_S2N=true TESTS=integrationv2 GCC_VERSION=6 ./local_toidiu_ubuntu_make.sh
-------------
S2N_LIBCRYPTO=openssl-1.0.2-fips S2N_GDB=1 GCC_VERSION=6 UNIT_TESTS="s2n_self_talk_min_protocol_version_test" make -j 10
S2N_GDB=1 UNIT_TESTS="s2n_self_talk_min_protocol_version_test" make -j 10
S2N_GDB=1 make -j 10
S2N_GDB=1 make -j 10 -C tests integration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment