dracut/test
Chapman Flack 2c19a5fa78 Specify strstr tightly, add strglob/strglobin.
By convention, strstr should be a literal string match. Previously, it
would match as a glob pattern. Some code used that, so add new
functions strglob and strglobin to do what that code expects, and
specify them tightly too. strglob tests whether the glob pattern
matches the entire string (the name strglob is also used in the yorick
language, and that's what it does there), while strglobin tests whether
the glob pattern matches anywhere in the string.

Also tightens str_starts, str_ends, and str_replace to deal with
literal strings only. In a quick grep I did not find code that depended
on these functions matching globs.

Changes the call sites where strstr was used with glob patterns to use
strglobin or strglob as the intention seemed to be (or, in one case,
strstr with the * removed as it did not affect the result anyway).
2014-04-07 10:49:07 +02:00
..
TEST-01-BASIC Specify strstr tightly, add strglob/strglobin. 2014-04-07 10:49:07 +02:00
TEST-02-SYSTEMD Specify strstr tightly, add strglob/strglobin. 2014-04-07 10:49:07 +02:00
TEST-03-USR-MOUNT Specify strstr tightly, add strglob/strglobin. 2014-04-07 10:49:07 +02:00
TEST-04-FULL-SYSTEMD Specify strstr tightly, add strglob/strglobin. 2014-04-07 10:49:07 +02:00
TEST-10-RAID Specify strstr tightly, add strglob/strglobin. 2014-04-07 10:49:07 +02:00
TEST-11-LVM Specify strstr tightly, add strglob/strglobin. 2014-04-07 10:49:07 +02:00
TEST-12-RAID-DEG Specify strstr tightly, add strglob/strglobin. 2014-04-07 10:49:07 +02:00
TEST-13-ENC-RAID-LVM test: include the same Makefile.testdir 2014-02-04 12:01:11 +01:00
TEST-14-IMSM Specify strstr tightly, add strglob/strglobin. 2014-04-07 10:49:07 +02:00
TEST-15-BTRFSRAID test: include the same Makefile.testdir 2014-02-04 12:01:11 +01:00
TEST-16-DMSQUASH Specify strstr tightly, add strglob/strglobin. 2014-04-07 10:49:07 +02:00
TEST-17-LVM-THIN Specify strstr tightly, add strglob/strglobin. 2014-04-07 10:49:07 +02:00
TEST-20-NFS Specify strstr tightly, add strglob/strglobin. 2014-04-07 10:49:07 +02:00
TEST-30-ISCSI test: include the same Makefile.testdir 2014-02-04 12:01:11 +01:00
TEST-40-NBD test: include the same Makefile.testdir 2014-02-04 12:01:11 +01:00
TEST-50-MULTINIC Specify strstr tightly, add strglob/strglobin. 2014-04-07 10:49:07 +02:00
TEST-99-RPM test: include the same Makefile.testdir 2014-02-04 12:01:11 +01:00
Makefile test/Makefile: add SKIP env to skip certain tests 2014-02-28 13:25:39 +01:00
Makefile.testdir test: add missing Makefile.testdir 2014-02-28 12:57:57 +01:00
dracut.conf.test Disambiguate modules and drivers. modules are dracutmodules. drivers are kernel modules. 2009-05-28 14:27:02 -04:00
run-qemu test/run-qemu: specify the kernel 2013-06-28 10:21:42 +02:00
test-functions use "rm --" to guard against filenames beginning with "-" 2013-06-28 10:31:18 +02:00