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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91 |
+ cd betula
+ make test
rm -f betula
go build -o betula ./cmd/betula
go: downloading github.com/mattn/go-sqlite3 v1.14.22
go: downloading golang.org/x/crypto v0.20.0
go: downloading humungus.tedunangst.com/r/webs v0.7.10
go: downloading golang.org/x/net v0.21.0
go: downloading git.sr.ht/~bouncepaw/mycomarkup/v5 v5.6.0
go: downloading golang.org/x/text v0.14.0
go test ./db
ok git.sr.ht/~bouncepaw/betula/db 0.067s
go test ./types
ok git.sr.ht/~bouncepaw/betula/types 0.002s
go test ./feeds
ok git.sr.ht/~bouncepaw/betula/feeds 0.009s
go test ./readpage
ok git.sr.ht/~bouncepaw/betula/readpage 0.209s
go test ./fediverse/activities
ok git.sr.ht/~bouncepaw/betula/fediverse/activities 0.002s
sh test-web.sh
rm: can't remove 'testing.betula': No such file or directory
killall: betula: no process killed
2024/03/09 19:53:06 Generating a new pair of RSA keys
2024/03/09 19:53:06 Running HTTP server at 0.0.0.0:1738
This is an experimental automated system for testing the WWW interface of Betula.
The instance is located at http://localhost:1738. Cross your fingers.
rm: can't remove '/home/build/.cache/betula/testing-cookie': No such file or directory
OK [First screen]
2024/03/09 19:53:07 /register
2024/03/09 19:53:07 Setting new credentials
OK [Register on first screen]
2024/03/09 19:53:07 /1: bookmark no. 1 not found
2024/03/09 19:53:07 404 Not found: /1
OK [Access non-existent post]
2024/03/09 19:53:07 Received job no. 1 ‘Send Create{Note}’
2024/03/09 19:53:07 Nobody to broadcast to :-(
OK [Create a post]
2024/03/09 19:53:07 Get bookmark page no. 1
OK [Access the freshly-created post]
OK [Log out]
2024/03/09 19:53:07 Unauthorized attempt to access /settings. 401.
2024/03/09 19:53:07 401 Unauthorized: /settings
OK [Logged out settings]
2024/03/09 19:53:07 Credentials match.
OK [Log in]
OK [Save link: both empty]
2024/03/09 19:53:07 Received job no. 2 ‘Send Create{Note}’
2024/03/09 19:53:07 Nobody to broadcast to :-(
OK [Save link: given url empty title]
2024/03/09 19:53:07 Received job no. 3 ‘Send Create{Note}’
OK [Save link: given url to title]
2024/03/09 19:53:07 Nobody to broadcast to :-(
OK [Save link: both given]
2024/03/09 19:53:07 Received job no. 4 ‘Send Create{Note}’
2024/03/09 19:53:07 Nobody to broadcast to :-(
OK [Save link: non-URL title and no URL]
OK [Save link: non-URL text to URL]
2024/03/09 19:53:07 Received job no. 5 ‘Send Create{Note}’
2024/03/09 19:53:07 Nobody to broadcast to :-(
OK [Save link: page with no title, but giving a title]
OK [Save link: page with no title, not giving a title]
2024/03/09 19:53:07 Received job no. 6 ‘Send Create{Note}’
2024/03/09 19:53:07 Nobody to broadcast to :-(
OK [Save link: headless title]
2024/03/09 19:53:07 Received job no. 7 ‘Send Create{Note}’
2024/03/09 19:53:07 Nobody to broadcast to :-(
2024/03/09 19:53:08 Received job no. 8 ‘Send Create{Note}’
2024/03/09 19:53:08 Nobody to broadcast to :-(
2024/03/09 19:53:08 Received job no. 9 ‘Send Create{Note}’
2024/03/09 19:53:08 Nobody to broadcast to :-(
2024/03/09 19:53:08 Received job no. 10 ‘Send Create{Note}’
2024/03/09 19:53:08 Nobody to broadcast to :-(
OK [Empty search]
OK [Existing tag search]
OK [Non-existent tag search]
2024/03/09 19:53:08 Searching ‘Merlin’. Authorized: true
2024/03/09 19:53:08 While writing template: html/template:search.gohtml:12:15: no such template "authorized post card"
Test [Search for some text] failed miserably. It is a shame. Please do better.
Below is the output of cURL.
HTTP/1.1 200 OK
Date: Sat, 09 Mar 2024 19:53:08 GMT
Content-Length: 0
make: *** [Makefile:22: test] Error 2
|