mirror of
https://github.com/open-quantum-safe/liboqs.git
synced 2025-10-04 00:02:01 -04:00
Add CI job for x86 (#1058)
This commit is contained in:
parent
4de651c723
commit
286e68674c
5
.CMake/toolchain_x86.cmake
Normal file
5
.CMake/toolchain_x86.cmake
Normal file
@ -0,0 +1,5 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
set(CMAKE_SYSTEM_NAME Linux)
|
||||
set(CMAKE_SYSTEM_PROCESSOR i586)
|
||||
set(CMAKE_CROSSCOMPILING OFF)
|
@ -78,8 +78,8 @@ jobs:
|
||||
command: ninja
|
||||
working_directory: build
|
||||
|
||||
linux_x64:
|
||||
description: A template for running liboqs tests on x64 Linux Docker VMs
|
||||
linux_oqs:
|
||||
description: A template for running liboqs tests on Linux Docker VMs
|
||||
parameters:
|
||||
CONTAINER:
|
||||
description: "The docker container to use."
|
||||
@ -332,13 +332,13 @@ workflows:
|
||||
#- testapproval:
|
||||
# <<: *require_buildcheck
|
||||
# type: approval
|
||||
- linux_x64:
|
||||
- linux_oqs:
|
||||
<<: *require_buildcheck
|
||||
name: alpine-noopenssl
|
||||
context: openquantumsafe
|
||||
CONTAINER: openquantumsafe/ci-alpine-amd64:latest
|
||||
CMAKE_ARGS: -DOQS_USE_OPENSSL=OFF
|
||||
- linux_x64:
|
||||
- linux_oqs:
|
||||
<<: *require_buildcheck
|
||||
name: alpine
|
||||
context: openquantumsafe
|
||||
@ -346,37 +346,37 @@ workflows:
|
||||
CMAKE_ARGS: -DOQS_USE_OPENSSL=ON -DBUILD_SHARED_LIBS=ON
|
||||
# Disabling centos-8 and debian-buster.
|
||||
# Re-enable if specific configurations (package versions etc) that need to be tested are identified.
|
||||
#- linux_x64:
|
||||
#- linux_oqs:
|
||||
# <<: *require_buildcheck
|
||||
# name: centos-8
|
||||
# context: openquantumsafe
|
||||
# CONTAINER: openquantumsafe/ci-centos-8-amd64:latest
|
||||
# CMAKE_ARGS: -DCMAKE_C_COMPILER=clang
|
||||
#- linux_x64:
|
||||
#- linux_oqs:
|
||||
# <<: *require_buildcheck
|
||||
# name: debian-buster
|
||||
# context: openquantumsafe
|
||||
# CONTAINER: openquantumsafe/ci-debian-buster-amd64:latest
|
||||
- linux_x64:
|
||||
- linux_oqs:
|
||||
<<: *require_buildcheck
|
||||
name: ubuntu-focal-noopenssl
|
||||
context: openquantumsafe
|
||||
CONTAINER: openquantumsafe/ci-ubuntu-focal-x86_64:latest
|
||||
CMAKE_ARGS: -DCMAKE_C_COMPILER=gcc-8 -DOQS_USE_OPENSSL=OFF
|
||||
- linux_x64:
|
||||
- linux_oqs:
|
||||
<<: *require_buildcheck
|
||||
name: ubuntu-focal-shared-noopenssl
|
||||
context: openquantumsafe
|
||||
CONTAINER: openquantumsafe/ci-ubuntu-focal-x86_64:latest
|
||||
CMAKE_ARGS: -DCMAKE_C_COMPILER=gcc-7 -DOQS_DIST_BUILD=ON -DOQS_USE_OPENSSL=OFF -DBUILD_SHARED_LIBS=ON
|
||||
PYTEST_ARGS: --ignore=tests/test_namespace.py --numprocesses=auto
|
||||
- linux_x64:
|
||||
- linux_oqs:
|
||||
<<: *require_buildcheck
|
||||
name: ubuntu-focal-clang9
|
||||
context: openquantumsafe
|
||||
CONTAINER: openquantumsafe/ci-ubuntu-focal-x86_64:latest
|
||||
CMAKE_ARGS: -DCMAKE_C_COMPILER=clang-9
|
||||
- linux_x64:
|
||||
- linux_oqs:
|
||||
<<: *require_buildcheck
|
||||
name: address-sanitizer
|
||||
context: openquantumsafe
|
||||
@ -387,8 +387,14 @@ workflows:
|
||||
CONTAINER: openquantumsafe/ci-ubuntu-focal-x86_64:latest
|
||||
CMAKE_ARGS: -DCMAKE_C_COMPILER=clang-9 -DCMAKE_BUILD_TYPE=Debug -DUSE_SANITIZER=Address
|
||||
PYTEST_ARGS: --ignore=tests/test_portability.py --numprocesses=auto --maxprocesses=10
|
||||
- linux_oqs:
|
||||
<<: *require_buildcheck
|
||||
name: ubuntu-bionic-i386
|
||||
context: openquantumsafe
|
||||
CONTAINER: openquantumsafe/ci-ubuntu-bionic-i386:latest
|
||||
CMAKE_ARGS: -DCMAKE_TOOLCHAIN_FILE=../.CMake/toolchain_x86.cmake
|
||||
# Disabling test_constant_time for now
|
||||
#- linux_x64:
|
||||
#- linux_oqs:
|
||||
# <<: *require_buildcheck
|
||||
# name: constant-time-x64
|
||||
# filters:
|
||||
@ -399,7 +405,7 @@ workflows:
|
||||
# CONTAINER: openquantumsafe/ci-ubuntu-bionic-x86_64:latest
|
||||
# CMAKE_ARGS: -DOQS_OPT_TARGET=generic -DCMAKE_BUILD_TYPE=Debug -DOQS_ENABLE_TEST_CONSTANT_TIME=ON
|
||||
# PYTEST_ARGS: --numprocesses=auto -k 'test_constant_time'
|
||||
#- linux_x64:
|
||||
#- linux_oqs:
|
||||
# <<: *require_buildcheck
|
||||
# name: constant-time-x64-extensions
|
||||
# filters:
|
||||
@ -411,7 +417,7 @@ workflows:
|
||||
# CMAKE_ARGS: -DOQS_OPT_TARGET=auto -DCMAKE_BUILD_TYPE=Debug -DOQS_ENABLE_TEST_CONSTANT_TIME=ON
|
||||
# PYTEST_ARGS: --numprocesses=auto -k 'test_constant_time'
|
||||
# Disabling for now due to https://github.com/open-quantum-safe/liboqs/issues/791
|
||||
#- linux_x64:
|
||||
#- linux_oqs:
|
||||
# name: undefined-sanitizer
|
||||
# context: openquantumsafe
|
||||
# CONTAINER: openquantumsafe/ci-ubuntu-focal-x86_64:latest
|
||||
|
@ -32,7 +32,7 @@ def test_namespace():
|
||||
symbols.append(line)
|
||||
|
||||
# ideally this would be just ['oqs', 'pqclean'], but contains exceptions (e.g., providing compat implementations of unavailable platform functions)
|
||||
namespaces = ['oqs', 'pqclean', 'keccak', 'pqcrystals', 'init', 'fini', 'seedexpander']
|
||||
namespaces = ['oqs', 'pqclean', 'keccak', 'pqcrystals', 'init', 'fini', 'seedexpander', '__x86.get_pc_thunk']
|
||||
non_namespaced = []
|
||||
|
||||
for symbolstr in symbols:
|
||||
|
Loading…
x
Reference in New Issue
Block a user