Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: run tpm2-tools test suite #1969

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 25 additions & 3 deletions .ci/docker.run
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ else
make -j check
fi

popd

else # TEST_TCTI_CONFIG == true
mkdir ./config_test
pushd ./config_test
Expand Down Expand Up @@ -121,9 +119,33 @@ if [ "$CC" == "gcc" ]; then
../configure --disable-doxygen-doc --enable-unit --enable-integration --enable-tcti-swtpm --enable-tcti-mssim --enable-tcti-device
make -j check TESTS="test/unit/tcti-swtpm test/unit/tcti-mssim test/unit/tcti-device"
fi # CC == gcc
popd
fi # TEST_TCTI_CONFIG

# Test that we don't break the tools by:
# - running install before leaving the build variant directory
# - returning to the top level tpm2-tss folder and git cloning:
# - tpm2-abrmd
# - tpm2-tools
# - Building all projects
# - Runing the tools test suite
make install
popd

git clone --depth=1 https://github.com/tpm2-software/tpm2-abrmd.git
pushd tpm2-abrmd
./bootstrap
./configure CFLAGS=-g
make -j$(nproc)
make install
popd

git clone --depth=1 https://github.com/tpm2-software/tpm2-tools.git
pushd tpm2-tools
./bootstrap
./configure --enable-unit --enable-integration
make -j$(nproc) check
popd

# back in root git directory, check for whitespace errors. We do this post CI
# so people can verify the rest of their patch works in CI before dying.
# git diff --check fails with a non-zero return code causing the shell to die
Expand Down