| language: cpp |
| compiler: |
| - gcc |
| - clang |
| |
| # This is a lie: we don't need sudo but this is required to get an |
| # Ubuntu image with a libc that isn't ancient, and with cmocka libs. |
| sudo: required |
| dist: trusty |
| |
| addons: |
| apt: |
| packages: |
| - autoconf-archive |
| - libcmocka0 |
| - libcmocka-dev |
| |
| install: |
| - wget https://downloads.sourceforge.net/project/ibmswtpm2/ibmtpm532.tar |
| - sha256sum ibmtpm532.tar | grep -q ^abc0b420257917ccb42a9750588565d5e84a2b4e99a6f9f46c3dad1f9912864f |
| - mkdir ibmtpm532 |
| - tar axf ibmtpm532.tar -C ibmtpm532 |
| - make -C ibmtpm532/src -j$(nproc) |
| |
| before_script: |
| - ./bootstrap |
| |
| script: |
| - mkdir ./build |
| - pushd ./build |
| - ../configure --enable-unit --with-simulatorbin=$(pwd)/../ibmtpm532/src/tpm_server |
| - make -j$(nproc) |
| - make -j$(nproc) check |
| - | |
| for LOG in $(ls -1 test/unit/*.log); do |
| echo "${LOG}" |
| cat ${LOG} |
| done |
| - | |
| for LOG in $(ls -1 test/integration/*.log); do |
| echo "${LOG}" |
| cat ${LOG} |
| done |
| - cat test/tpmclient/tpmclient.log |