Commit Graph

152 Commits

Author SHA1 Message Date
Matt Joiner 4913f17c01 Generate full sintel magnet link in fs test 2021-12-12 15:01:50 +11:00
Matt Joiner 357896fb65 gofumpt 2021-11-19 16:19:32 +11:00
Matt Joiner 8a7ddab785 Switch to github.com/anacrolix/fuse 2021-11-16 18:20:02 +11:00
Matt Joiner c6ee03f449 gofumpt 2021-11-08 14:47:01 +11:00
Matt Joiner c3c982b621 Fixes for wasm 2021-06-23 17:24:50 +10:00
Matt Joiner 125d7f0e90
Create go.yml (#497)
* Create go.yml

* Go version 1.16

* Add benchmarks

* Match CircleCI test coverage

* Add 15 minute timeout

* Don't log to file

* Download modules in separate step, minimize test runs

* Install godo before running torrentfs end-to-end test

* More fixes

* More fixes for GitHub Actions CI
2021-06-07 12:44:51 +10:00
Matt Joiner cbdc2b8263 Comment and log change on torrentfs behaviour change 2021-02-22 10:10:43 +11:00
Matt Joiner 90b2932fe7 Run torrentfs without race 2021-02-15 21:44:35 +11:00
Matt Joiner 7990eef91d Use io.ReadFull in fs reads 2021-02-15 15:53:32 +11:00
Matt Joiner a5439836d9 fs/test.sh: Use godo for out of tree go run 2021-02-15 15:45:07 +11:00
Matt Joiner e3cfd3d033 Rework fs/test.sh
Updates to use newer debian file, and operate in working directory. Temporary directory management should be done by the caller (such as in CI maybe).
2021-02-12 19:21:28 +11:00
Shubhendra Singh Chauhan 0cdb33ede0 fixed code quality issues using DeepSource
* Added .deepsource.toml

* Removed empty default in select

* Removed unnecessary use of slice

* Fixed check for empty string
2021-01-30 15:23:49 +11:00
Matt Joiner d56087441e Fix duplicate import under different aliases 2021-01-19 10:55:02 +11:00
Matt Joiner 2a7352aad2 Don't block trying to fill entire Reader.Read
This conforms more to the contract in io.Reader. It's possible the old behaviour was better in reducing overhead, but that can be iterated on (or added as comments next time).
2020-10-27 12:59:07 +11:00
Matt Joiner 3d7a95a65d Use testing.T.Name instead of missinggo.GetTestName
This handles subtests correctly, and removes the need to specify when to export due to collisions with the old function.
2020-10-10 10:59:17 +11:00
Matt Joiner 376ff763fe Apply staticcheck 2020-02-20 11:09:57 +11:00
Matt Joiner cb1bf0f413 goimports -local 2019-08-21 20:58:40 +10:00
Matt Joiner 7b47dcbf51 fs: Fix test failure when default client port is unavailable 2019-07-30 17:25:10 +10:00
Matt Joiner 958ff01eab Change the default client port 2019-07-19 16:19:21 +10:00
Radoslav Georgiev 4a31dffa95 torrentfs: fix a bug where the basenames of files are extracted incorrectly when listing the entries in a directory 2019-04-23 21:02:55 +10:00
Radoslav Georgiev 8249316c78 torrentfs: fix a bug where ENOENT is returned when the node for an entry in the root directory of a torrent is requested 2019-04-23 21:02:55 +10:00
Matt Joiner fc4fab91f5 Switch to goimports import sorting
Used to use sortimports, but it's old, and goimports seems to have an opinion now.
2018-11-02 23:12:01 +11:00
Matt Joiner 0fdd31b6f3 Go module install/get make no sense 2018-07-27 10:44:26 +10:00
Matt Joiner 7ab51ee283 Use go run instead of godo 2018-07-25 20:34:19 +10:00
Matt Joiner a69cd7bb9b fs/test.sh: Add sudo before happy path umount again 2018-06-30 22:03:29 +10:00
Matt Joiner 716fd43d44 Run fs/test.sh in a temporary directory and make it clean up 2018-06-30 00:08:01 +10:00
Matt Joiner bdf8619cf3 Missed deferring release of an exported status writer 2018-06-26 21:19:49 +10:00
Matt Joiner 57849844ae Rework status export in tests to allow count > 1 without a server for every test 2018-06-26 19:54:48 +10:00
Matt Joiner cee8e3b9f9 Update external use of ClientConfig 2018-06-16 16:33:40 +10:00
Matt Joiner dfb15da131 Another use of LoopbackListenhost 2018-04-12 16:10:46 +10:00
Matt Joiner 83e4c65fc4 Add LoopbackListenHost 2018-04-12 15:21:31 +10:00
Matt Joiner b5df073217 Support different hosts for each network
CircleCI's localhost hostname doesn't resolve for IPv6.
2018-04-12 15:06:53 +10:00
Matt Joiner 319e57d1c6 Rework conns to/and allow multiple DHT servers
This will help with #229, and IPv6 support.
2018-04-12 11:41:07 +10:00
Matt Joiner eb448d132d Update context imports 2018-01-31 16:42:26 +11:00
Matt Joiner 0b553b296f Add File priorities
Fixes #220.
2018-01-21 22:49:12 +11:00
Matt Joiner fe9839f818 sortimports 2018-01-09 23:12:01 +11:00
Matt Joiner 56109b387d Formatting and comments 2018-01-06 16:37:40 +11:00
Matt Joiner 9b718566ba Add File.NewReader
Fixes #222
2018-01-06 16:37:13 +11:00
Matt Joiner a0f8f246e5 Add the fs test torrent to the repo
Debian keep moving it.
2017-12-29 13:50:26 +11:00
Matt Joiner 4190856b6c sortimports 2017-12-01 18:12:29 +11:00
Matt Joiner cecc70f4cc More megacheck 2017-11-08 00:12:34 +11:00
Matt Joiner 4f04d13532 Fix fs test link now that Debian 9.2 came out 2017-10-12 17:52:15 +11:00
Matt Joiner 25d1f371c3 fs: Some test tidying 2017-09-22 13:46:00 +10:00
Matt Joiner 3879364536 fs/test.sh: umount requires sudo 2017-09-18 13:51:05 +10:00
Matt Joiner c93f5d3038 test.sh: Unmount and wait for torrentfs to return after completion 2017-09-18 12:17:28 +10:00
Matt Joiner 639c49f1ae Rename fs/unwedge-tests so it gets synced to test servers 2017-09-18 12:16:05 +10:00
Matt Joiner f7e07237ed fs: Fix tests now that data verification isn't automatic 2017-09-15 19:34:42 +10:00
Matt Joiner 53954f7807 Get torrentfs fuse test working 2017-08-29 14:02:30 +10:00
Matt Joiner 7d55f573f5 Maintain a torrent.Reader for each file handle
This means that readahead will work much better. Addresses https://github.com/anacrolix/torrent/issues/182.
2017-08-28 01:42:02 +10:00
Matt Joiner 58d66a1b62 fs: Move file Read behaviour onto a new handle type 2017-08-27 14:19:58 +10:00