From mboxrd@z Thu Jan 1 00:00:00 1970 From: Damien Lespiau Subject: [PATCH 01/23] piglit: Add a script to synchronise the piglit test runner Date: Fri, 15 Nov 2013 16:33:18 +0000 Message-ID: <1384533220-20780-2-git-send-email-damien.lespiau@intel.com> References: <1384533220-20780-1-git-send-email-damien.lespiau@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id E2AC1FB884 for ; Fri, 15 Nov 2013 08:33:45 -0800 (PST) In-Reply-To: <1384533220-20780-1-git-send-email-damien.lespiau@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org The goal is to to remove the need to clone and compile piglit to run a piglit enabled igt. Compiling piglit is not actually needed and we can just grab the python files from a reference checktout. Signed-off-by: Damien Lespiau --- piglit/sync-from-piglit | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 piglit/sync-from-piglit diff --git a/piglit/sync-from-piglit b/piglit/sync-from-piglit new file mode 100755 index 0000000..20a95ff --- /dev/null +++ b/piglit/sync-from-piglit @@ -0,0 +1,24 @@ +#!/bin/sh + +PIGLIT_DIR=$1 +BASE_DIR="$(cd "$(dirname "$0")"; pwd -P)" +EXCLUDE_FILE="$BASE_DIR/sync-exclude" + +[ -z "$PIGLIT_DIR" ] && { + echo "Error: You must specify the piglit directory to sync from" + exit 1 +} + +cat < $EXCLUDE_FILE +tests +*.pyc +*_test.py +EOF + +rsync -rtv --exclude-from $EXCLUDE_FILE \ + $PIGLIT_DIR/framework \ + $PIGLIT_DIR/templates \ + $PIGLIT_DIR/piglit-*.py \ + $BASE_DIR + +rm -f $EXCLUDE_FILE -- 1.8.3.1