feat: add native Windows hierarchy test harness
This commit is contained in:
@@ -49,6 +49,17 @@ func TestAnnotatedExamples_HP_CFG_01(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestClientDefaultsDecodeForWindowsWithoutNativeFilesystem(t *testing.T) {
|
||||
t.Parallel()
|
||||
client, err := DecodeClient([]byte("[client]\nstate_dir = \"C:\\\\ProgramData\\\\RVBox\\\\state\"\ndaemon_cwd = \"C:\\\\ProgramData\\\\RVBox\\\\work\"\n"), ClientOptions{Platform: PlatformWindows, CheckFilesystem: false})
|
||||
if err != nil {
|
||||
t.Fatalf("DecodeClient Windows defaults: %v", err)
|
||||
}
|
||||
if client.Shells.SH != "/bin/sh" || client.Shells.CMD == "" {
|
||||
t.Fatalf("Windows defaults have unexpected shell paths: %+v", client.Shells)
|
||||
}
|
||||
}
|
||||
|
||||
func TestStrictTOMLRejections_HP_CFG_01(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user