Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zstd
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
yocto-mirrors
zstd
Commits
35208f70
Commit
35208f70
authored
3 years ago
by
W. Felix Handte
Browse files
Options
Downloads
Patches
Plain Diff
Add Test Validating Stack is not Executable in playTests.sh
parent
9a9d1ec6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/playTests.sh
+9
-0
9 additions, 0 deletions
tests/playTests.sh
with
9 additions
and
0 deletions
tests/playTests.sh
+
9
−
0
View file @
35208f70
...
...
@@ -304,6 +304,15 @@ zstd -d -f tmp_corrupt.zst --no-check
zstd
-d
-f
tmp_corrupt.zst
--check
--no-check
# final flag overrides
zstd
-d
-f
tmp.zst
--no-check
if
[
"
$isWindows
"
=
false
]
;
then
if
[
-n
"
$(
which readelf
)
"
]
;
then
println
"test: check if binary has executable stack"
file
"
$ZSTD_BIN
"
readelf
-lW
"
$ZSTD_BIN
"
readelf
-lW
"
$ZSTD_BIN
"
|
grep
'GNU_STACK .* RW '
||
die
"zstd binary has executable stack!"
fi
fi
println
"
\n
===> zstdgrep tests"
ln
-sf
"
$ZSTD_BIN
"
zstdcat
rm
-f
tmp_grep
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment