summaryrefslogtreecommitdiff
path: root/tests/name-clash.script
Commit message (Collapse)AuthorAgeFilesLines
* Refactor tests/*.script to use scripts/test-morph instead of tests/morphLars Wirzenius2012-03-271-2/+2
|
* use "set -eu" in scriptsLars Wirzenius2012-03-221-1/+1
| | | | Except in the missing-ref script, since that one breaks with -e.
* Simplify by removing unnecessary variablesLars Wirzenius2012-03-221-4/+1
|
* Simply calls to morph by using tests/morph wrapperLars Wirzenius2012-03-221-8/+2
|
* Empty and initialize the test data dir anew for each testLars Wirzenius2012-03-221-2/+2
| | | | | | | | | | | | | This avoids accidentally having tests that depend on each other. It would be bad to have tests/bar.script do something and then tests/foo.script only work because of that something: if tests/bar.script later changes, then the later test starts breaking. Keeping tests independent is good practice. We don't seem to have had such dependencies yet, so this is a pre-emptive defensive move. Also, this means we can use simpler names in $DATADIR, instead of embedding the test name in everything. This further simplifies the act of creating new tests.
* tar: add -h option to extractionRichard Maw2012-03-161-1/+1
| | | | | | This should stop tar from replacing symbolic links with directories and instead follow the symbolic links, extracting the files into the linked directories
* tests: name clash better description and no trapRichard Maw2012-03-121-3/+6
| | | | | | | | | | Add a description for what the script is testing, namely whether two chunks in the same repository and branch can be confused for each other. Also unpack in DATADIR so no trap trickery is needed. traps aren't stacked and they aren't fully portable, so avoiding using them has its advantages
* give the test script a better nameRichard Maw2012-03-081-0/+66