mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-10-03 23:38:25 +00:00
This commit adds functions to testlib for the following: - generate_certificate - create_trusted_cacert - destroy_trusted_cacert These functions are used to create a self-signed public/private key pair, create a trusted key store for the test environment with a public key, and to delete the trusted key store. For the test environment to use the trusted key store, swupd must be configured using --with-fallback-capaths=<path to key store>. This configuration option has been added to autogen and travis. Signed-off-by: John Akre <john.w.akre@intel.com>
20 lines
536 B
Bash
Executable File
20 lines
536 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
autoreconf --force --install --symlink --warnings=all
|
|
|
|
# The client certificate tests are skipped by default, but require an
|
|
# alternative trust store for the test web server's public key. To enable
|
|
# the trust store for the client certificate tests, the following configuration
|
|
# argument must be added to args:
|
|
# --with-fallback-capaths=/tmp/swupd_test_certificates
|
|
args="\
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--prefix=/usr \
|
|
--enable-silent-rules"
|
|
|
|
./configure CFLAGS="-g -O2 $CFLAGS" $args "$@"
|
|
make clean
|