summaryrefslogtreecommitdiff
path: root/Test.hs
Commit message (Collapse)AuthorAge
...
* fix test failure locking an unlocked not present fileGravatar Joey Hess2016-01-06
| | | | | | | | In v5, that was not possible, but it is in v6, and so the test was failing. Investigating, it turns out that locking was copying the pointer file content to the annex object despite the content not being present. So, add a check to prevent that.
* test: Added --keep-failures option.Gravatar Joey Hess2016-01-06
|
* fix some tests of v6 unlocked filesGravatar Joey Hess2016-01-05
|
* remporarily disable v6 unlocked test pass while it's failingGravatar Joey Hess2016-01-01
|
* scan for unlocked files on init/upgrade of v6 repoGravatar Joey Hess2016-01-01
|
* started working on testing v6 unlocked filesGravatar Joey Hess2016-01-01
| | | | Many failures.
* add test: conflict resolution (mixed locked and unlocked file)Gravatar Joey Hess2015-12-30
|
* test suite 100% pass in v6, finally!Gravatar Joey Hess2015-12-30
| | | | | Set annex.largefiles when adding the conflicting non-annexed file, otherwise it would be added as an annexed file.
* fix failing git-annex unused test case in v6Gravatar Joey Hess2015-12-30
| | | | | | | | | | | | | WorkTree.lookupFile was finding a key for a file that's deleted from the work tree, which is different than the v5 behavior (though perhaps the same as the direct mode behavior). Fix by checking that the work tree file exists before catting its key. Hopefully this won't slow down much, probably the catKey is much more expensive. I can't see any way to optimise this, except perhaps to make Command.Unused check if work tree files exist before/after calling lookupFile. But, it seems better to make lookupFile really only find keys for worktree files; that's what it's intended to do.
* set annex.largefiles earlier in test suiteGravatar Joey Hess2015-12-30
| | | | The ingitfile was having git run it through the clean filter in some cases.
* move check for if direct mode is supported to the right placeGravatar Joey Hess2015-12-29
| | | | Need to run that check inside a annex repo.
* fix build on windowsGravatar Joey Hess2015-12-28
|
* temporarily disable v6 repos tests (still 4 failures)Gravatar Joey Hess2015-12-24
|
* test suite down to only 4 fails with v6Gravatar Joey Hess2015-12-16
|
* pass --version to init when neededGravatar Joey Hess2015-12-16
|
* starting to work on test suite for v6Gravatar Joey Hess2015-12-15
|
* reorgGravatar Joey Hess2015-12-15
|
* reorg quickcheck to a separate moduleGravatar Joey Hess2015-11-17
|
* fix use of hifalutin terminologyGravatar Joey Hess2015-11-16
|
* add test cases for copy --autoGravatar Joey Hess2015-10-06
| | | | | | (Only --from for now, should add --to sometime but I'm on low sleep so this is the mininal test to catch the reversion just fixed, bad me for doing it backwards and incompletely.)
* support gpg.programGravatar Joey Hess2015-09-09
| | | | | | When gpg.program is configured, it's used to get the command to run for gpg. Useful on systems that have only a gpg2 command or want to use it instead of the gpg command.
* init: Fix reversion in detection of repo made with git clone --sharedGravatar Joey Hess2015-09-09
|
* wire tasty's option parser into the main program option parserGravatar Joey Hess2015-07-13
| | | | | This makes bash completion work for git-annex test, and is generally cleaner.
* better method for running tasty's optparse as a subcommandGravatar Joey Hess2015-07-08
|
* refactorGravatar Joey Hess2015-07-08
|
* Removed support for optparse-applicative versions older than 0.10.Gravatar Joey Hess2015-07-07
| | | | Debian stable has 0.10.0.
* log: Fix reversion introduced in version 5.20150528 that broke this command.Gravatar Joey Hess2015-07-02
|
* disable debug output in test suiteGravatar Joey Hess2015-06-17
| | | | Added during a dev session in Jan and kept accidentially.
* add test case that all standard group preferred content expressions parseGravatar Joey Hess2015-06-17
|
* avoid using isLeft/isRight which are not available with older ghc versionsGravatar Joey Hess2015-06-06
|
* fairly complete tests for git-annex importGravatar Joey Hess2015-06-03
|
* two more breakages introduced when removing the Params constructorGravatar Joey Hess2015-06-03
|
* remove Params constructor from Utility.SafeCommandGravatar Joey Hess2015-06-01
| | | | | | | | | | | | | | | | | | This removes a bit of complexity, and should make things faster (avoids tokenizing Params string), and probably involve less garbage collection. In a few places, it was useful to use Params to avoid needing a list, but that is easily avoided. Problems noticed while doing this conversion: * Some uses of Params "oneword" which was entirely unnecessary overhead. * A few places that built up a list of parameters with ++ and then used Params to split it! Test suite passes.
* rejigger imports for clean build with ghc 7.10's AMP changesGravatar Joey Hess2015-05-10
| | | | | The explict import Prelude after import Control.Applicative is a trick to avoid a warning.
* add test for stable macsGravatar Joey Hess2015-04-19
|
* Fix fsck --from a git remote in a local directory, and from a directory ↵Gravatar Joey Hess2015-04-18
| | | | | | | | | | | special remote. This was a reversion caused by the relative path changes in 5.20150113. The directory special remote was not affected in its normal configuration, since annex-directory is an absolute path normally. But it could fail when a relative path was used. The git remote was affected even when an absolute path to it was used in .git/config, since git-annex now converts all such paths to relative.
* test: Fix --list-testsGravatar Joey Hess2015-03-31
| | | | Seems list order matters, I don't know why, but have reported it on #tasty
* metadata: Fix encoding problem that led to mojibake when storing metadata ↵Gravatar Joey Hess2015-03-04
| | | | | | | | | | | | | | | | | | | | | | | | | strings that contained both unicode characters and a space (or '!') character. The fix is to stop using w82s, which does not properly reconstitute unicode strings. Instrad, use utf8 bytestring to get the [Word8] to base64. This passes unicode through perfectly, including any invalid filesystem encoded characters. Note that toB64 / fromB64 are also used for creds and cipher embedding. It would be unfortunate if this change broke those uses. For cipher embedding, note that ciphers can contain arbitrary bytes (should really be using ByteString.Char8 there). Testing indicated it's not safe to use the new fromB64 there; I think that characters were incorrectly combined. For credpair embedding, the username or password could contain unicode. Before, that unicode would fail to round-trip through the b64. So, I guess this is not going to break any embedded creds that worked before. This bug may have affected some creds before, and if so, this change will not fix old ones, but should fix new ones at least.
* dropdrive drops the leading slash, so need fil:///Gravatar Joey Hess2015-02-11
|
* fix file:// url generation on windows in testGravatar Joey Hess2015-02-11
|
* test case for addurl file://Gravatar Joey Hess2015-02-10
|
* Windows: Fix bug in dropping an annexed file, which caused a symlink to be ↵Gravatar Joey Hess2015-02-09
| | | | staged that contained backslashes.
* add a test case for switching to direct mode and back to indirectGravatar Joey Hess2015-02-09
|
* implement annex.tune.branchhash1Gravatar Joey Hess2015-01-28
| | | | | | | | I hope this doesn't impact speed much -- it does have to pull out a value from Annex state every time it accesses the branch now. The test case I dropped has never caught any problems that I can remember, and would have been rather difficult to convert.
* update my email address and homepage urlGravatar Joey Hess2015-01-21
|
* convert parentDir to be based on takeDirectory, but fixed for trailing /Gravatar Joey Hess2015-01-09
|
* revert parentDir changeGravatar Joey Hess2015-01-09
| | | | | | | | Reverts 2bba5bc22d049272d3328bfa6c452d3e2e50e86c Unfortunately, this caused breakage on Windows, and possibly elsewhere, because parentDir and takeDirectory do not behave the same when there is a trailing directory separator.
* Merge branch 'master' into relativepathsGravatar Joey Hess2015-01-06
|\ | | | | | | | | | | Conflicts: Locations.hs debian/changelog
| * made parentDir return a Maybe FilePath; removed most uses of itGravatar Joey Hess2015-01-06
| | | | | | | | | | | | | | | | parentDir is less safe than takeDirectory, especially when working with relative FilePaths. It's really only useful in loops that want to terminate at / This commit was sponsored by Audric SCHILTKNECHT.
* | Switch to using relative paths to the git repository.Gravatar Joey Hess2015-01-06
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | This allows the git repository to be moved while git-annex is running in it, with fewer problems. On Windows, this avoids some of the problems with the absurdly small MAX_PATH of 260 bytes. In particular, git-annex repositories should work in deeper/longer directory structures than before. See http://git-annex.branchable.com/bugs/__34__git-annex:_direct:_1_failed__34___on_Windows/ There are several possible ways this change could break git-annex: 1. If it changes its working directory while it's running, that would be Bad News. Good news everyone! git-annex never does so. It would also break thread safety, so all such things were stomped out long ago. 2. parentDir "." -> "" which is not a valid path. I had to fix one instace of this, and I should probably wipe all calls to parentDir out of the git-annex code base; it was never a good idea. 3. Things like relPathDirToFile require absolute input paths, and code assumes that the git repo path is absolute and passes it to it as-is. In the case of relPathDirToFile, I converted it to not make this assumption. Currently, the test suite has 16 failures.