summaryrefslogtreecommitdiff
path: root/test/libredbdiff-test.sh
AgeCommit message (Collapse)Author
2018-10-01(BATS) test: Move files aroundLuke Shumaker
But don't edit them yet. This directory structure is based on that of dbscripts.
2018-10-01test: Clean up (config) file writingLuke Shumaker
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
2018-10-01test: test-common.bash: Remove hooks from before()Luke Shumaker
Instead, make the default before() an alias for common_before(), which test files can call if they override before().
2018-10-01test: Normalize on "status" instead of "stat" "ret" or "r" for storing exit ↵Luke Shumaker
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
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.