summaryrefslogtreecommitdiffstats
path: root/test/t2100-mkpkglists.sh
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/t2100-mkpkglists.sh
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/t2100-mkpkglists.sh')
-rwxr-xr-xtest/t2100-mkpkglists.sh18
1 files changed, 18 insertions, 0 deletions
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