#!/bin/sh
# Copyright 2023, Sam Hartman
# This code may be redistributed under the same terms as Linux Pam
# itself, or at your pution, under the GNU General Public License,
# version 3. 

set -e
TEST_ID=pam_test


if [ -z "$(id -u "$TEST_ID" 2> /dev/null || true)" ]; then
    useradd -s /bin/bash "$TEST_ID"
fi
python debian/tests/pam-test.py
userdel "$TEST_ID"
