-
Notifications
You must be signed in to change notification settings - Fork 98
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
trust: Prevent trust module being loaded by proxy module #142
Merged
Merged
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
433040c
test: Factor out common harness from test-extract.in
ueno 0511a16
trust: Fix memleak in p11_enumerate_opt_filter
ueno 4704cb6
travis: Run "make installcheck"
ueno 5b3d305
trust: Prevent trust module being loaded by proxy module
ueno a31f8de
test: Add installcheck script to test trust module
ueno 05c257e
travis: Optimize dnf install invocation
ueno File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
#!/bin/sh | ||
|
||
set -euf | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Basic fundamentals | ||
|
||
prefix=@prefix@ | ||
exec_prefix=@exec_prefix@ | ||
datarootdir=@datarootdir@ | ||
datadir=@datadir@ | ||
sysconfdir=@sysconfdir@ | ||
libdir=@libdir@ | ||
libexecdir=@libexecdir@ | ||
privatedir=@privatedir@ | ||
with_trust_paths=@with_trust_paths@ | ||
script=$(basename $0) | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Testing | ||
|
||
warning() | ||
{ | ||
echo "$script: $@" >&2 | ||
} | ||
|
||
assert_fail() | ||
{ | ||
warning $@ | ||
exit 1 | ||
} | ||
|
||
assert_contains() | ||
{ | ||
if ! grep -qF $2 $1; then | ||
assert_fail "$1 does not contain $2" | ||
fi | ||
} | ||
|
||
assert_not_contains() | ||
{ | ||
if grep -qF $2 $1; then | ||
assert_fail "$1 contains $2" | ||
fi | ||
} | ||
|
||
teardown() | ||
{ | ||
: | ||
} | ||
|
||
teardown_dirty() | ||
{ | ||
echo "not ok $TEST_NUMBER $TEST_NAME" | ||
teardown | ||
} | ||
|
||
skip() | ||
{ | ||
TEST_SKIP=yes | ||
echo "ok $TEST_NUMBER # skip $TEST_NAME: $@" | ||
} | ||
|
||
setup() | ||
{ | ||
: | ||
} | ||
|
||
run() | ||
{ | ||
TOTAL=0 | ||
for TEST_NAME in $@; do | ||
TOTAL=$(expr $TOTAL + 1) | ||
done | ||
|
||
echo "1..$TOTAL" | ||
|
||
TEST_NUMBER=0 | ||
for TEST_NAME in $@; do | ||
TEST_NUMBER=$(expr $TEST_NUMBER + 1) | ||
( | ||
trap teardown_dirty EXIT | ||
trap "teardown_dirty; exit 127" INT TERM | ||
TD="" | ||
|
||
PATH="$exec_prefix/bin:$PATH" | ||
export PATH | ||
|
||
PKG_CONFIG_PATH="$libdir/pkgconfig:$datadir/pkgconfig" | ||
export PKG_CONFIG_PATH | ||
|
||
TEST_SKIP=no | ||
setup | ||
|
||
if [ $TEST_SKIP != "yes" ]; then | ||
$TEST_NAME | ||
fi | ||
if [ $TEST_SKIP != "yes" ]; then | ||
echo "ok $TEST_NUMBER $TEST_NAME" | ||
fi | ||
|
||
trap - EXIT | ||
teardown | ||
) | ||
done | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not all installations are done at the same time? wouldn't it make them faster?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good point; I arranged the
dnf install
invocation in 05c257e.