summaryrefslogtreecommitdiffstats
path: root/test/parser/test-grub2-search-args.c
Commit message (Collapse)AuthorAgeFilesLines
* discover/grub2: test for (ignored) --no-floppy argumentJeremy Kerr2019-11-291-2/+4
| | | | | | | --no-floppy is used almost everywhere, so add it to the tests. The code will already ignore unknown arguments, but ensure that this works OK. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* discover/grub2: Use getopt for `search` argument parsingJeremy Kerr2019-11-291-0/+33
The search command will be extended to add the full set of grub2-style arguments, so switch to using getopt, rather than manual parsing. This means we now support `--set=foo` and `--set foo` style arguments, both of which appear in the docs and common grub configs. Also, add a small test for the search argument handling. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
OpenPOWER on IntegriCloud