Blame tests/p_shadow-utils/10-basic_test
|
Athmane Madjoudj |
536354 |
#!/bin/bash
|
|
Athmane Madjoudj |
536354 |
# Author: Iain Douglas <centos@1n6.org.uk>
|
|
Athmane Madjoudj |
536354 |
#
|
|
Athmane Madjoudj |
536354 |
# Basic tests for the shadow utils package. Check that the /etc/default
|
|
Athmane Madjoudj |
536354 |
# directory and /etc/default/useradd files exist.
|
|
Athmane Madjoudj |
536354 |
|
|
Athmane Madjoudj |
536354 |
t_Log "Running $0 Basic tests"
|
|
Athmane Madjoudj |
536354 |
|
|
Athmane Madjoudj |
536354 |
echo "Check packace files exist"
|
|
Athmane Madjoudj |
536354 |
[[ -d /etc/default ]] || { t_Log "FAIL: /etc/default missing"; exit $FAIL; }
|
|
Athmane Madjoudj |
536354 |
[[ -e /etc/default/useradd ]] || { t_Log "FAIL: /etc/default/useradd missing"; exit $FAIL; }
|
|
Athmane Madjoudj |
536354 |
[[ -e /etc/login.defs ]] || { t_Log "FAIL: /etc/login.defs missing"; exit $FAIL; }
|
|
Athmane Madjoudj |
536354 |
t_Log "PASS"
|