blob: 0d12e3ab636712c5b0d0873d5d5277ce0b50cba6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
Compile gocryptfs from Source
=============================
Install Go 1.11 or higher:
* Debian/Ubuntu: `apt install golang`
* Fedora: `dnf install golang`
Then, download the source code and compile:
$ git clone https://github.com/rfjakob/gocryptfs.git
$ cd gocryptfs
$ ./build-without-openssl.bash
This will compile a static binary that uses the Go stdlib crypto backend.
If you want to use the OpenSSL crypto backend (faster on
old CPUs lacking AES-NI), you have to install a few dependencies:
* Debian/Ubuntu: `apt install libssl-dev gcc pkg-config`
* Fedora: `dnf install openssl-devel gcc pkg-config`
Then, run:
$ ./build.bash
See also: [README.md#compile](https://github.com/rfjakob/gocryptfs/blob/master/README.md#compile)
Test
----
In the gocryptfs source directory, run:
./test.bash
The tests run about 1 minute and should produce the following output:
```
gocryptfs v1.4.3-9-g9f8d0d8 without_openssl; go-fuse v20170619-28-g19acbd2; 2018-02-03 go1.9.2
gocryptfs v1.4.3-9-g9f8d0d8; go-fuse v20170619-28-g19acbd2; 2018-02-03 go1.9.2
ok github.com/rfjakob/gocryptfs 0.003s
? github.com/rfjakob/gocryptfs/gocryptfs-xray [no test files]
ok github.com/rfjakob/gocryptfs/internal/configfile 0.732s
ok github.com/rfjakob/gocryptfs/internal/contentenc 0.003s
ok github.com/rfjakob/gocryptfs/internal/cryptocore 0.227s
ok github.com/rfjakob/gocryptfs/internal/ctlsock 0.002s
? github.com/rfjakob/gocryptfs/internal/exitcodes [no test files]
? github.com/rfjakob/gocryptfs/internal/fusefrontend [no test files]
? github.com/rfjakob/gocryptfs/internal/fusefrontend_reverse [no test files]
ok github.com/rfjakob/gocryptfs/internal/nametransform 0.003s
? github.com/rfjakob/gocryptfs/internal/nametransform/dirivcache [no test files]
? github.com/rfjakob/gocryptfs/internal/openfiletable [no test files]
ok github.com/rfjakob/gocryptfs/internal/pathiv 0.003s
ok github.com/rfjakob/gocryptfs/internal/prefer_openssl 0.003s
ok github.com/rfjakob/gocryptfs/internal/readpassword 0.048s
? github.com/rfjakob/gocryptfs/internal/serialize_reads [no test files]
ok github.com/rfjakob/gocryptfs/internal/siv_aead 0.005s
ok github.com/rfjakob/gocryptfs/internal/speed 0.002s [no tests to run]
ok github.com/rfjakob/gocryptfs/internal/stupidgcm 1.639s
ok github.com/rfjakob/gocryptfs/internal/syscallcompat 0.027s
? github.com/rfjakob/gocryptfs/internal/tlog [no test files]
ok github.com/rfjakob/gocryptfs/tests/cli 1.023s
ok github.com/rfjakob/gocryptfs/tests/defaults 0.839s
ok github.com/rfjakob/gocryptfs/tests/example_filesystems 4.076s
ok github.com/rfjakob/gocryptfs/tests/hkdf_sanity 0.137s
ok github.com/rfjakob/gocryptfs/tests/matrix 10.780s
ok github.com/rfjakob/gocryptfs/tests/plaintextnames 0.089s
ok github.com/rfjakob/gocryptfs/tests/reverse 0.854s
? github.com/rfjakob/gocryptfs/tests/test_helpers [no test files]
```
You can run `./test.bash -v` to see the execution of individual tests. Note that
the tests also check error cases that produce error messages, and this is not
a test failure.
|