Changeset 4261 for zzuf/trunk/test


Ignore:
Timestamp:
Jan 13, 2010, 12:54:49 AM (11 years ago)
Author:
Sam Hocevar
Message:

Fix check-build on platforms without sh's pushd/popd or grep's \<\>.

Location:
zzuf/trunk/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/test/check-build

    r4253 r4261  
    2424for key in $(sed -ne 's/.*#undef *\([A-Za-z0-9_]*\).*/\1/p' "$config_h_in");
    2525do
    26   if ! grep '[ef] \<'"$key"'\>' "$msvc_config_h" >/dev/null 2>&1; then
     26  if ! grep "[ef] $key[ (]" "$msvc_config_h" >/dev/null 2>&1; then
    2727    echo "error: $key missing from msvc/config.h"
    2828    failure=1
     
    4040failure=0
    4141for dir in src test; do
    42   pushd ../$dir >/dev/null
     42  (cd $(dirname "$0")/../$dir
    4343  for x in $(make echo-sources); do
    4444    if grep '[[:space:]]$' "$x" >/dev/null 2>&1; then
     
    5050      failure=1
    5151    fi
    52   done
    53   popd >/dev/null
     52  done)
    5453done
    5554if test "$failure" != "0"; then
  • zzuf/trunk/test/functions.inc

    r4253 r4261  
    7777    fi
    7878    echo "*** all $TESTED tests OK ***"
    79     echo ""
    8079}
    8180
Note: See TracChangeset for help on using the changeset viewer.