]> git.baikalelectronics.ru Git - uboot.git/commit
test: Add a test for getopt
authorSean Anderson <seanga2@gmail.com>
Tue, 27 Oct 2020 23:55:37 +0000 (19:55 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 30 Oct 2020 14:56:11 +0000 (10:56 -0400)
commit8098de063a036b61bff591d322c4b59c2ed78047
treef5cc3d16bcbeb3d1632f14d81198ffc261557407
parent9a7d1c09b5f2bb128d0e1fac48e106d3de0e0b82
test: Add a test for getopt

A few of these tests were inspired by those in glibc. The syntax for
invoking test_getopt is a bit funky, but it's necessary so that the CPP can
parse the arguments correctly.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
test/lib/Makefile
test/lib/getopt.c [new file with mode: 0644]