Tests: Add verbose support to test script
[urcu.git] / tests / unit / run.sh
CommitLineData
1b387491
MJ
1#!/bin/bash
2#
3# Copyright (C) 2013 - Christian Babeux <christian.babeux@efficios.com>
e9bea64a 4# 2016 - Michael Jeanson <mjeanson@efficios.com>
1b387491
MJ
5#
6# This program is free software; you can redistribute it and/or
7# modify it under the terms of the GNU General Public License
8# as published by the Free Software Foundation; only version 2
9# of the License.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program; if not, write to the Free Software
18# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19#
20
ad460058 21INPUT=$1
e9bea64a 22ARGS=()
ad460058 23shift 1
1b387491 24
e9bea64a
MJ
25if [ -z "${INPUT}" ]; then
26 echo "Error: No testlist. Please specify a testlist to run."
27 exit 1
28fi
ad460058 29
e9bea64a
MJ
30if [ "x$V" == "x1" ]; then
31 ARGS+=('-v')
32fi
33
34prove "${@}" "${ARGS[@]}" --merge --exec '' - < "${INPUT}"
This page took 0.029549 seconds and 4 git commands to generate.