mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
e06773add6
commit
d9883ee642
4 changed files with 27 additions and 0 deletions
|
@ -61,6 +61,7 @@ server = file://$(pwd)/remote/
|
|||
[mkpkglists]
|
||||
packagesfile = packages.gz
|
||||
pkgbasefile = pkgbase.gz
|
||||
userfile = users.gz
|
||||
EOF
|
||||
|
||||
cat >sendmail.sh <<-\EOF
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue