meta-openembedded/meta-networking/recipes-devtools/perl/libauthen/libauthen-radius-perl/run-ptest
Derek Straka bd4dc89664 libauthen-radius-perl: move recipe to meta-networking
Recipe depends on radius which is located in meta-networking

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2017-10-11 16:22:49 -04:00

529 B

#!/bin/sh

prepare testing config

CONF_USERS=readlink -f /etc/raddb/users mv ${CONF_USERS} ${CONF_USERS}_orig echo "testing Cleartext-Password := "testpassword"" > ${CONF_USERS} cat ${CONF_USERS}_orig >> ${CONF_USERS}

restart radiusd server

systemctl restart radiusd || /etc/init.d/radiusd restart || { echo "FAIL: Start radiusd service." exit 1 }

run teests

perl test.pl

restore the config and restart

mv ${CONF_USERS}_orig ${CONF_USERS} systemctl restart radiusd || /etc/init.d/radiusd restart