Skip to content

Commit

Permalink
cleanup xt tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki-kimoto committed Apr 14, 2016
1 parent b60a0ba commit ecf601f
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 19 deletions.
12 changes: 3 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ setup/log/*
setup/latest-build
setup/work/*
setup/build.log
xt/admin.db
xt/admin
xt/user.db
xt/user
xt/log
xt/import_rep.db
xt/import_rep_user
xt/smart_http.db
xt/smart_http
xt/user/*
xt/import_rep/*
xt/smart_http/*
2 changes: 1 addition & 1 deletion xt/basic.t
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use Encode qw/encode decode/;
use Test::Mojo;

# Test DB
$ENV{GITPREP_DB_FILE} = "$FindBin::Bin/basic.db";
$ENV{GITPREP_DB_FILE} = "$FindBin::Bin/basic/gitprep.db";

# Test Repository home
$ENV{GITPREP_REP_HOME} = "$FindBin::Bin/../../gitprep_t_rep_home";
Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions xt/import_rep.t
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ use Encode qw/encode decode/;
use Test::Mojo;

# Test DB
my $db_file = $ENV{GITPREP_DB_FILE} = "$FindBin::Bin/import_rep.db";
my $db_file = $ENV{GITPREP_DB_FILE} = "$FindBin::Bin/import_rep/gitprep.db";

# Test Repository home
my $rep_home = $ENV{GITPREP_REP_HOME} = "$FindBin::Bin/import_rep_user";
my $rep_home = $ENV{GITPREP_REP_HOME} = "$FindBin::Bin/import_rep/rep";

$ENV{GITPREP_NO_MYCONFIG} = 1;

Expand Down Expand Up @@ -52,12 +52,12 @@ note 'import_rep';
or die "Command fail: @cmd";

# Branch
ok(-f "$FindBin::Bin/import_rep_user/kimoto/gitprep_t.git/refs/heads/b1");
ok(-f "$rep_home/kimoto/gitprep_t.git/refs/heads/b1");

# Tag
ok(-f "$FindBin::Bin/import_rep_user/kimoto/gitprep_t.git/refs/tags/t1");
ok(-f "$rep_home/kimoto/gitprep_t.git/refs/tags/t1");

# Description
ok(-f "$FindBin::Bin/import_rep_user/kimoto/gitprep_t.git/description");
ok(-f "$rep_home/kimoto/gitprep_t.git/description");
}

4 changes: 2 additions & 2 deletions xt/smart_http.t
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ use MIME::Base64 'encode_base64';
use Test::Mojo;

# Test DB
my $db_file = $ENV{GITPREP_DB_FILE} = "$FindBin::Bin/smart_http.db";
my $db_file = $ENV{GITPREP_DB_FILE} = "$FindBin::Bin/smart_http/gitprep.db";

# Test Repository home
my $rep_home = $ENV{GITPREP_REP_HOME} = "$FindBin::Bin/smart_http";
my $rep_home = $ENV{GITPREP_REP_HOME} = "$FindBin::Bin/smart_http/rep";

$ENV{GITPREP_NO_MYCONFIG} = 1;

Expand Down
4 changes: 2 additions & 2 deletions xt/user.t
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ use Encode qw/encode decode/;
use Test::Mojo;

# Test DB
my $db_file = $ENV{GITPREP_DB_FILE} = "$FindBin::Bin/user.db";
my $db_file = $ENV{GITPREP_DB_FILE} = "$FindBin::Bin/user/gitprep.db";

# Test Repository home
my $rep_home = $ENV{GITPREP_REP_HOME} = "$FindBin::Bin/user";
my $rep_home = $ENV{GITPREP_REP_HOME} = "$FindBin::Bin/user/rep";

$ENV{GITPREP_NO_MYCONFIG} = 1;

Expand Down

0 comments on commit ecf601f

Please sign in to comment.