Skip to content

Commit

Permalink
Fix testing
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Jun 18, 2024
1 parent 63f3635 commit 7ea0c13
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ on Linux using SysGenID (https://lkml.org/lkml/2021/3/8/677). This mechanism
is used for security hardening. If a SysGenID interface is not found, then the
mechanism is ignored.

## Snapsafety Prerequisites
## Snapsafe Prerequisites

Snapshots taken on active hosts can potentially be unsafe to use.
See "Snapshot Safety Prerequisites" here: https://lkml.org/lkml/2021/3/8/677
13 changes: 5 additions & 8 deletions tests/ci/run_posix_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ build_and_test -DOPENSSL_NO_ASM=1 -DCMAKE_BUILD_TYPE=Release
echo "Testing building shared lib."
build_and_test -DBUILD_SHARED_LIBS=1 -DCMAKE_BUILD_TYPE=Release

echo "Testing building with a SysGenId."
TEST_SYSGENID_PATH=$(mktemp)
build_and_test -DTEST_SYSGENID_PATH="${TEST_SYSGENID_PATH}"

if [[ "${AWSLC_C99_TEST}" == "1" ]]; then
echo "Testing the C99 compatability of AWS-LC headers."
./tests/coding_guidelines/c99_gcc_test.sh
Expand All @@ -39,14 +43,7 @@ fi

# Lightly verify that uncommon build options does not break the build. Fist
# define a list of typical build options to verify the special build option with
TEST_SYSGENID_PATH=$(mktemp)
build_options_to_test=(
""
"-DBUILD_SHARED_LIBS=1"
"-DCMAKE_BUILD_TYPE=Release"
"-DBUILD_SHARED_LIBS=1 -DCMAKE_BUILD_TYPE=Release"
"-DTEST_SYSGENID_PATH='${TEST_SYSGENID_PATH}'"
)
build_options_to_test=("" "-DBUILD_SHARED_LIBS=1" "-DCMAKE_BUILD_TYPE=Release" "-DBUILD_SHARED_LIBS=1 -DCMAKE_BUILD_TYPE=Release")

## Build option: MY_ASSEMBLER_IS_TOO_OLD_FOR_AVX
for build_option in "${build_options_to_test[@]}"; do
Expand Down
2 changes: 1 addition & 1 deletion util/build_compilation_database.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ MY_CMAKE_FLAGS=("-GNinja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_EXPORT_COMPILE_COM

mkdir -p "${AWS_LC_BUILD}"

cmake "${BASE_DIR}" -B "${AWS_LC_BUILD}" ${MY_CMAKE_FLAGS[@]} ${@}
cmake "${BASE_DIR}" -B "${AWS_LC_BUILD}" ${MY_CMAKE_FLAGS[@]}

cmake --build "${AWS_LC_BUILD}" --target all

Expand Down

0 comments on commit 7ea0c13

Please sign in to comment.