Skip to content

test.bash failures during reverse test and on system without BTRFS #930

@sdns575

Description

@sdns575

Hi,
I'm building an RPM packages using gocryptfs-v2.5.4 vendored on AlmaLinux 10. It works but when I run test.bash it reports errors:

  1. One is about BTRFS test. On AlmaLinux and EL distro btrfs is not supported. The function is in tests/root_test/root_test.go [func TestBtrfsQuirks(t *testing.T)]. To avoid this problem I simply removed the code in the function where it requires mkfs.btrfs. Note: I tried also on a Debian 12 host where btrfs is not installed: same problem. There is a way to skip btrfs tests for system that does not use it?
  2. The other is in reverse test

--- FAIL: TestAccessVirtualDirIV (0.00s)
correctness_test.go:142: should NOT be executable

during reverse test. The interested file is "/var/tmp/gocryptfs-test-parent-0/1772555044/b/gocryptfs.diriv"

This is encountered on AlmaLinux 10 and Debian 12.

There is a bug in the test suite or this version is too new for EL10 or Debian12?

Thank you in advance

Best regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions