diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2017-08-01 07:08:29 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2017-08-01 07:08:29 +0200 |
commit | d9883ee64215ee91bfe1cc3e75c83ec6e6875671 (patch) | |
tree | a63cb58f6dec8f1bd92ad5a4c0108c7fd7e0697d /test | |
parent | e06773add6bbecdf9ce797412ff0125780ba635d (diff) | |
download | aur-d9883ee64215ee91bfe1cc3e75c83ec6e6875671.tar.gz aur-d9883ee64215ee91bfe1cc3e75c83ec6e6875671.tar.xz |
mkpkglists: Generate a list of user names
In addition to the packages list and the package base list, also create
a list of registered user names.
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/setup.sh | 1 | ||||
-rwxr-xr-x | test/t2100-mkpkglists.sh | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/test/setup.sh b/test/setup.sh index efa1ab86..d98c49c6 100644 --- a/test/setup.sh +++ b/test/setup.sh @@ -61,6 +61,7 @@ server = file://$(pwd)/remote/ [mkpkglists] packagesfile = packages.gz pkgbasefile = pkgbase.gz +userfile = users.gz EOF cat >sendmail.sh <<-\EOF diff --git a/test/t2100-mkpkglists.sh b/test/t2100-mkpkglists.sh index 1e2edc38..fc11d073 100755 --- a/test/t2100-mkpkglists.sh +++ b/test/t2100-mkpkglists.sh @@ -44,4 +44,22 @@ test_expect_success 'Test package list generation.' ' test_cmp actual expected ' +test_expect_success 'Test user list generation.' ' + "$MKPKGLISTS" && + cat <<-EOD >expected && + dev + tu + tu2 + tu3 + tu4 + user + user2 + user3 + user4 + EOD + gunzip users.gz && + sed "/^#/d" users >actual && + test_cmp actual expected +' + test_done |