Print this page
8858 /usr/bin/grep doesn't support -E option
4580 /usr/bin/grep can't handle multibyte characters
8929 8868 tests are not delivered with system/test/utiltest
8860 Example in grep(1) is incorrect
Reviewed by: Peter Tribble <peter.tribble@gmail.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Yuri Pankov <yuripv@gmx.com>


 155         lotsaFiles write
 156         lotsaFiles write
 157         lotsaFiles write
 158 
 159         lotsaFiles read
 160         lotsaFiles read
 161         lotsaFiles read
 162 
 163         PASS "Cycle"
 164 done
 165 exit 0
 166 EOF
 167 }
 168 
 169 # FIXME: we reset the VMALLOC_OPTIONS (and the depreciated VMDEBUG (for now)) variable for the run to avoid
 170 # that the test may run for hours. This may require re-investigation why this happens.
 171 out="$(unset VMALLOC_OPTIONS VMDEBUG ; cat_test | ${SHELL} 2>&1)" || err_exit "Unexpected exit code $?"
 172 [[ "${out}" != "" ]] || err_exit "No output from test"
 173 
 174 # filter output and check it
 175 out2="$(/usr/xpg4/bin/egrep -v '^((read-seq|read-rand|syncread-seq|syncread-seq)[[:space:][:blank:]]*)*$' <<<"${out}")"
 176 [[ "${out2}" == "" ]] || err_exit "Unexpected output '${out2}'"
 177 
 178 
 179 cd "${ocwd}"
 180 rmdir "${tmpdir}" || err_exit "Cannot remove temporary directory ${tmpdir}".
 181 
 182 # tests done
 183 exit $((Errors))


 155         lotsaFiles write
 156         lotsaFiles write
 157         lotsaFiles write
 158 
 159         lotsaFiles read
 160         lotsaFiles read
 161         lotsaFiles read
 162 
 163         PASS "Cycle"
 164 done
 165 exit 0
 166 EOF
 167 }
 168 
 169 # FIXME: we reset the VMALLOC_OPTIONS (and the depreciated VMDEBUG (for now)) variable for the run to avoid
 170 # that the test may run for hours. This may require re-investigation why this happens.
 171 out="$(unset VMALLOC_OPTIONS VMDEBUG ; cat_test | ${SHELL} 2>&1)" || err_exit "Unexpected exit code $?"
 172 [[ "${out}" != "" ]] || err_exit "No output from test"
 173 
 174 # filter output and check it
 175 out2="$(/usr/bin/egrep -v '^((read-seq|read-rand|syncread-seq|syncread-seq)[[:space:][:blank:]]*)*$' <<<"${out}")"
 176 [[ "${out2}" == "" ]] || err_exit "Unexpected output '${out2}'"
 177 
 178 
 179 cd "${ocwd}"
 180 rmdir "${tmpdir}" || err_exit "Cannot remove temporary directory ${tmpdir}".
 181 
 182 # tests done
 183 exit $((Errors))