shadow/tests
Serge Hallyn b999d48941 Add tests from the old svn tree
We're losing the svn history (which we could probably keep if we tried
hard enough) but don't consider that worthwhile.

Note these tests are destructive, so run them only in a throwaway
environment like a chroot, container, or vm.

The tests/run.all script should be the one which launches all the tests.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
2014-09-17 14:42:55 -05:00
..
chage Add tests from the old svn tree 2014-09-17 14:42:55 -05:00
chroot Add tests from the old svn tree 2014-09-17 14:42:55 -05:00
chsh Add tests from the old svn tree 2014-09-17 14:42:55 -05:00
cktools Add tests from the old svn tree 2014-09-17 14:42:55 -05:00
common Add tests from the old svn tree 2014-09-17 14:42:55 -05:00
convtools Add tests from the old svn tree 2014-09-17 14:42:55 -05:00
cptools Add tests from the old svn tree 2014-09-17 14:42:55 -05:00
crypt Add tests from the old svn tree 2014-09-17 14:42:55 -05:00
debian Add tests from the old svn tree 2014-09-17 14:42:55 -05:00
expiry Add tests from the old svn tree 2014-09-17 14:42:55 -05:00
failures Add tests from the old svn tree 2014-09-17 14:42:55 -05:00
grouptools Add tests from the old svn tree 2014-09-17 14:42:55 -05:00
log Add tests from the old svn tree 2014-09-17 14:42:55 -05:00
login Add tests from the old svn tree 2014-09-17 14:42:55 -05:00
newusers Add tests from the old svn tree 2014-09-17 14:42:55 -05:00
passwd Add tests from the old svn tree 2014-09-17 14:42:55 -05:00
split_groups Add tests from the old svn tree 2014-09-17 14:42:55 -05:00
su Add tests from the old svn tree 2014-09-17 14:42:55 -05:00
usertools Add tests from the old svn tree 2014-09-17 14:42:55 -05:00
bug332198-test.exp Add tests from the old svn tree 2014-09-17 14:42:55 -05:00
bug334803-test.exp Add tests from the old svn tree 2014-09-17 14:42:55 -05:00
coverage.sh Add tests from the old svn tree 2014-09-17 14:42:55 -05:00
README Add tests from the old svn tree 2014-09-17 14:42:55 -05:00
run_all Add tests from the old svn tree 2014-09-17 14:42:55 -05:00

This testsuite is NOT SECURE: it will temporarily change your passwords file
with known passwords.
You should run it on a chroot, or on a secured dedicated system.



To test a Debian system:
	$ mkdir sid-chroot
	$ sudo debootstrap sid sid-chroot/ http://ftp.fr.debian.org/debian/
edit or copy a sources.list
	$ sudo cp /etc/apt/sources.list sid-chroot/etc/apt/
edit or copy a resolv.conf
	$ sudo cp /etc/resolv.conf sid-chroot/etc/
	$ su - root -c "chroot sid-chroot/ /bin/bash"
	# mount -t proc proc /proc
	# mount -t devpts devpts /dev/pts
	# aptitude update
	# aptitude install expect
	# cd /dev ; mknod --mode=666 /dev/ptmx c 5 2