diff options
author | Christian Perrier <bubulle@debian.org> | 2013-07-27 18:38:24 +0200 |
---|---|---|
committer | Christian Perrier <bubulle@debian.org> | 2013-07-27 18:38:24 +0200 |
commit | 5e7263d5769fdec5cdc9fd8a9e73611c14714edd (patch) | |
tree | 113e8de082a356ec4bf1b4f1fb1518a5155d9874 /tests/cktools/pwck/13_pwck_duplicate_entry_passwd | |
parent | 03e6eeb8bb4697fa0e488fabcf507f907f244925 (diff) | |
download | shadow-5e7263d5769fdec5cdc9fd8a9e73611c14714edd.tar.gz |
Drop tests/ from the debian branchdebian
Diffstat (limited to 'tests/cktools/pwck/13_pwck_duplicate_entry_passwd')
8 files changed, 0 insertions, 177 deletions
diff --git a/tests/cktools/pwck/13_pwck_duplicate_entry_passwd/config.txt b/tests/cktools/pwck/13_pwck_duplicate_entry_passwd/config.txt deleted file mode 100644 index 01189bd6..00000000 --- a/tests/cktools/pwck/13_pwck_duplicate_entry_passwd/config.txt +++ /dev/null @@ -1,2 +0,0 @@ -user foo -group foo with typo in group diff --git a/tests/cktools/pwck/13_pwck_duplicate_entry_passwd/config/etc/group b/tests/cktools/pwck/13_pwck_duplicate_entry_passwd/config/etc/group deleted file mode 100644 index fecba0c4..00000000 --- a/tests/cktools/pwck/13_pwck_duplicate_entry_passwd/config/etc/group +++ /dev/null @@ -1,42 +0,0 @@ -root:x:0: -daemon:x:1: -bin:x:2: -sys:x:3: -adm:x:4: -tty:x:5: -disk:x:6: -lp:x:7: -mail:x:8: -news:x:9: -uucp:x:10: -man:x:12: -proxy:x:13: -kmem:x:15: -dialout:x:20: -fax:x:21: -voice:x:22: -cdrom:x:24: -floppy:x:25: -tape:x:26: -sudo:x:27: -audio:x:29: -dip:x:30: -www-data:x:33: -backup:x:34: -operator:x:37: -list:x:38: -irc:x:39: -src:x:40: -gnats:x:41: -shadow:x:42: -utmp:x:43: -video:x:44: -sasl:x:45: -plugdev:x:46: -staff:x:50: -games:x:60: -users:x:100: -nogroup:x:65534: -crontab:x:101: -Debian-exim:x:102: -foo:x:1000: diff --git a/tests/cktools/pwck/13_pwck_duplicate_entry_passwd/config/etc/gshadow b/tests/cktools/pwck/13_pwck_duplicate_entry_passwd/config/etc/gshadow deleted file mode 100644 index 5042e581..00000000 --- a/tests/cktools/pwck/13_pwck_duplicate_entry_passwd/config/etc/gshadow +++ /dev/null @@ -1,42 +0,0 @@ -root:*:: -daemon:*:: -bin:*:: -sys:*:: -adm:*:: -tty:*:: -disk:*:: -lp:*:: -mail:*:: -news:*:: -uucp:*:: -man:*:: -proxy:*:: -kmem:*:: -dialout:*:: -fax:*:: -voice:*:: -cdrom:*:: -floppy:*:: -tape:*:: -sudo:*:: -audio:*:: -dip:*:: -www-data:*:: -backup:*:: -operator:*:: -list:*:: -irc:*:: -src:*:: -gnats:*:: -shadow:*:: -utmp:*:: -video:*:: -sasl:*:: -plugdev:*:: -staff:*:: -games:*:: -users:*:: -nogroup:*:: -crontab:x:: -Debian-exim:x:: -foo:*:: diff --git a/tests/cktools/pwck/13_pwck_duplicate_entry_passwd/config/etc/passwd b/tests/cktools/pwck/13_pwck_duplicate_entry_passwd/config/etc/passwd deleted file mode 100644 index 33debc51..00000000 --- a/tests/cktools/pwck/13_pwck_duplicate_entry_passwd/config/etc/passwd +++ /dev/null @@ -1,12 +0,0 @@ -root:x:0:0:root:/root:/bin/bash -daemon:x:1:1:daemon:/usr/sbin:/bin/sh -bin:x:2:2:bin:/bin:/bin/sh -sys:x:3:3:sys:/dev:/bin/sh -sync:x:4:65534:sync:/bin:/bin/sync -games:x:5:60:games:/usr/games:/bin/sh -man:x:6:12:man:/var/cache/man:/bin/sh -mail:x:8:8:mail:/var/mail:/bin/sh -proxy:x:13:13:proxy:/bin:/bin/sh -backup:x:34:34:backup:/var/backups:/bin/sh -foo:x:1000:1000::/home:/bin/sh -foo:x:1001:1001::/home:/bin/sh diff --git a/tests/cktools/pwck/13_pwck_duplicate_entry_passwd/config/etc/shadow b/tests/cktools/pwck/13_pwck_duplicate_entry_passwd/config/etc/shadow deleted file mode 100644 index d3c0775b..00000000 --- a/tests/cktools/pwck/13_pwck_duplicate_entry_passwd/config/etc/shadow +++ /dev/null @@ -1,11 +0,0 @@ -root:$1$NBLBLIXb$WUgojj1bNuxWEADQGt1m9.:12991:0:99999:7::: -daemon:*:12977:0:99999:7::: -bin:*:12977:0:99999:7::: -sys:*:12977:0:99999:7::: -sync:*:12977:0:99999:7::: -games:*:12977:0:99999:7::: -man:*:12977:0:99999:7::: -mail:*:12977:0:99999:7::: -proxy:*:12977:0:99999:7::: -backup:*:12977:0:99999:7::: -foo:!:12977:0:99999:7::: diff --git a/tests/cktools/pwck/13_pwck_duplicate_entry_passwd/data/passwd b/tests/cktools/pwck/13_pwck_duplicate_entry_passwd/data/passwd deleted file mode 100644 index a45f378a..00000000 --- a/tests/cktools/pwck/13_pwck_duplicate_entry_passwd/data/passwd +++ /dev/null @@ -1,11 +0,0 @@ -root:x:0:0:root:/root:/bin/bash -daemon:x:1:1:daemon:/usr/sbin:/bin/sh -bin:x:2:2:bin:/bin:/bin/sh -sys:x:3:3:sys:/dev:/bin/sh -sync:x:4:65534:sync:/bin:/bin/sync -games:x:5:60:games:/usr/games:/bin/sh -man:x:6:12:man:/var/cache/man:/bin/sh -mail:x:8:8:mail:/var/mail:/bin/sh -proxy:x:13:13:proxy:/bin:/bin/sh -backup:x:34:34:backup:/var/backups:/bin/sh -foo:x:1001:1001::/home:/bin/sh diff --git a/tests/cktools/pwck/13_pwck_duplicate_entry_passwd/pwck.exp b/tests/cktools/pwck/13_pwck_duplicate_entry_passwd/pwck.exp deleted file mode 100755 index 9c460ce4..00000000 --- a/tests/cktools/pwck/13_pwck_duplicate_entry_passwd/pwck.exp +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/expect - -set timeout 2 -expect_after default {puts "\nFAIL"; exit 1} - -spawn /bin/sh -send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" -expect "# " - -send "pwck\r" -expect "duplicate password entry" -expect "delete line 'foo:x:1000:1000::/home:/bin/sh'? " -send "yes\r" -expect "pwck: the files have been updated" -expect "# " -send "echo \$?\r" -expect "2" -send "exit\r" -puts "OK\n" -exit 0 diff --git a/tests/cktools/pwck/13_pwck_duplicate_entry_passwd/pwck.test b/tests/cktools/pwck/13_pwck_duplicate_entry_passwd/pwck.test deleted file mode 100755 index 4d4b9576..00000000 --- a/tests/cktools/pwck/13_pwck_duplicate_entry_passwd/pwck.test +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../../common/config.sh -. ../../../common/log.sh - -log_start "$0" "grpck check that user are uniq" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -./pwck.exp - -echo -n "Check the passwd file..." -../../../common/compare_file.pl data/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - |