#!/bin/sh

set -e

# Excercise some of the demos
polarssl_hello
polarssl_mpi_demo

# Make sure output is identical to coreutil versions
[ "$(polarssl_sha1sum /etc/passwd)" = "$(sha1sum /etc/passwd)" ]
[ "$(polarssl_md5sum /etc/passwd)" = "$(md5sum /etc/passwd)" ]

# Run the selftest
polarssl_selftest

echo 'Smoke test of polarssl succesful'
exit 0
