Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Jul 6, 2024
1 parent 8f76b75 commit 238a524
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ jobs:
run: cmake --build out --config Release --verbose
- name: CTest
run: ctest --no-tests=error --test-dir out -VV --build-config Release
env:
BASE64_TEST_SKIP_AVX512: "1"

alpine-makefile-test:
name: makefile-alpine-amd64-gcc
Expand Down
3 changes: 2 additions & 1 deletion test/ci/analysis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ for USE_ASSEMBLY in 0 1; do
export SSE42_CFLAGS="-msse4.2 -DBASE64_SSE42_USE_ASM=${USE_ASSEMBLY}"
export AVX_CFLAGS="-mavx -DBASE64_AVX_USE_ASM=${USE_ASSEMBLY}"
export AVX2_CFLAGS="-mavx2 -DBASE64_AVX2_USE_ASM=${USE_ASSEMBLY}"
export AVX512_CFLAGS="-mavx512vl -mavx512vbmi"
# Temporarily disable AVX512; it is not available in CI yet.
# export AVX512_CFLAGS="-mavx512vl -mavx512vbmi"
export BASE64_TEST_SKIP_AVX512=1
elif [ "${MACHINE}" == "aarch64" ]; then
export NEON64_CFLAGS="-march=armv8-a"
elif [ "${MACHINE}" == "armv7l" ]; then
Expand Down
2 changes: 1 addition & 1 deletion test/codec_supported.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Expand Down Expand Up @@ -29,7 +30,6 @@ codec_supported (size_t index)
char b[10];
size_t outlen;
char envVariable[32];

sprintf(envVariable, "BASE64_TEST_SKIP_%s", _codecs[index]);
const char* envOverride = getenv(envVariable);
if (envOverride != NULL) {
Expand Down

0 comments on commit 238a524

Please sign in to comment.