summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2017-08-01 07:08:29 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2017-08-01 07:08:29 +0200
commitd9883ee64215ee91bfe1cc3e75c83ec6e6875671 (patch)
treea63cb58f6dec8f1bd92ad5a4c0108c7fd7e0697d /test
parente06773add6bbecdf9ce797412ff0125780ba635d (diff)
downloadaur-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.sh1
-rwxr-xr-xtest/t2100-mkpkglists.sh18
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