File: selftest

package info (click to toggle)
mbedtls 2.4.2-1%2Bdeb9u3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 13,208 kB
  • sloc: ansic: 66,438; sh: 5,507; perl: 1,440; cpp: 1,183; makefile: 785; tcl: 4
file content (19 lines) | stat: -rw-r--r-- 428 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# autopkgtest check: Build and run the mbedtls "selftest" program

set -e

# Require $ADTTMP for temporary build files
if [ -z "$ADTTMP" ]
then
	echo "Required envvar \"$ADTTMP\"is not set" >&2
	exit 1
fi

# Build mbedtls_selftest
gcc -Wall -Werror programs/test/selftest.c -o "$ADTTMP/mbedtls_selftest" -lmbedcrypto -lmbedx509 -lmbedtls
echo "build: OK"

# Run the testsuite
"$ADTTMP/mbedtls_selftest"
echo "run: OK"