#!/bin/bash
# -*- mode: sh; tab-width: 8; coding: utf-8-unix -*-

prog=`basename $0 .bash`
PREFIX=/usr/local
ROLE=proxy
[ -f /usr/local/etc/testforge/testforge.bash ] && . /usr/local/etc/testforge/testforge.bash
[ `id -u` -eq 0 ] || echo ERROR: $prog should be run as root && exit 2

DESC=""

cd $PREFIX/src || exit 4

which sdwdate >/dev/null 2>/dev/null || \
  [ -f $PREFIX/bin/sdwdate.bash ] || \
    sh sdwdate.bash

[ -f testssl.sh ] || \
  sh testssl.bash || exit 7$?

[ -x ../bin/analyze-ssl.pl.bash ] || \
  sh analyze-ssl.bash

exit 0
