Skip to content

Commit

Permalink
tests run in container in container
Browse files Browse the repository at this point in the history
  • Loading branch information
Maik Toepfer committed Aug 19, 2020
1 parent 494be06 commit e79c0cf
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 39 deletions.
15 changes: 7 additions & 8 deletions cgi/DownloadFile.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@
#! -*-perl-*-
# run with the provided perl interpreter.
# some magic inspired from 'perldoc perlrun'
eval 'exec $(realpath ../perl5/bin/perl) -w -x $0'
eval 'exec $(realpath ../perl5/bin/perl) \
-I ../perl5/lib/provided_version/ \
-I ../perl5/lib/provided_version/x86_64-linux/ \
-I ../perl5/lib/site_perl/provided_version/ \
-I ../perl5/lib/site_perl/provided_version/x86_64-linux/ \
-I ../lib/ \
-w -x $0'
if 0;

BEGIN {push @INC ,
'../perl5/lib/provided_version/',
'../perl5/lib/provided_version/x86_64-linux/',
'../perl5/lib/site_perl/provided_version/',
'../perl5/lib/site_perl/provided_version/x86_64-linux/',
'../lib/'}

use strict;
use MyFav::SubApps::DownloadFile;

Expand Down
15 changes: 7 additions & 8 deletions cgi/Login.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@
#! -*-perl-*-
# run with the provided perl interpreter.
# some magic inspired from 'perldoc perlrun'
eval 'exec $(realpath ../perl5/bin/perl) -w -x $0'
eval 'exec $(realpath ../perl5/bin/perl) \
-I ../perl5/lib/provided_version/ \
-I ../perl5/lib/provided_version/x86_64-linux/ \
-I ../perl5/lib/site_perl/provided_version/ \
-I ../perl5/lib/site_perl/provided_version/x86_64-linux/ \
-I ../lib/ \
-w -x $0'
if 0;

BEGIN {push @INC ,
'../perl5/lib/provided_version/',
'../perl5/lib/provided_version/x86_64-linux/',
'../perl5/lib/site_perl/provided_version/',
'../perl5/lib/site_perl/provided_version/x86_64-linux/',
'../lib/'}

use strict;
use MyFav::SubApps::Login;

Expand Down
15 changes: 7 additions & 8 deletions cgi/Releases.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@
#! -*-perl-*-
# run with the provided perl interpreter.
# some magic inspired from 'perldoc perlrun'
eval 'exec $(realpath ../perl5/bin/perl) -w -x $0'
eval 'exec $(realpath ../perl5/bin/perl) \
-I ../perl5/lib/provided_version/ \
-I ../perl5/lib/provided_version/x86_64-linux/ \
-I ../perl5/lib/site_perl/provided_version/ \
-I ../perl5/lib/site_perl/provided_version/x86_64-linux/ \
-I ../lib/ \
-w -x $0'
if 0;

BEGIN {push @INC ,
'../perl5/lib/provided_version/',
'../perl5/lib/provided_version/x86_64-linux/',
'../perl5/lib/site_perl/provided_version/',
'../perl5/lib/site_perl/provided_version/x86_64-linux/',
'../lib/'}

use strict;
use MyFav::SubApps::Releases;

Expand Down
15 changes: 7 additions & 8 deletions cgi/Wizard.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@
#! -*-perl-*-
# run with the provided perl interpreter.
# some magic inspired from 'perldoc perlrun'
eval 'exec $(realpath ../perl5/bin/perl) -w -x $0'
eval 'exec $(realpath ../perl5/bin/perl) \
-I ../perl5/lib/provided_version/ \
-I ../perl5/lib/provided_version/x86_64-linux/ \
-I ../perl5/lib/site_perl/provided_version/ \
-I ../perl5/lib/site_perl/provided_version/x86_64-linux/ \
-I ../lib/ \
-w -x $0'
if 0;

BEGIN {push @INC ,
'../perl5/lib/provided_version/',
'../perl5/lib/provided_version/x86_64-linux/',
'../perl5/lib/site_perl/provided_version/',
'../perl5/lib/site_perl/provided_version/x86_64-linux/',
'../lib/'}

use strict;
use MyFav::SubApps::Wizard;

Expand Down
14 changes: 7 additions & 7 deletions test/Runner.t
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#! /usr/bin/perl
#!/usr/bin/perl
use FindBin 1.51 qw( $RealBin );
use lib $RealBin;

# use TestContainerTest;
use TestContainerTest;
use InstallTest;
# use InstallOkTest;
# use LoginTest;
# use WizardTest;
# use ReleasesTest;
# use DownloadFileTest;
use InstallOkTest;
use LoginTest;
use WizardTest;
use ReleasesTest;
use DownloadFileTest;

Test::Class->runtests;

0 comments on commit e79c0cf

Please sign in to comment.