<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gocryptfs/tests, branch v2.4.0</title>
<subtitle>Mirror of gocryptfs source code on Github</subtitle>
<id>http://nuetzlich.net/cgit/gocryptfs/atom?h=v2.4.0</id>
<link rel='self' href='http://nuetzlich.net/cgit/gocryptfs/atom?h=v2.4.0'/>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/'/>
<updated>2023-05-30T07:43:45+00:00</updated>
<entry>
<title>tests: add cluster test</title>
<updated>2023-05-30T07:43:45+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2023-05-30T07:43:45+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=3058b7978fd8dabd3e8565c9be816b1367bd196a'/>
<id>urn:sha1:3058b7978fd8dabd3e8565c9be816b1367bd196a</id>
<content type='text'>
finds out what happens if multiple
gocryptfs mounts write to one file concurrently
(usually, nothing good).

This use case is relevant for HPC clusters.
</content>
</entry>
<entry>
<title>fsstress-gocryptfs.bash: improve header comment</title>
<updated>2023-05-19T11:17:24+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2023-05-19T11:17:24+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=b725de5ec300aec208908c6a3bf5443cee7cfa81'/>
<id>urn:sha1:b725de5ec300aec208908c6a3bf5443cee7cfa81</id>
<content type='text'>
I maybe should have noted that this is xfstests generic/013.
</content>
</entry>
<entry>
<title>tests: TestDirectMount: check for default_permissions</title>
<updated>2023-05-18T08:14:21+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2023-05-18T08:14:21+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=c67454464aaabec7c594eeb84983287057ab4231'/>
<id>urn:sha1:c67454464aaabec7c594eeb84983287057ab4231</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests: TestDirectMount: also check dev, suid</title>
<updated>2023-05-17T14:08:49+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2023-05-17T14:08:49+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=8d3b992824072a3b487214812655a35fd28ee4dc'/>
<id>urn:sha1:8d3b992824072a3b487214812655a35fd28ee4dc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests: add TestDirectMount</title>
<updated>2023-05-17T13:34:47+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2023-05-17T13:31:52+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=d7a3d7b97d0879853afa38cacf56e9582ad2a59d'/>
<id>urn:sha1:d7a3d7b97d0879853afa38cacf56e9582ad2a59d</id>
<content type='text'>
This is in preparation of adding directmount capability.

It also check that FsName is set correctly, which is
in preparation for the next patch.
</content>
</entry>
<entry>
<title>tests: root_test: use TMPDIR=/var/tmp</title>
<updated>2023-05-17T13:21:20+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2023-05-17T13:20:20+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=76d0f3ca7c491b39197e1a69c52b63c39455acfc'/>
<id>urn:sha1:76d0f3ca7c491b39197e1a69c52b63c39455acfc</id>
<content type='text'>
Otherwise we fail like this on my Fedora 38 box:

	=== RUN   TestOverlay
	DetectQuirks: tmpfs detected, no extended attributes except acls will work.
	    root_test.go:379: No user xattrs! overlay mount will likely fail.
	15:15:57.957960 Unimplemented opcode OPCODE-51
	    root_test.go:398: mount: /tmp/gocryptfs-test-parent-0/3652394902/TestOverlay.2374697046.mnt/merged: wrong fs type, bad option, bad superblock on overlay, missing codepage or helper program, or other error.
	               dmesg(1) may have more information after failed mount system call.

	    root_test.go:399: exit status 32
	--- FAIL: TestOverlay (0.04s)
	FAIL

Also fix the messed-up DetectQuirks bit test.
</content>
</entry>
<entry>
<title>canonical-benchmarks.bash: drop page cache of "zero" file</title>
<updated>2023-05-12T07:55:54+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2023-05-12T07:55:54+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=1a866b73731ce58b0ba31d80a2a84c84737c7d30'/>
<id>urn:sha1:1a866b73731ce58b0ba31d80a2a84c84737c7d30</id>
<content type='text'>
For the streaming read benchmark, we don't want to benchmark
the page cache.
</content>
</entry>
<entry>
<title>fusefrontent: report correct size on hard link creation</title>
<updated>2023-03-29T20:16:14+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2023-03-29T20:16:14+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=24b3978715186bed3edc2703e81f165a73c0a74a'/>
<id>urn:sha1:24b3978715186bed3edc2703e81f165a73c0a74a</id>
<content type='text'>
And add a test for it.

Fixes https://github.com/rfjakob/gocryptfs/issues/724
</content>
</entry>
<entry>
<title>make format</title>
<updated>2022-12-29T14:00:37+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2022-12-29T14:00:24+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=856ccaac10579abda5620dfc86ad6031b1076a43'/>
<id>urn:sha1:856ccaac10579abda5620dfc86ad6031b1076a43</id>
<content type='text'>
Run "make format" using
go version go1.19.4 linux/amd64
</content>
</entry>
<entry>
<title>tests/matrix: fix data race in TestConcurrentReadWrite</title>
<updated>2022-08-28T18:31:27+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2022-08-28T18:31:27+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=a55b3cc15a6d9bce116a90f33df4bc99d9dd6a10'/>
<id>urn:sha1:a55b3cc15a6d9bce116a90f33df4bc99d9dd6a10</id>
<content type='text'>
Fixes https://github.com/golang/go/issues/54715

Output was:

$ go test ./tests/matrix -run TestConcurrentReadWrite -race
test_helpers: warning: testParentDir "/tmp/gocryptfs-test-parent-1026" does not reside on ext4, we will miss failures caused by ino reuse
PASS
PASS
==================
WARNING: DATA RACE
Write at 0x00c00038a0e0 by goroutine 63:
  runtime.racewriterange()
      &lt;autogenerated&gt;:1 +0x29
  internal/poll.(*FD).Pread()
      /usr/local/go/src/internal/poll/fd_unix.go:193 +0x169
  os.(*File).pread()
      /usr/local/go/src/os/file_posix.go:40 +0x335
  os.(*File).ReadAt()
      /usr/local/go/src/os/file.go:136 +0x2de
  github.com/rfjakob/gocryptfs/v2/tests/matrix.TestConcurrentReadWrite.func1()
      /home/jakob/go/src/github.com/rfjakob/gocryptfs/tests/matrix/concurrency_test.go:40 +0x14b

Previous write at 0x00c00038a0e0 by goroutine 61:
  runtime.racewriterange()
      &lt;autogenerated&gt;:1 +0x29
  internal/poll.(*FD).Pread()
      /usr/local/go/src/internal/poll/fd_unix.go:193 +0x169
  os.(*File).pread()
      /usr/local/go/src/os/file_posix.go:40 +0x335
  os.(*File).ReadAt()
      /usr/local/go/src/os/file.go:136 +0x2de
  github.com/rfjakob/gocryptfs/v2/tests/matrix.TestConcurrentReadWrite.func1()
      /home/jakob/go/src/github.com/rfjakob/gocryptfs/tests/matrix/concurrency_test.go:40 +0x14b

Goroutine 63 (running) created at:
  github.com/rfjakob/gocryptfs/v2/tests/matrix.TestConcurrentReadWrite()
      /home/jakob/go/src/github.com/rfjakob/gocryptfs/tests/matrix/concurrency_test.go:34 +0x31d
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47

Goroutine 61 (running) created at:
  github.com/rfjakob/gocryptfs/v2/tests/matrix.TestConcurrentReadWrite()
      /home/jakob/go/src/github.com/rfjakob/gocryptfs/tests/matrix/concurrency_test.go:34 +0x31d
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1446 +0x216
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1493 +0x47
==================
--- FAIL: TestConcurrentReadWrite (0.03s)
    testing.go:1319: race detected during execution of test
FAIL
TestMain: matrix[2] = matrix.testcaseMatrix{plaintextnames:false, openssl:"false", aessiv:false, raw64:false, extraArgs:[]string(nil)} failed
FAIL	github.com/rfjakob/gocryptfs/v2/tests/matrix	0.170s
FAIL
</content>
</entry>
</feed>
