summaryrefslogtreecommitdiff
path: root/test.hs
Commit message (Collapse)AuthorAge
* checkGravatar Joey Hess2012-12-20
|
* another quickcheckGravatar Joey Hess2012-12-20
|
* testGravatar Joey Hess2012-12-19
|
* refactorGravatar Joey Hess2012-12-19
|
* more quickcheck funGravatar Joey Hess2012-12-19
| | | | and the code gets better..
* more quickcheck funGravatar Joey Hess2012-12-19
|
* quickcheck test for transfer info read/write codeGravatar Joey Hess2012-12-19
| | | | Fixed a bug the quickcheck turned up.
* where indentingGravatar Joey Hess2012-11-11
|
* Bug fix: A recent change caused git-annex-shell to crash.Gravatar Joey Hess2012-10-15
|
* test: Fix threaded runtime hang.Gravatar Joey Hess2012-10-11
| | | | | | | | | There was one forkProcess lurking in test.hs, and that seems to be responsible for recent buildd failures on amd64 and armhf. I was able to reproduce it pretty easily on amd64, and even once on i386, and it was clearly that same bad old threaded runtime hang. So removing this forkProcess should fix it. Odd that it lurked for some months before popping up.
* fix breakage caught by test suiteGravatar Joey Hess2012-09-21
| | | | | Can't use show-ref --tags --branches, as that omits remote branches. Instead, filter out the synced refs directly.
* broke out Verifiable to a utility library, and added a quickcheck testGravatar Joey Hess2012-09-07
|
* test: Set a lot of git environment variables so testing works in strange ↵Gravatar Joey Hess2012-09-06
| | | | environments that normally need git config to set names, etc. Closes: #682351 Thanks, gregor herrmann
* add routes to pause/start/cancel transfersGravatar Joey Hess2012-08-08
| | | | | | | | | | | | | | | | This commit includes a paydown on technical debt incurred two years ago, when I didn't know that it was bad to make custom Read and Show instances for types. As the routes need Read and Show for Transfer, which includes a Key, and deriving my own Read instance of key was not practical, I had to finally clean that up. So the compact Key read and show functions are now file2key and key2file, and Read and Show are now derived instances. Changed all code that used the old instances, compiler checked. (There were a few places, particularly in Command.Unused, and the test suite where the Show instance continue to be used for legitimate comparisons; ie show key_x == show key_y (though really in a bloom filter))
* switch from System.Cmd.Utils to System.ProcessGravatar Joey Hess2012-07-18
| | | | | | | | | | | | | | | | | | Test suite now passes with -threaded! I traced back all the hangs with -threaded to System.Cmd.Utils. It seems it's just crappy/unsafe/outdated, and should not be used. System.Process seems to be the cool new thing, so converted all the code to use it instead. In the process, --debug stopped printing commands it runs. I may try to bring that back later. Note that even SafeSystem was switched to use System.Process. Since that was a modified version of code from System.Cmd.Utils, it needed to be converted too. I also got rid of nearly all calls to forkProcess, and all calls to executeFile, which I'm also doubtful about working well with -threaded.
* map: Write map.dot to .git/annex, which avoids watch trying to annex it.Gravatar Joey Hess2012-07-17
|
* fix test suite buildGravatar Joey Hess2012-06-21
|
* update test suiteGravatar Joey Hess2012-06-05
|
* make GIT_DIR, GIT_WORK_TREE absoluteGravatar Joey Hess2012-05-18
| | | | | GIT_DIR is set to something relative, like ".git" in the pre-commit hook. But internally all the directories are assumed to be absolute.
* Add support for core.worktree, and fix support for GIT_WORK_TREE and GIT_DIR.Gravatar Joey Hess2012-05-18
| | | | | | | The environment needs to override git-config. Changed when git config is read, and avoid rereading it once it's been read. chdir for both worktree settings.
* fix buildGravatar Joey Hess2012-05-05
|
* fix test suite buildGravatar Joey Hess2012-04-30
|
* remove addurl testGravatar Joey Hess2012-03-06
| | | | | addurl --fast used to avoid network, but it always uses it now, getting at least size. Thus not appropriate for test suite without a lot of work.
* Fix a bug in symlink calculation code, that triggered in rare cases where an ↵Gravatar Joey Hess2012-03-05
| | | | | | | | | | | annexed file is in a subdirectory that nearly matched to the .git/annex/object/xx/yy subdirectories. This is a straight up pure-code stinker. The relative path calculation looked for common subdirectories in the two paths, but failed to stop after the paths diverged. When a later pair of subdirectories were the same, the resulting relative path was wrong. Added regression test for this.
* Fix test suite to not require a unicode locale.Gravatar Joey Hess2012-02-29
| | | | | Without a unicode locale, it will fail to print a unicode filename to console, and fails.
* quiet expected compiler warningGravatar Joey Hess2012-02-20
|
* exception update in test tooGravatar Joey Hess2012-02-03
|
* add a test case for adding a file with a unicode filenameGravatar Joey Hess2012-01-31
| | | | This fails with ghc 4.7.
* git-annex, git-union-merge: Support GIT_DIR and GIT_WORK_TREE.Gravatar Joey Hess2012-01-13
| | | | | Note that GIT_WORK_TREE cannot influence GIT_DIR; that is necessary for git-fake-bare and vcsh type things to work.
* break module dependancy loopGravatar Joey Hess2012-01-10
| | | | A PITA but worth it to clean up the trust configuration code.
* don't use GPG_AGENT_INFO to force batch mode in test suiteGravatar Joey Hess2012-01-09
| | | | | | | | Fails with gpg 2. Instead, use a different environment variable. The clean fix would instead be to add an annex.gpg-options configuration. But, that would be rather a lot of work and it's unlikely it would be useful for much else.
* Fix overbroad gpg --no-tty fix from last release.Gravatar Joey Hess2012-01-07
| | | | | | | Only set --no-tty when GPG_AGENT_INFO is set and batch mode is used. In the test suite, set GPG_AGENT_INFO to /dev/null to avoid the test suite relying on /dev/tty.
* type alias cleanupGravatar Joey Hess2011-12-31
|
* handle C-style escapes in FormatGravatar Joey Hess2011-12-23
| | | | | | | | | | | I was happily able to repurpose some code from Git.Filename to handle this. I remember writing that code... a whole afternoon at a coffee shop, after which I felt I'd struggled with Haskell and git, and sorta lost, in needing to write this nasty peice of code. But was also pleased at the use of a pair of functions and quickcheck that allowed me to get it 100% right. So, turns out I not only got it right, but the code wasn't as special-purpose as I'd feared. Yay!
* cleanupGravatar Joey Hess2011-12-22
|
* Add --include, which is the same as --not --exclude.Gravatar Joey Hess2011-12-22
|
* test fsck in bare repos (75%)Gravatar Joey Hess2011-12-21
|
* improveGravatar Joey Hess2011-12-21
|
* test bup special remote (74% coverage)Gravatar Joey Hess2011-12-21
|
* test coverage improvementsGravatar Joey Hess2011-12-21
|
* test encrypted special remoteGravatar Joey Hess2011-12-20
| | | | | This involved adding a test harness to run gpg with a dummy key, and lots of fun.
* Test suite improvements. Current top-level test coverage: 68%Gravatar Joey Hess2011-12-20
| | | | Been higher before, but a lot of new code has been added.
* map: --fast disables use of dot to display mapGravatar Joey Hess2011-12-20
| | | | Generally useful, and allows the test suite to test it.
* add basic tests for some of the newer commandsGravatar Joey Hess2011-12-20
| | | | | For most this just makes sure they run successfully, and improves test coverage statistics; it's hard to test the output of eg, find and status.
* cleanup backend used when reversing migrationGravatar Joey Hess2011-12-20
| | | | | WORM is no longer the starting backend, so let's really reverse, getting back to SHA256.
* run annex monad in quiet mode when testingGravatar Joey Hess2011-12-20
| | | | This cleans up the merging messages.
* factor out -qGravatar Joey Hess2011-12-20
|
* add tests of directory and rsync special remotesGravatar Joey Hess2011-12-20
|
* added a test of the hook special remoteGravatar Joey Hess2011-12-20
|
* split more stuff out of Git.hsGravatar Joey Hess2011-12-14
|