first commit
This commit is contained in:
commit
32a7ba8e8f
168 files changed
+123856
No files matched your search
+15
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
# Run against the exact bundled libssh2 archive produced by the Cargo build.
|
||||
set -eu
|
||||
if [ "$#" -ne 1 ] || [ ! -f "$1" ]; then
|
||||
echo "Usage: $0 /absolute/path/to/target/.../out/build/libssh2.a" >&2
|
||||
exit 2
|
||||
fi
|
||||
test_root=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
||||
test_temp=$(mktemp -d)
|
||||
trap 'rm -rf "$test_temp"' EXIT HUP INT TERM
|
||||
"${CC:-cc}" -std=c99 -O2 -DNDEBUG -Wall -Wextra -Werror \
|
||||
-I"$test_root/../libssh2/include" \
|
||||
"$test_root/security-regression.c" "$1" -lssl -lcrypto -lz \
|
||||
-o "$test_temp/security-regression"
|
||||
"$test_temp/security-regression"
|
||||
Reference in new issue
Block a user