1
1
mirror of https://github.com/henrydcase/pqc.git synced 2024-11-22 15:39:07 +00:00

fix emulated common tests

This commit is contained in:
Thom Wiggers 2020-10-13 13:14:33 +02:00 committed by Kris Kwiatkowski
parent 8914d1669d
commit f53268924d

View File

@ -44,7 +44,7 @@ jobs:
- name: Run tests - name: Run tests
run: | run: |
cd test cd test
python3 test_common.py python3 test_common.py --numprocesses=auto
python3 test_workflows.py python3 test_workflows.py
test-emulated: test-emulated:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -79,17 +79,16 @@ jobs:
with: with:
path: ~/.cache/pip path: ~/.cache/pip
key: v1-python-pip key: v1-python-pip
- name: Run tests in container - name: Run tests in container
run: | run: |
docker run --rm -e CI -e CC -e -v $PWD:$PWD -w $PWD -v ~/ccache:/ccache pqclean/ci-container:${{ matrix.arch }} /bin/bash -c "\ docker run --rm -e CI -e CC -v $PWD:$PWD -w $PWD -v ~/ccache:/ccache pqclean/ci-container:${{ matrix.arch }} /bin/bash -c "\
export CCACHE_NOSTATS=1 && \ export CCACHE_NOSTATS=1 && \
export CCACHE_DIR=/ccache && \ export CCACHE_DIR=/ccache && \
export CCACHE_SLOPPINESS=include_file_mtime && \ export CCACHE_SLOPPINESS=include_file_mtime && \
export CC=\"ccache $CC\" && \ export CC=\"ccache $CC\" && \
pip3 install -r requirements.txt && \ pip3 install -U -r requirements.txt && \
cd test && \ cd test && \
python3 test_common.py" python3 test_common.py --numprocesses=auto"
test-windows: test-windows:
strategy: strategy:
matrix: matrix:
@ -115,7 +114,7 @@ jobs:
call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC\\Auxiliary\\Build\\vcvars${{ matrix.bits }}.bat" call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC\\Auxiliary\\Build\\vcvars${{ matrix.bits }}.bat"
cd test cd test
python -m pytest --verbose --numprocesses=auto python -m pytest --verbose --numprocesses=auto
python3 test_common.py python3 test_common.py --numprocesses=auto
shell: cmd shell: cmd
test-macos: test-macos:
env: env:
@ -141,5 +140,5 @@ jobs:
- name: Run tests - name: Run tests
run: | run: |
cd test cd test
python3 test_common.py python3 test_common.py --numprocesses=auto