#! /bin/bash

# Copyright (C) 2013, Red Hat, Inc.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html

if [ ! $# -eq 1 ]; then
  echo "USAGE : $0 PATH/TO/BUNDLES/DIRECTORY"
  exit 1
fi

/opt/rh/devtoolset-3/root/usr/share/java/eclipse-testing/testbundle/prepRuntimeLocation.sh || exit 1
/opt/rh/devtoolset-3/root/usr/share/java/eclipse-testing/testbundle/prepAllTestBundles.sh $1 || exit 1

pushd target

./runtests.sh -os linux -ws gtk -arch `arch`
