Lines Matching refs:regexp
102 # Convert a list of keywords like "pid comm" to a regexp
107 local regexp
108 regexp="$(echo "$keywords" | \
110 eval regexp=\""${regexp}"\"
111 regexp="^${regexp}\$"
112 echo "$regexp"
116 # Check that a string matches a regexp; use the specified id
120 local id="$1" string="$2" regexp="$3"
121 if ! expr "$string" : "$regexp" >/dev/null
123 atf_fail "${id}: expected [${regexp}], got [${string}]"
147 # Run "ps $args"; check that the heading matches the expected regexp.
152 regexp="$2"
154 check_regexp "heading [$args]" "${actual}" "${regexp}"
158 # Run "ps $args"; check that the heading matches a regexp constructed