Debian Codegraph @

testscripts/server/server_render_to_memory.txt

raw
1 # Test the hugo server command.
2
3 # We run these tests in parallel so let Hugo decide which port to use.
4 # Deliberately using the alias 'serve' here.
5 hugo serve --renderToMemory &
6
7 waitServer
8
9 httpget $HUGOTEST_BASEURL_0 'Title: Hugo Server Test' $HUGOTEST_BASEURL_0
10
11 ! exists public/index.html
12 ! exists public/mystatic.txt
13
14 stopServer
15 ! stderr .
16
17 -- hugo.toml --
18 title = "Hugo Server Test"
19 baseURL = "https://example.org/"
20 disableKinds = ["taxonomy", "term", "sitemap"]
21 -- static/mystatic.txt --
22 This is a static file.
23 -- layouts/home.html --
24 Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|
25
26