3 Provides unit tests for the <BootConf> lens.
8 test BootConf.boot get "boot /bsd -s\n" =
13 test BootConf.echo get "echo 42\n" =
16 test BootConf.ls get "ls /\n" =
19 test BootConf.ls get "ls //\n" =
22 test BootConf.ls get "ls /some/path/\n" =
23 { "ls" = "/some/path/" }
25 test BootConf.machine get "machine diskinfo\n" =
29 test BootConf.machine get "machine comaddr 0xdeadbeef\n" =
31 { "comaddr" = "0xdeadbeef" } }
33 test BootConf.set get "set tty com0\n" =
37 test BootConf.single_command get "help\n" =
40 test BootConf.stty get "stty /dev/cuaU0 115200\n" =
42 { "device" = "/dev/cuaU0" }
43 { "speed" = "115200" } }
45 test BootConf.stty get "stty /dev/cuaU0\n" =
47 { "device" = "/dev/cuaU0" } }