42 |
For example the line:: |
For example the line:: |
43 |
|
|
44 |
grubTest grub.1 updargs/g1.1 --update-kernel=DEFAULT --args="root=/dev/hda1" |
grubTest grub.1 updargs/g1.1 --update-kernel=DEFAULT --args="root=/dev/hda1" |
45 |
|
|
46 |
means execute the command:: |
means execute the command:: |
47 |
|
|
48 |
./grubby --grub --config-file tests/grub.1 --update-kernel=DEFAULT \ |
./grubby --grub --config-file tests/grub.1 --update-kernel=DEFAULT \ |
66 |
---------------------- |
---------------------- |
67 |
|
|
68 |
To write a new test case for grubby you need a config file which matches the |
To write a new test case for grubby you need a config file which matches the |
69 |
initial test conditions (either existing one or a new one), provide a |
initial test conditions (either existing one or a new one), provide a |
70 |
results file (likely a new one) which contains the expected configuration or |
results file (likely a new one) which contains the expected configuration or |
71 |
output and finally add a call to the test function(s) using the desired grubby |
output and finally add a call to the test function(s) using the desired grubby |
72 |
parameters in an appropriate section of `test.sh`. |
parameters in an appropriate section of `test.sh`. |