1 (* Test for system lens *)
2 module Test_solaris_system =
4 let conf = "*ident \"@(#)system 1.18 97/06/27 SMI\" /* SVR4 1.5 */
6 * SYSTEM SPECIFICATION FILE
9 moddir: /kernel /usr/kernel /other/modules
12 rootdev:/sbus@1,f8000000/esp@0,800000/sd@3,0:a
24 set noexec_user_stack=1
25 set zfs:zfs_arc_max=12884901888
26 set test_module:debug = 0x13
27 set fcp:ssfcp_enable_auto_configuration=1
28 set scsi_options = 0x7F8
33 test Solaris_System.lns get conf =
34 { "#comment" = "ident \"@(#)system 1.18 97/06/27 SMI\" /* SVR4 1.5 */" }
36 { "#comment" = "SYSTEM SPECIFICATION FILE" }
41 { "2" = "/usr/kernel" }
42 { "3" = "/other/modules" } }
45 { "rootdev" = "/sbus@1,f8000000/esp@0,800000/sd@3,0:a" }
48 { "include" = "sys/shmsys" }
51 { "exclude" = "sys/shmsys" }
53 { "forceload" = "drv/foo" }
54 { "forceload" = "drv/ssd" }
57 { "variable" = "nautopush" }
61 { "variable" = "noexec_user_stack" }
66 { "variable" = "zfs_arc_max" }
68 { "value" = "12884901888" } }
70 { "module" = "test_module" }
71 { "variable" = "debug" }
73 { "value" = "0x13" } }
76 { "variable" = "ssfcp_enable_auto_configuration" }
80 { "variable" = "scsi_options" }
82 { "value" = "0x7F8" } }
84 { "variable" = "moddebug" }
86 { "value" = "~0x880" } }
88 { "variable" = "moddebug" }
90 { "value" = "0x40" } }
92 (* Check that moddir supports colons and spaces *)
93 let moddir_colons = "moddir:/kernel:/usr/kernel:/other/modules
96 test Solaris_System.lns get moddir_colons =
99 { "2" = "/usr/kernel" }
100 { "3" = "/other/modules" } }
102 (* Local Variables: *)