5199917cc6
The test suite currently lacks basic sanity checks to ensure that egrep, fgrep, and grep are actually matching the right expression types, i.e. passing the right flags to regcomp(3). Amend the test suite to make sure that not only are the individual versions doing the right thing, but also that we don't have some kind of frankenregex situation happening where egrep is accepting a BRE or grep an ERE. I've chosen to not expand the 'basic' test but to add the 'grep_sanity' checks to their own test case since this is testing for more than just 'grep matches things', but actual expression types. Differential Revision: D10444 Reviewed by: emaste, ngie Submitted by: Kyle Evans <kevans91@ksu.edu> Tested with: bsdgrep, gnu grep (base, ports) Sponsored by: Dell EMC Isilon |
||
---|---|---|
.. | ||
awk | ||
basename | ||
bzip2 | ||
cc | ||
cmp | ||
config | ||
cut | ||
diff | ||
dirname | ||
find | ||
gdb | ||
grep | ||
gzip | ||
id | ||
infocmp | ||
jot | ||
ld | ||
m4 | ||
make | ||
mixerctl | ||
mkdep | ||
nbperf | ||
netpgpverify | ||
pr | ||
rump_server | ||
sdiff | ||
sed | ||
shmif_dumpbus | ||
sort | ||
tmux | ||
tr | ||
unifdef | ||
uniq | ||
vmstat | ||
xlint/lint1 |