[BACK]Return to build-on-hosts.sh CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / external / bsd / tre / dist / tests

File: [cvs.NetBSD.org] / src / external / bsd / tre / dist / tests / build-on-hosts.sh (download)

Revision 1.1.1.1 (vendor branch), Fri Nov 17 16:11:12 2017 UTC (2 years, 8 months ago) by rin
Branch: MAIN, LAURIKARI
CVS Tags: tre-20171117, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp, HEAD
Changes since 1.1: +0 -0 lines

Import tre from https://github.com/laurikari/tre as of 10171117:

- tre_reg*b() functions are added, that take bytes literally.
- minor bug fixes

#! /bin/sh

set -e

if test -z "$BUILD_HAVE_SOURCES"; then
  echo -n "Building source code distribution..."
  ./utils/build-sources.sh > /dev/null
  echo "OK"
fi

if test -z "$*"; then
  for f in tests/build-hosts/*; do
    if test -f $f; then
      hosts="$hosts `basename $f`"
    fi
  done
else
  hosts="$*"
fi

for hostfile in $hosts; do
  (
  . tests/build-hosts/$hostfile
  pkg=`ls dist/tre-*.tar.gz`
  pkg=`basename $pkg`
  dir=`basename $pkg .tar.gz`
  if test -z "$scp_host"; then
    echo foo
    scp_host="$host"
  fi

  cat tests/build-hosts/$hostfile > $hostfile.tmp
  echo "pkg=$pkg" >> $hostfile.tmp
  echo "dir=$dir" >> $hostfile.tmp
  chmod +x $hostfile.tmp

  echo "Copying files to $scp_host..."
  scp dist/$pkg tests/build-run.sh $scp_host:build-tmp
  scp $hostfile.tmp $scp_host:build-tmp/build-params.sh
  rm -f $hostfile.tmp
  echo "Starting job on $host..."
  ( ssh $host "cd build-tmp; ./build-run.sh";
    if test $? -ne 0; then
      echo "$host: FAILED:"
      exit 1
    fi )
  ) &
done
wait