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
|
/******************************************************************************
__ ____ __
/ / ___ ____ _/ __/_____________ _/ /__
/ / / _ \/ __ `/ /_/ ___/ ___/ __ `/ / _ \
/ /___/ __/ /_/ / __(__ ) /__/ /_/ / / __/
/_____/\___/\__,_/_/ /____/\___/\__,_/_/\___/
(C)opyright 2026, Leafscale, LLC - https://www.leafscale.com
Project: repoman
Filename: tests/test_hermes_paths.reef
Authors: Chris Tusa <chris.tusa@leafscale.com>
License: <see LICENSE file included with this source code>
Description: Tests: hermes path resolution helper
******************************************************************************/
import hermes
import test.framework
proc main()
let runner = new framework.TestRunner()
runner.assert_eq_string(
hermes.state_dir_for("/home/ctusa", "isurus"),
"/home/ctusa/.local/share/repoman/hermes/isurus",
"state_dir_for layout"
)
let seed = hermes.default_seed_list()
runner.assert_eq_int(seed.length(), 5, "default seed list size = 5 (runtime dirs are bind-mounted, not seeded)")
runner.assert_eq_string(seed[0], ".env", "first entry .env")
runner.assert_eq_string(seed[1], "config.yaml", "second config.yaml")
runner.assert_eq_string(seed[2], "SOUL.md", "third SOUL.md")
runner.assert_eq_string(seed[3], "skills/", "fourth skills/")
runner.assert_eq_string(seed[4], "hooks/", "fifth hooks/")
runner.report()
end main
|