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

Some work on man pages... #946

Merged
merged 2 commits into from
Nov 8, 2024

man: Add some clarification to the nameing of profiles in files

67fcdc0
Select commit
Loading
Failed to load commit list.
Merged

Some work on man pages... #946

man: Add some clarification to the nameing of profiles in files
67fcdc0
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Pull Request succeeded Nov 8, 2024 in 54m 41s

Build Passed

The build passed, just like the previous build.

Details

This is a pull request build.

It is running a build against the merge commit, after merging #946 Some work on man pages....
Any changes that have been made to the master branch before the build ran are also included.

Jobs and Stages

This build has five jobs, running in parallel.

Job ENV OS State
4966.1 COVERITY_SCAN_TOKEN=[secure] Linux passed
4966.2 COVERITY_SCAN_TOKEN=[secure] Linux passed
4966.3 COVERITY_SCAN_TOKEN=[secure] Linux passed
4966.4 COVERITY_SCAN_TOKEN=[secure] Linux passed
4966.5 COVERITY_SCAN_TOKEN=[secure] Linux passed

Build Configuration

Build Option Setting
Language C
Operating System Linux (Focal)
Build Configuration
{
  "language": "c",
  "os": [
    "linux"
  ],
  "dist": "focal",
  "env": [
    "global=COVERITY_SCAN_TOKEN=[secure]"
  ],
  "sudo": true,
  "addons": {
    "apt": {
      "packages": [
        "automake",
        "autoconf",
        "libtool",
        "libssl-dev",
        "sed",
        "make",
        "gawk",
        "sed",
        "bash",
        "dh-exec",
        "python3-pip",
        "libfuse-dev",
        "libglib2.0-dev",
        "libjson-glib-dev",
        "libgmp-dev",
        "expect",
        "libtasn1-dev",
        "socat",
        "findutils",
        "gnutls-dev",
        "gnutls-bin",
        "softhsm2",
        "libseccomp-dev",
        "tss2"
      ]
    },
    "coverity_scan": {
      "project": {
        "name": "swtpm",
        "description": "Build submitted via Travis CI"
      },
      "notification_email": "stefanb@linux.vnet.ibm.com",
      "build_command_prepend": "git clone https://github.com/stefanberger/libtpms && cd libtpms && ./autogen.sh --with-openssl --prefix=/usr --with-tpm2 && make -j$(${NPROC:-nproc}) && sudo make install && cd .. && ./autogen.sh --with-openssl",
      "build_command": "make -j$(${NPROC:-nproc})",
      "branch_pattern": "coverity_scan"
    }
  },
  "before_install": [
    "test $TRAVIS_BRANCH != coverity_scan -o ${TRAVIS_JOB_NUMBER##*.} = 1 || exit 0",
    "if [ \"$(uname -s)\" = \"Linux\" ]; then\n  sudo rm -rf /dev/tpm* # This is a work-around for Bionic where trousers otherwise fails to install\n  sudo apt-get -y install trousers\nfi\n"
  ],
  "script": [
    "sudo pip3 install --upgrade pip==20.3.3",
    "if [ ! -d libtpms ]; then git clone https://github.com/stefanberger/libtpms; fi",
    "cd libtpms",
    "if [ -n \"${LIBTPMS_GIT_CHECKOUT}\" ]; then git checkout \"${LIBTPMS_GIT_CHECKOUT}\" -b testing; fi",
    "CFLAGS=\"${LIBTPMS_CFLAGS:--g -O2}\" LDFLAGS=\"${LIBTPMS_LDFLAGS}\" ./autogen.sh --with-openssl --prefix=${LIBTPMS_PREFIX:-/usr} --with-tpm2 ${LIBTPMS_CONFIG} && make -j$(${NPROC:-nproc}) && sudo make install",
    "cd ..",
    "./autogen.sh ${CONFIG} && ${SUDO} make clean && export SWTPM_TEST_EXPENSIVE=${SWTPM_TEST_EXPENSIVE:-1} && export SWTPM_TEST_IBMTSS2=${SWTPM_TEST_IBMTSS2:-0} && export SWTPM_TEST_STORE_VOLATILE=${SWTPM_TEST_STORE_VOLATILE:-0} && ${SUDO} make -j$(${NPROC:-nproc}) ${CHECK} VERBOSE=1",
    "if [ -n \"${RUN_TEST}\" ]; then sudo make install && sudo ${PREFIX}/bin/swtpm_setup --tpmstate /tmp --create-ek-cert --create-platform-cert --tpm2 || { exit 1; }; fi"
  ],
  "after_failure": [
    "for f in tests/*.log; do echo \">>>>>>> $f <<<<<<<\"; cat $f; done"
  ],
  "jobs": {
    "include": [
      {
        "env": [
          {
            "PREFIX": "\"/usr\"",
            "CONFIG": "\"--with-openssl --prefix=${PREFIX}\"",
            "CHECK": "\"distcheck\"",
            "RUN_TEST": "\"1\""
          }
        ]
      },
      {
        "dist": "jammy",
        "env": [
          {
            "PREFIX": "\"/usr\"",
            "CONFIG": "\"--with-openssl --prefix=/usr --enable-test-coverage\"",
            "SUDO": "\"sudo\"",
            "CHECK": "\"check\"",
            "SWTPM_TEST_IBMTSS2": "\"1\"",
            "SWTPM_TEST_STORE_VOLATILE": "\"1\""
          }
        ],
        "before_script": [
          "sudo apt-get -y install libtpm2-pkcs11-tools",
          "sudo pip install cpp-coveralls",
          "p=$PWD; while [ \"$PWD\" != \"/\" ]; do chmod o+x . &>/dev/null ; cd .. ; done; cd $p && sudo mkdir src/swtpm/.libs && sudo chown nobody src/swtpm src/swtpm/.libs"
        ],
        "after_success": [
          "uidgid=\"$(id -nu):$(id -ng)\" && sudo chown -R ${uidgid} ./ && cpp-coveralls --gcov-options '\\-lp' -e libtpms"
        ]
      },
      {
        "env": [
          {
            "CFLAGS": "\"-fsanitize=address -g -fno-omit-frame-pointer -fno-sanitize-recover\"",
            "LIBTPMS_CFLAGS": "\"-fsanitize=address -g -fno-omit-frame-pointer -fno-sanitize-recover\"",
            "LIBS": "\"-lasan\"",
            "ASAN_OPTIONS": "\"halt_on_error=1\"",
            "PREFIX": "\"/usr\"",
            "CONFIG": "\"--with-openssl --prefix=${PREFIX} --without-seccomp\"",
            "SUDO": "\"sudo\"",
            "CHECK": "\"check\""
          }
        ]
      },
      {
        "env": [
          {
            "CFLAGS": "\"-fsanitize=address -g -fno-omit-frame-pointer -fno-sanitize-recover\"",
            "LIBTPMS_CFLAGS": "\"-fsanitize=address -g -fno-omit-frame-pointer -fno-sanitize-recover\"",
            "LIBTPMS_CONFIG": "\"--disable-use-openssl-functions\"",
            "LIBS": "\"-lasan\"",
            "ASAN_OPTIONS": "\"halt_on_error=1\"",
            "PREFIX": "\"/usr\"",
            "CONFIG": "\"--with-openssl --prefix=${PREFIX} --without-seccomp\"",
            "SUDO": "\"sudo\"",
            "CHECK": "\"check\""
          }
        ]
      },
      {
        "env": [
          {
            "CFLAGS": "\"-fsanitize=undefined -g -fno-omit-frame-pointer -fno-sanitize-recover\"",
            "LIBTPMS_CFLAGS": "\"-fsanitize=undefined -g -fno-omit-frame-pointer -fno-sanitize-recover\"",
            "LIBS": "\"-lubsan\"",
            "UBSAN_OPTIONS": "\"halt_on_error=1\"",
            "PREFIX": "\"/usr\"",
            "CONFIG": "\"--with-openssl --prefix=${PREFIX}\"",
            "SUDO": "\"sudo\"",
            "CHECK": "\"check\""
          }
        ]
      }
    ]
  }
}