debuginfod: Fracture tests/run-debuginfod-find.sh into specific tests
authorNoah Sanci <nsanci@redhat.com>
Tue, 10 Aug 2021 15:21:35 +0000 (11:21 -0400)
committerMark Wielaard <mark@klomp.org>
Fri, 3 Sep 2021 08:40:52 +0000 (10:40 +0200)
commitef856762088bcd85ac9121b129dba0c6910369a2
treeb33ae613f227794530adf125dc3e4ff0101f55e5
parent6eb991a9ebc45cc468a049ef30a98a0f7cad4a0d
debuginfod: Fracture tests/run-debuginfod-find.sh into specific tests

tests/run-debuginfod-find.sh was a massive test script with many broadly
varying tests. This caused the test script to fail when any number of
things went wrong and because of its intertwined nature, detecting the
source of a failure could be difficult. The size of the test script
also meant many unrelated tests were run making the testing process
unnecessarily lengthy.

This patch fractures tests/run-debuginfod-find.sh into smaller, more
manageable individual test script files. This ensures that when failure
occurs, a programmer can easily determine where their patch went
wrong. It also allows programmers to specify exactly which tests to
run, making testing more efficient. Redundancies are also reduced by
placing code in tests/debuginfod-subr.sh.

Signed-off-by: Noah Sanci <nsanci@redhat.com>
25 files changed:
tests/ChangeLog
tests/Makefile.am
tests/debuginfod-subr.sh [new file with mode: 0755]
tests/run-debuginfod-000-permission.sh [new file with mode: 0755]
tests/run-debuginfod-archive-groom.sh [new file with mode: 0755]
tests/run-debuginfod-archive-rename.sh [new file with mode: 0755]
tests/run-debuginfod-archive-test.sh [new file with mode: 0755]
tests/run-debuginfod-artifact-running.sh [new file with mode: 0755]
tests/run-debuginfod-dlopen.sh [new file with mode: 0755]
tests/run-debuginfod-duplicate-urls.sh [new file with mode: 0755]
tests/run-debuginfod-extraction.sh [new file with mode: 0755]
tests/run-debuginfod-fd-prefetch-caches.sh [new file with mode: 0755]
tests/run-debuginfod-federation-link.sh [new file with mode: 0755]
tests/run-debuginfod-federation-metrics.sh [new file with mode: 0755]
tests/run-debuginfod-federation-sqlite.sh [new file with mode: 0755]
tests/run-debuginfod-file.sh [new file with mode: 0755]
tests/run-debuginfod-find.sh [deleted file]
tests/run-debuginfod-malformed.sh [new file with mode: 0755]
tests/run-debuginfod-no-urls.sh [new file with mode: 0755]
tests/run-debuginfod-query-retry.sh [new file with mode: 0755]
tests/run-debuginfod-regex.sh [new file with mode: 0755]
tests/run-debuginfod-sizetime.sh [new file with mode: 0755]
tests/run-debuginfod-tmp-home.sh [new file with mode: 0755]
tests/run-debuginfod-writable.sh [new file with mode: 0755]
tests/run-debuginfod-x-forwarded-for.sh [new file with mode: 0755]