#!/usr/bin/env perl

use lib 'lib/perl';
use Test::Harness;
use Cwd;

# Intervene the users default .darcs settings
$ENV{HOME} = cwd();

# Put a false darcs first in PATH
$ENV{PATH} = "$ENV{HOME}/bin:$ENV{PATH}";
chmod 0755, 'bin/darcs';

# Turn off all color and escaping to make tests run faster and independent
# of users environment.
$ENV{DARCS_DONT_COLOR} = 1;
$ENV{DARCS_DONT_ESCAPE_ANYTHING} = 1;

runtests(@ARGV);
