| | Input command line | Test commands | Expected output | PVH | PV |
|
| | --------------------------------------------------------- | --------------------------------------------------------------- | -------------------------------------- | ----- | ----- |
|
| | `xen_grub_env_boot_mode_opts="test1 test2"` | `echo $xen_grub_env_boot_mode_opts` | `test1 test2` | `[x]` | `[x]` |
|
| | `xen_grub_env_Boot_Mode_Opts="test1 test2"` | `echo $xen_grub_env_Boot_Mode_Opts` | `test1 test2` | `[x]` | `[x]` |
|
| | `xen_grub_env_boot_mode_opts='test1 test2'` | `echo $xen_grub_env_boot_mode_opts` | `test1 test2` | `[x]` | `[x]` |
|
| | `xen_grub_env_boot_mode_opts=test1\ test2` | `echo $xen_grub_env_boot_mode_opts` | `test1 test2` | `[x]` | `[x]` |
|
| | `xen_grub_env_boot_mode_opts="test1\\ test2"` | `echo $xen_grub_env_boot_mode_opts` | `test1\ test2` | `[x]` | `[x]` |
|
| | `xen_grub_env_boot_mode_opts="test1' test2"` | `echo $xen_grub_env_boot_mode_opts` | `test1' test2` | `[x]` | `[x]` |
|
| | `xen_grub_env_boot_mode_opts='test1" test2'` | `echo $xen_grub_env_boot_mode_opts` | `test1" test2` | `[x]` | `[x]` |
|
| | `xen_grub_env_boot_mode_opts='test1' test'` | `echo $xen_grub_env_boot_mode_opts`, `echo $test` | `test1`, ` ` | `[x]` | `[x]` |
|
| | `xen_grub_env_boot_mode_opts="test1" test'` | `echo $xen_grub_env_boot_mode_opts`, `echo $test` | `test1`, ` ` | `[x]` | `[x]` |
|
| | `xen_grub_env_boot_mode_opts="test1" test"` | `echo $xen_grub_env_boot_mode_opts`, `echo $test` | `test1`, ` ` | `[x]` | `[x]` |
|
| | `xen_grub_env_boot_mode_opts='test1' xen_grub_env_test'` | `echo $xen_grub_env_boot_mode_opts`, `echo $xen_grub_env_test` | `test1`, `1` | `[x]` | `[x]` |
|
| | `xen_grub_env_boot_mode_opts="test1" xen_grub_env_test'` | `echo $xen_grub_env_boot_mode_opts`, `echo $xen_grub_env_test` | `test1`, `1` | `[x]` | `[x]` |
|
| | `xen_grub_env_boot_mode_opts="test1" xen_grub_env_test"` | `echo $xen_grub_env_boot_mode_opts`, `echo $xen_grub_env_test` | `test1`, `1` | `[x]` | `[x]` |
|
| | `xen_grub_env_boot_mode_opts=<995 digits here>` | `echo $xen_grub_env_boot_mode_opts` | `<995 digits here>` | `[x]` | `[x]` |
|
| | `xen_grub_env_boot_mode_opts=<996 digits here>` | `echo $xen_grub_env_boot_mode_opts` | ` ` on PVH, `<995 digits here>` on PV | `[x]` | `[x]` |
|
| | `xen_grub_env_a=<10,000 digits here>` | `echo $xen_grub_env_a` | ` ` on PVH, `<1008 digits here>` on PV | `[x]` | `[x]` |
|
| | `xen_grub_env_arg_one='arg1' xen_grub_env_arg_two='arg2'` | `echo $xen_grub_env_arg_one`, `echo $xen_grub_env_arg_two` | `arg1`, `arg2` | `[x]` | `[x]` |
|
| | `xen_grub_env_arg1='arg_one' xen_grub_env_arg2='arg_two'` | `echo $xen_grub_env_arg1`, `echo $xen_grub_env_arg2` | ` `, ` ` | `[x]` | `[x]` |
|
| | `xen_grub_env_boot_mode_opts=` | `echo $xen_grub_env_boot_mode_opts | ` ` | `[x]` | `[x]` |
|
| | `xen_grub_env_arg1='arg_one' xen_grub_env_arg_two='arg2'` | `echo $xen_grub_env_arg1`, `echo $xen_grub_env_arg_two` | ` `, `arg2` | `[x]` | `[x]` |
|
| | `xen_grub_env_boot_mode_opts="^Aabc"` | `echo $xen_grub_env_boot_mode_opts` | ` ` | `[x]` | `[x]` |
|
| | `xen_grub_env_boot_mode_^Aopts="abc"` | `echo $xen_grub_env_boot_mode_opts` | ` ` | `[x]` | `[x]` |
|
| | `xen_grub_env_do_thing` | `echo $xen_grub_env_do_thing` | `1` | `[x]` | `[x]` |
|
| | `xen_grub_env_do_^Athing` | `echo $xen_grub_env_do_thing` | ` ` | `[x]` | `[x]` |
|
| | `xen_grub_env_do_^Athing xen_grub_env_do_other` | `echo $xen_grub_env_do_thing`, `echo $xen_grub_env_do_other` | ` `, ` ` | `[x]` | `[x]` |
|
| | `""` | ` ` | Boot without crash | `[x]` | `[x]` |
|
| | `""=""` | ` ` | Boot without crash | `[x]` | `[x]` |
|
| | `=` | ` ` | Boot without crash | `[x]` | `[x]` |
|
| | `\` | ` ` | Boot without crash | `[x]` | `[x]` |
|
| | `xen_grub_env_var=\""a"\'` | `echo $xen_grub_env_var` | `"a'` | `[x]` | `[x]` |
|
| | `xen_grub_env_var=\''a'\"` | `echo $xen_grub_env_var` | `'a"` | `[x]` | `[x]` |
|
| | `xen_grub_env_var_a=\'"a"\" xen_grub_env_var_b=\"'b'\'` | `echo $xen_grub_env_var_a`, `echo $xen_grub_env_var_b` | `'a"`, `"b'` | `[x]` | `[x]` |
|