summaryrefslogtreecommitdiff
path: root/test/cases
AgeCommit message (Collapse)Author
2018-10-15libremakepkg: Add -S flag to use an existing source packageLuke Shumaker
"Ignore space change" might be helpful when viewing this diff.
2018-10-04test: librerelease: Verify that it requires DBSCRIPTS_CONFIG to be set [ci-skip]Luke Shumaker
2018-10-04test: librerelease: Use AuthorizedKeysCommand to bypass perm checks on $TMPDIRLuke Shumaker
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.
2018-10-03librerelease: Set DBSCRIPTS_CONFIG for db-updateLuke Shumaker
Its value is configurable in libretools.conf. I discussed this eventual change in my dbscripts plans on the mailing list.
2018-10-02test: librerelease: Add tests for the actual runLuke Shumaker
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.
2018-10-02Revert "test: librerelease: Begone with setup()"Luke Shumaker
This reverts commit 70b9f3cdcabc217609be96cfdd1fd47133aa273b.
2018-10-02test: librerelease: TidyLuke Shumaker
Use local variables.
2018-10-02test: libremakepkg: Verify that it correctly forwards ports through ↵Luke Shumaker
distcc-tool [ci-skip]
2018-10-01(BATS) test: Manual Roundup→BATS conversionLuke Shumaker
2018-10-01(BATS) test/cases: Automated Roundup→BATS conversionLuke Shumaker
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/*
2018-10-01(BATS) test: Move files aroundLuke Shumaker
But don't edit them yet. This directory structure is based on that of dbscripts.