Skip to content

Commit

Permalink
tDefine sig-tests
Browse files Browse the repository at this point in the history
Install file signatures.
  • Loading branch information
mimizohar committed May 20, 2024
1 parent 046c3ff commit f8f1b6d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ jobs:
env:
CC: clang
TSS: ibmtss
TESTGROUP: "sig-tests"

- container: "fedora:latest"
env:
Expand Down
12 changes: 3 additions & 9 deletions ci/fedora.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,11 @@ esac

#fstype=$(df --output=fstype /bin/more | awk 'NR>1')
#if [ ! ${fstype:0:4} == fuse ]; then
if [ ! -z "$TESTGROUP" ] && [ "$TESTGROUP" == "all" ]; then
set -x
echo "testgroup: $TESTGROUP"
echo "Installing rpm-plugin-ima"
if [ ! -z "$TESTGROUP" ] && \
[ "$TESTGROUP" == "all" ] || [ "$TESTGROUP" == "sig-tests" ]; then
echo "($TESTGROUP): Installing rpm-plugin-ima"
yum -y install rpm-plugin-ima || true
set +x
else
set -x
echo "testgroup: $TESTGROUP"
echo "Not installing rpm-plugin-ima"
set +x
fi

yum -y install \
Expand Down
5 changes: 5 additions & 0 deletions tests/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,8 @@ self-tests:
.PHONY: kernel-tests
kernel-tests:
make check TESTS="boot_aggregate.test fsverity.test portable_signatures.test ima_policy_check.test mmap_check.test evm_hmac.test"

.PHONY: sig-tests
sig-tests:
make check TESTS="ima_hash.test sign_verify.test"

0 comments on commit f8f1b6d

Please sign in to comment.