summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2018-01-02test/test-common.sh: equals: fix quotingLuke Shumaker
2017-10-14blacklist get-rep: re-implement to query repos instead of blacklist.txtIsaac David
Rationale: https://lists.parabola.nu/pipermail/dev/2017-October/005936.html This makes get-rep a general-purpose tool for finding replacements and providers of any package, not just blacklisted-ones. It works equally well reading from full blacklist.txt lines, just pkgname lines, and unwittingly; a single line with many pkgnames. Some caveats for further discussion: - This changes behavior from showing just one replacement/provider to _all_ replacements and providers (including pkgname itself) in the repos. - By "repos" I mean the repos the executing machine is configured to access. This could be changed in the future with `expac --config` if more package databases are desired (e.g. different architecture). - Results are shown using the "repo/pkgname ..." format rather than just "pkgname ...". I think this makes the program more useful. - Results aren't reordered to ensure that the first provider of pkgname is pkgname itself. Order will be as expected otherwise, by virtue of expac parsing repos in order.
2017-10-13blacklist test: distinguish between empty string and empty line properIsaac David
Plenty of functions in libreblacklist are expected to print empty lines, so as to signify that the archpkg at that line in the input has an empty accompanying field. Printing no newline and skipping to the next archpkg is therefore a bug; one that would pass unnoticed by current tests. This is because command substitution removes trailing whitespace. I.e. the following is true: [[ $(libreblacklist get-rep <<<'') == $(libreblacklist get-rep <<<$'\n') ]] Process substitution and pipes preserve whitespace, but only the latter work with #!/usr/bin/env roundup, so we use that.
2017-10-09blacklist: implement `get-url` function from `reference` and `id` fieldsIsaac David
The blacklist allows referring to a number of trusted bug trackers to complement the information given in the reason field. However, maintainable shorthand identifiers are used instead of full URLs. Printing the latter based on the former is the job of this new functionality. This also introduces corresponding test cases and l10n strings (together with translations for the `es` locale).
2017-10-07blacklist.sh: update `normalize` and `get-reason` to reflect blacklist.txtIsaac David
the blacklist has had a couple extra fields (ref, id) for some time, but `libreblacklist` was never made aware of the change. this updates test/lib-blacklist-test.sh for the same reason, and adds a test for comment stripping under `it_normalizes_correctly()`.
2017-09-13test/librestage: mark the tests that make take a long timev20170913Luke Shumaker
2017-07-09test: librexgettext: Add testsLuke Shumaker
2017-07-09testenv: make resilient to changes in config.mkLuke Shumaker
2017-07-08test: librechroot: verify that the `-n` flag worksLuke Shumaker
2017-06-21test: conf.sh: don't assume conf.sh works in sh; use bashLuke Shumaker
2017-06-21test: librerelease: update for new REPODEST formatLuke Shumaker
2017-06-21test: librerelease: fix descriptionLuke Shumaker
2017-06-21test: conf.sh: verify that LIBREUSER is correct when `sudo sudo -u $LIBREUSER`Luke Shumaker
https://labs.parabola.nu/issues/1372
2017-05-24test: libremessages: check that setup_traps leaves stdout aloneLuke Shumaker
Everything should be on stderr.
2017-05-24test: have 'empty' checks be a bit more verboseLuke Shumaker
2017-05-23add a librerelease testLuke Shumaker
2017-05-12test: libremakepkg: add (failing) check for $startdir symlinksLuke Shumaker
2017-05-12test: librefetch: add (failing) check for unnescessary recursionLuke Shumaker
2017-05-05test: don't let `git commit` fail if user.{email,name} aren't configuredv20170505Luke Shumaker
2017-05-05test: librerelease: avoid using $HOME in testsLuke Shumaker
Prefer XDG_CONFIG_HOME where possible
2017-05-05test: librestage: add tests for the (not yet implemented) sourceball featureLuke Shumaker
2017-05-04test: toru-path: add a check for the T= option to set TORUPATHLuke Shumaker
2017-05-04test: toru-path: Add check for toru-path usage textLuke Shumaker
2017-05-04random tidy upLuke Shumaker
2017-05-04bugfix [1/2]: toru-path: Add a test for basic operation of toru-pathLuke Shumaker
2017-05-04bugfix [1/2]: libremakepkg: Check for detecting if distcc hook files existLuke Shumaker
2017-05-03libredbdiff: simplify config file generationLuke Shumaker
2017-05-03test: libredbdiff: Add another check for the option parser.Luke Shumaker
2017-05-03libredbdiff: Use _prbl for Parabola vars and _arch for Arch vars.Luke Shumaker
libredbdiff used VARNAME for Parabola variables, and VARNAME_arch for Arch variables. I found it confusing. Instead, consistently use VARNAME_prbl for Parabola variables and VARNAME_arch for Arch variables; this allows the reader to more easily see the parallels between the handling of each.
2017-05-02libredbdiff: make repos be a true array, make it configurableLuke Shumaker
2017-05-02bugfix [1/2]: libredbdiff: Add a test for handling multiple provides.Luke Shumaker
Also make the minimal changes to the program to make this testing possible.
2017-05-01bugfix [1/2]: librefetch: Add a check for failing with bogus flagsLuke Shumaker
2017-05-01bugfix [1/2]: librefetch: Add check for SRCBUILD-to-SRCBUILD operationLuke Shumaker
2017-04-19gitget: correctly handle the -f[orce] flag on bare repositoriesLuke Shumaker
2017-04-11test/librechroot: Avoid waiting for pacman confirmation.Luke Shumaker
2017-04-11test/test-common.sh: Ensure that an old gpg-agent isn't running.Luke Shumaker
It is possible that the gpg has been updated since the user's gpg-agent was started; this will cause mysterious errors, as they will detect the version mismatch. If the user isn't running a gpg-agent, then one will be started. However, it will persist longer than useful, and it will be left looking at a .gnupg directory that no longer exists. It's just not worth the trouble to let an existing agent keep running.
2017-04-11test/test-common.sh: Put the test name in the tmpdir path.Luke Shumaker
2017-04-11test/lib-messages: it_works_with_no_color_and_set_euE doesn't need a subshellLuke Shumaker
2017-04-11test/test-common.sh: Improve btrfs-aware rm-rf cleanupLuke Shumaker
2017-04-11test/: Tidy before()/after() definitions.Luke Shumaker
2017-04-11test: Use correct blacklist.txt URL.Luke Shumaker
2017-04-11libremakepkg: correctly exit if a hook failsLuke Shumaker
2017-04-11test: Do a better job of cleaning up chroots.Luke Shumaker
2017-02-14Add librechroot delete tests.Luke Shumaker
2016-04-15libremessages:flag: Fix several things (also librexgettext)Luke Shumaker
- Fix a bug where it panicked if given an odd number of sub-headings. - Document the the ability to include sub-headings. - Fix librexgettext's handling of it. It only worked correctly for times when it was only called once in a program, or when it was only ever called with exactly one flag/description pair (and no headings).
2016-04-14Print an error when trying to sync a copy with itself.Luke Shumaker
Fixes https://labs.parabola.nu/issues/920
2016-02-08Refactor the build system. Avoid recursive make.Luke Shumaker
This looks like a lot, but more things should "just work". We have `make dist` now!
2015-05-31librefetch: Don't try to use makepkg to create .sig files.Luke Shumaker
2015-05-20Use #!/hint/bash instead of the more verbose commentLuke Shumaker
2015-01-05librefetch: wasn't cleaning up temp filesv20150105.1Luke Shumaker