Age | Commit message (Collapse) | Author |
|
|
|
|
|
"Ignore space change" might be helpful when viewing this diff.
|
|
|
|
If $TMPDIR is permissively owned (as /tmp is), then sshd will refuse to
look at the AuthorizedKeysFile. So bypass that permission check by
configuring AuthrorizedKeysCommand to just `cat` that file.
|
|
If /run/user/$UID/ doesn't exist, then the gpg-agent socket will be in
$GNUPGHOME, which is inside of $tmpdir. Because the $BATS_TEST_NAME is
embedded in $tmpdir, the path might be quite long, and hit the 108-byte
limit on socket paths, which GnuPG does nothing to check for or handle.
So, don't embed $BATS_TEST_NAME in $tmpdir, in order to keep the path
shorter.
|
|
common_setup might have errored before setting tmpdir or chrootdir; handle
those cases.
|
|
|
|
Its value is configurable in libretools.conf.
I discussed this eventual change in my dbscripts plans on the mailing list.
|
|
https://labs.parabola.nu/issues/1411
https://labs.parabola.nu/issues/1412
I have verified that the test fails with commit
0b8606e0cd0e1aedfe222d4d6603c4986aacb7b5 ("librerelease: Fix rmdir
failing") reverted.
|
|
This reverts commit 70b9f3cdcabc217609be96cfdd1fd47133aa273b.
|
|
The implementation is not dual-stack. It supports *either* IPv4 or IPv6.
I'm not entirely sure how it chooses.
Clients that support happy-eyeballs will do thing right thing, but clients
that don't (*cough* openssh) won't. So explicitly choose the IPv4
localhost instead of using an ambiguous "localhost".
|
|
Use local variables.
|
|
distcc-tool [ci-skip]
|
|
It was written by me, in May 2018.
|
|
|
|
for file in test/cases/*.bats; do
name=$(sed -n 's/^describe //p' -- "$file")
sed -ri '
# Remove the roundup shebang
/^#!\/usr\/bin\/env roundup$/d
# Use $BATS_TEST_NAME instead of $roundup_test_name
s,roundup_test_name,BATS_TEST_NAME,g
# Use BATS built-in "skip" instead of just succeeding
/^\trequire /s/\|\| return 0$/|| skip/
# Remove the chroot message, does not play well with BATS output
/Creating a chroot, may take a few minutes/d
# Update file locations
s,^\. \./test-common\.sh$,load ../lib/common,
s,\b(libre(chroot|dbdiff|fetch|makepkg|stage|xgettext)|pkgbuild-check-nonfree|toru)\.d\b,fixtures/\1,g
# In BATS, the hook is setup(), not before()
s,^before\(\),setup(),
s,^\tcommon_before$,\tcommon_setup,
# Convert test definitions from
# describe FOO
# it_does_a_thing() { … }
# to
# @test "FOO does a thing" { … }
/^describe /d
/^it_/ {
s/_/ /g
s,^it (.*)\(\),@test "'"$name"' \1\",
}
' \
-- "$file"
# Remove leading newline that might have been left behind by the above
sed -i '1{/^$/d}' -- "$file"
git add "$file"
done
sed -i \
-e 's,librexgettext\.d,fixtures/librexgettext,g' \
-e 's,/it_,/test_librexgettext_,g' \
-- test/fixtures/librexgettext/*
git add test/fixtures/librexgettext/*
|
|
But don't edit them yet.
This directory structure is based on that of dbscripts.
|
|
|
|
With $HOME now being owned by test-common.sh instead of testenv, it's
sufficiently short-lived that we don't need to worry about reverting
changes we make to it.
|
|
- move REPODEST to common.bash
- don't bother setting PKGEXT
|
|
|
|
|
|
Some files were marked executable that shouldn't have been.
|
|
|
|
Instead of using in inconsistent mish-mash of `mkdir` and `echo >` and
`printf >>`, use more readable and identifiable indented-heredocs:
install -Dm644 /dev/stdin "FILENAME" <<-eot
CONTENTS
eot
|
|
It's already set that way in setup() of that file.
|
|
|
|
|
|
|
|
The big reason for having it separate was that we needed to install an
expensive after(). But, since that part of cleanup is now owned by
testenv, that's not a concern.
|
|
Instead, make the default before() an alias for common_before(), which test
files can call if they override before().
|
|
|
|
For consistency with other tests.
|
|
The effective change is that CARCH is added to the list.
|
|
|
|
Instead of having librefetch-test.sh do it.
|
|
codes
The name "status" was chosen because BATS initializes status=0; if we
switch from Roundup to BATS, our common setup won't need set it
anymore.
Accomplish this with:
$ sed -ri -e 's/\$(stat|ret|r)\b/$status/g' -e 's/\b(stat|ret|r)=/status=/g' test/*.sh
$ sed -ri '/^\s*(local\s+)?status=0$/d' test/*-test.sh
|
|
|
|
|
|
|
|
This should have been part of the earlier commit. Oh well.
|
|
|
|
|
|
|
|
https://labs.parabola.nu/issues/1311
|
|
|
|
|
|
|
|
|