brizental pushed to branch main at The Tor Project / Applications / tor-browser-bundle-testsuite Commits: d44ac6a2 by Beatriz Rizental at 2025-10-03T01:23:22+00:00 Bug 40089: Delete browser-rebase test type This has been obsolete it seems since ESR31 i.e. 2015. - - - - - effdeb36 by Beatriz Rizental at 2025-10-03T01:29:00+00:00 Bug 40089: Delete Tor Messenger related code This project has been discontinued in 2018. - - - - - c4cac0fe by Beatriz Rizental at 2025-10-03T01:59:50+00:00 Bug 40089: Delete virus-total related test suites These are obsolete and outdated. We might bring them back, but since they will require a full rewrite and a lot of the infrastrcuture of the previous implementation is gone anyways I have decided to drop it for now. Discussion on whether to bring it back on https://gitlab.torproject.org/tpo/applications/tor-browser-bundle-testsuite/... - - - - - 22 changed files: - TBBTestSuite/Options.pm - TBBTestSuite/TestSuite/BrowserBundleTests.pm - − TBBTestSuite/TestSuite/BrowserBundleVirusTotal.pm - − TBBTestSuite/TestSuite/BrowserRebaseTests.pm - − TBBTestSuite/TestSuite/TorMailBuild.pm - − TBBTestSuite/TestSuite/TorMessengerBuild.pm - TBBTestSuite/TestSuites.pm - TBBTestSuite/Tests.pm - − TBBTestSuite/Tests/VirusTotal.pm - − config/browser-rebase - − config/linus-nightly-virustotal - − config/release-virustotal - − config/tor-mail_build - − config/tor-messenger_build - doc/usage.txt - − tmpl/details_cherry_pick.html - − tmpl/details_virustotal.html - − tmpl/report_browserbundle_virustotal.txt - − tmpl/reports_index_browserbundle_virustotal.html - − tmpl/reports_index_browserrebase.html - − tools/paganini-builds - − tools/run-tests-virustotal Changes: ===================================== TBBTestSuite/Options.pm ===================================== @@ -49,8 +49,6 @@ my %default_options = ( xvfb => 0, xdummy => $OSNAME ne 'cygwin', use_strace => 0, - virustotal => 0, - 'virustotal-api-key-file' => "$ENV{HOME}/.virustotal.api-key", 'email-to' => [], 'email-from' => 'TBB Test Report <tbbtest@example.com>', 'email-subject' => '[test result: [% success ? "ok" : "failed" %]] [% options.name %]', @@ -71,7 +69,7 @@ sub get_options { tor-socks-port=i reports-dir=s gpgcheck! keyring=s xvfb! name=s download-dir=s config=s action=s enable-tests=s upload-to=s os=s arch=s - virustotal! email-to=s@ email-from=s email-subject=s + email-to=s@ email-from=s email-subject=s reports-url=s http-proxy-port=i xdummy! disable-tests=s testrequests_types=s testsuite=s cleanup! PTtests!); ===================================== TBBTestSuite/TestSuite/BrowserBundleTests.pm ===================================== @@ -19,7 +19,6 @@ use LWP::UserAgent; use IO::CaptureOutput qw(capture_exec); use TBBTestSuite::Common qw(exit_error winpath clone_strip_coderef screenshot_thumbnail); use TBBTestSuite::Options qw($options); -use TBBTestSuite::Tests::VirusTotal qw(virustotal_run); use TBBTestSuite::Tests::Command qw(command_run); use TBBTestSuite::Tests::TorBootstrap; use TBBTestSuite::XServer qw(start_X stop_X set_Xmode); @@ -28,7 +27,6 @@ sub test_types { return { tor_bootstrap => \&TBBTestSuite::Tests::TorBootstrap::start_tor, marionette => \&marionette_run, - virustotal => \&virustotal_run, command => \&command_run, }; } ===================================== TBBTestSuite/TestSuite/BrowserBundleVirusTotal.pm deleted ===================================== @@ -1,27 +0,0 @@ -package TBBTestSuite::TestSuite::BrowserBundleVirusTotal; - -use parent 'TBBTestSuite::TestSuite::BrowserBundleTests'; - -sub description { - 'Tor Browser Bundle Virustotal checks'; -} - -sub type { - 'browserbundle_virustotal'; -} - -sub new { - my ($ts, $testsuite) = @_; - return undef unless $testsuite->{os} eq 'Windows'; - $testsuite->{type} = 'browserbundle_virustotal'; - $testsuite->{tests} = [ - { - name => 'virustotal', - type => 'virustotal', - descr => 'Analyze files on virustotal.com', - }, - ]; - return bless $testsuite; -} - -1; ===================================== TBBTestSuite/TestSuite/BrowserRebaseTests.pm deleted ===================================== @@ -1,92 +0,0 @@ -package TBBTestSuite::TestSuite::BrowserRebaseTests; - -use strict; - -use parent 'TBBTestSuite::TestSuite'; - -use File::Slurp; -use IO::CaptureOutput qw(capture_exec); -use TBBTestSuite::BrowserGit qw(git_clone_fetch get_commits_by_branch - parent_commit git_cmd git_cmd_ch); - -sub test_types { - return { - cherry_pick => \&cherry_pick, - }; -} - -sub type { - 'browserrebase'; -} - -sub description { - 'Tor Browser rebase tests'; -} - -sub test_name { - my ($commit) = @_; - my ($res) = git_cmd_ch('git', 'show', '-s', '--abbrev=12', - '--format=%h-%f', $commit); - return $res; -} - - -sub new { - my ($ts, $infos) = @_; - git_clone_fetch; - my $testsuite = { - %$infos, - type => $ts->type(), - filename => 'browser-rebase', - tests => [], - }; - my @commits = reverse get_commits_by_branch($infos->{tb_branch}, - $infos->{esr_branch}); - shift @commits; - foreach my $commit (@commits) { - my $test = { - name => test_name($commit), - type => 'cherry_pick', - descr => "Cherry pick commit $commit\n", - commit => $commit, - retry => 1, - }; - push @{$testsuite->{tests}}, $test; - } - return bless $testsuite, $ts; -} - -sub pre_tests { - my ($tbbinfos) = @_; - chdir $TBBTestSuite::BrowserGit::clone_dir; - git_cmd('git', 'clean', '-fx'); - git_cmd('git', 'checkout', '-f', '--detach'); - if (-f '.git/refs/heads/rebase-test') { - print "Removing rebase-test branch\n"; - my ($out) = git_cmd('git', 'branch', '-D', 'rebase-test'); - print $out; - } - git_cmd('git', 'branch', '-f', 'rebase-test', 'gecko-dev/master'); - git_cmd('git', 'checkout', '-f', 'rebase-test'); -} - -sub cherry_pick { - my ($tbbinfos, $test) = @_; - print "Rebase $test->{commit}\n"; - my ($out, $err, $success) = capture_exec('git', 'cherry-pick', '-Xpatience', - '--allow-empty', '--ff', $test->{commit}); - $test->{results}{success} = $success; - if (!$success) { - $test->{results}{git_out} = $out; - $test->{results}{git_err} = $err; - ($test->{results}{failed_diff}) = git_cmd_ch('git', 'diff'); - $test->{results}{success} = 1 unless $test->{results}{failed_diff}; - git_cmd('git', 'reset', '--hard'); - } else { - my ($patch) = git_cmd_ch('git', 'format-patch', '--stdout', 'HEAD^'); - write_file("$tbbinfos->{'results-dir'}/$test->{name}.patch", $patch); - $test->{results}{patch_file} = 1; - } -} - -1; ===================================== TBBTestSuite/TestSuite/TorMailBuild.pm deleted ===================================== @@ -1,59 +0,0 @@ -package TBBTestSuite::TestSuite::TorMailBuild; - -use strict; -use parent 'TBBTestSuite::TestSuite::RBMBuild'; - -use TBBTestSuite::GitRepo; - -sub description { - 'Tor Mail Build'; -} - -sub type { - 'tor-mail_build'; -}; - -sub set_tests { - my ($testsuite) = @_; - $testsuite->{tests} = [ - { - name => 'linux-x86_64', - descr => 'build tor-mail linux-x86_64', - type => 'rbm_build', - project => 'tor-mail', - targets => [ - 'noint', - 'linux-x86_64', - 'tor-mail', - ], - publish_dir => 'linux-x86_64', - }, - { - name => 'linux-i686', - descr => 'build tor-mail linux-i686', - type => 'rbm_build', - project => 'tor-mail', - targets => [ - 'noint', - 'linux-i686', - 'tor-mail', - ], - publish_dir => 'linux-i686', - }, - ]; -} - -sub pre_tests { - my ($tbbinfos) = @_; - my $gr = TBBTestSuite::GitRepo->new({ - name => 'tor-mail', - git_url => 'https://git.torproject.org/tor-messenger-build.git', - }); - $gr->clone_fetch; - $gr->cmd('git', 'checkout', 'master'); - chdir $gr->clone_dir(); - system('make', 'submodule-update'); - system('make', 'fetch'); -} - -1; ===================================== TBBTestSuite/TestSuite/TorMessengerBuild.pm deleted ===================================== @@ -1,83 +0,0 @@ -package TBBTestSuite::TestSuite::TorMessengerBuild; - -use strict; -use parent 'TBBTestSuite::TestSuite::RBMBuild'; - -use TBBTestSuite::GitRepo; - -sub description { - 'Tor Messenger Build'; -} - -sub type { - 'tor-messenger_build'; -}; - -sub set_tests { - my ($testsuite) = @_; - $testsuite->{tests} = [ - { - name => 'linux-x86_64', - descr => 'build tor-messenger linux-x86_64', - type => 'rbm_build', - project => 'tor-messenger', - targets => [ - 'noint', - 'linux-x86_64', - 'tor-messenger', - ], - publish_dir => 'linux-x86_64', - }, - { - name => 'linux-i686', - descr => 'build tor-messenger linux-i686', - type => 'rbm_build', - project => 'tor-messenger', - targets => [ - 'noint', - 'linux-i686', - 'tor-messenger', - ], - publish_dir => 'linux-i686', - }, - { - name => 'windows-i686', - descr => 'build tor-messenger windows-i686', - type => 'rbm_build', - project => 'tor-messenger', - targets => [ - 'noint', - 'windows-i686', - 'tor-messenger', - ], - publish_dir => 'windows-i686', - }, - { - name => 'osx-x86_64', - descr => 'build tor-messenger osx-x86_64', - type => 'rbm_build', - project => 'tor-messenger', - targets => [ - 'noint', - 'osx-x86_64', - 'tor-messenger', - ], - publish_dir => 'osx-x86_64', - }, - ]; -} - -sub pre_tests { - my ($tbbinfos) = @_; - my $gr = TBBTestSuite::GitRepo->new({ - name => 'tor-messenger', - git_url => 'https://git.torproject.org/tor-messenger-build.git', - }); - $gr->clone_fetch; - $gr->cmd('git', 'checkout', 'master'); - chdir $gr->clone_dir(); - system('make', 'submodule-update'); - system('make', 'fetch'); -} - -1; ===================================== TBBTestSuite/TestSuites.pm ===================================== @@ -4,18 +4,14 @@ use strict; use TBBTestSuite::TestSuite::TestTestSuite; use TBBTestSuite::TestSuite::BrowserBundleTests; -use TBBTestSuite::TestSuite::BrowserBundleVirusTotal; use TBBTestSuite::TestSuite::BrowserUnitTests; -use TBBTestSuite::TestSuite::BrowserRebaseTests; use TBBTestSuite::TestSuite::RBMBuild; -use TBBTestSuite::TestSuite::TorMailBuild; -use TBBTestSuite::TestSuite::TorMessengerBuild; use TBBTestSuite::TestSuite::TorBrowserBuild; use TBBTestSuite::TestSuite::BrowserBundleHardening; -my @testsuite_list = qw(TestTestSuite BrowserBundleTests BrowserBundleVirusTotal - BrowserUnitTests BrowserRebaseTests RBMBuild TorMailBuild - TorMessengerBuild TorBrowserBuild BrowserBundleHardening); +my @testsuite_list = qw(TestTestSuite BrowserBundleTests + BrowserUnitTests RBMBuild TorBrowserBuild + BrowserBundleHardening); my %testsuite_types; sub testsuite_types { return %testsuite_types if %testsuite_types; ===================================== TBBTestSuite/Tests.pm ===================================== @@ -154,9 +154,7 @@ sub tbb_filename_infos { if ($options->{testsuite}) { return TBBTestSuite::TestSuites::new_by_type($options->{testsuite}, \%res); } - return $options->{virustotal} ? - TBBTestSuite::TestSuite::BrowserBundleVirusTotal->new(\%res) - : TBBTestSuite::TestSuite::BrowserBundleTests->new(\%res); + return TBBTestSuite::TestSuite::BrowserBundleTests->new(\%res); } sub check_gpgsig { ===================================== TBBTestSuite/Tests/VirusTotal.pm deleted ===================================== @@ -1,97 +0,0 @@ -package TBBTestSuite::Tests::VirusTotal; - -use strict; -use Cwd; -use JSON; -use LWP::UserAgent; -use File::Slurp; -use File::Spec; -use File::Find; -use Digest::SHA qw(sha256_hex); -use Data::Dump qw(dd); -use TBBTestSuite::Options qw($options); - -our (@ISA, @EXPORT_OK); -BEGIN { - require Exporter; - @ISA = qw(Exporter); - @EXPORT_OK = qw(virustotal_run); -} - -my %urls = ( - report => 'https://www.virustotal.com/vtapi/v2/file/report', - scan => 'https://www.virustotal.com/vtapi/v2/file/scan', -); - -my $min_time = 15; # minimal time between requests (in seconds) -my $last_req = 0; -sub req { - my ($ua, @args) = @_; - if ($last_req && time - $last_req < $min_time) { - sleep($min_time - (time - $last_req)); - } - $last_req = time; - my $r = $ua->post(@args); - return undef unless $r->is_success; - my $res = eval { JSON::decode_json $r->content }; - print STDERR $@, "\n" unless defined $res; - return undef unless defined $res; - return $res->{response_code} ? $res : undef; -} - -sub scan_file { - my ($file) = @_; - my $apikey = read_file($options->{'virustotal-api-key-file'}); - my (undef, undef, $filename) = File::Spec->splitpath($file); - print "Checking $filename on virustotal\n"; - my $sha = sha256_hex(read_file($file)); - my $params_report = { - resource => $sha, - apikey => $apikey, - }; - my $ua = LWP::UserAgent->new; - my $r = req($ua, $urls{report}, $params_report); - return $r if defined $r; - my $params_scan = { - apikey => $apikey, - file => [ $file, $filename ], - }; - $r = req($ua, $urls{scan}, Content_Type => 'multipart/form-data', - Content => $params_scan); - return $r unless defined $r; - return $r unless $r->{response_code}; - my $retry = 20; - while ($retry) { - $retry--; - sleep(30); - $r = req($ua, $urls{report}, $params_report); - return $r if $r->{response_code}; - } - return $r; -} - -sub virustotal_run { - my ($tbbinfos, $test) = @_; - return unless $options->{virustotal}; - my $files = {}; - $files->{$tbbinfos->{filename}} = scan_file("$tbbinfos->{tmpdir}/$tbbinfos->{filename}"); - my $cwd = getcwd; - my $scanfile = sub { - my $file = $File::Find::name; - return unless -f $file; - return unless $file =~ m/\.exe$/; - my $relative = $file; - $relative =~ s/^$cwd\///; - $files->{$relative} = scan_file($File::Find::name); - }; - find($scanfile, $cwd); - $test->{results}{files} = $files; - $test->{results}{success} = 1; - foreach my $file (keys %$files) { - if (!$files->{$file}{response_code} || $files->{$file}{positives}) { - $test->{results}{success} = 0; - } - } -} - -1; ===================================== config/browser-rebase deleted ===================================== @@ -1,27 +0,0 @@ -# vim: filetype=perl expandtab - -use strict; -use FindBin; -use TBBTestSuite::Common; -use TBBTestSuite::TestSuite::BrowserRebaseTests; -use TBBTestSuite::BrowserGit qw(git_clone_fetch get_commits_by_branch - parent_commit git_cmd_ch); - -my $torbrowser_branch = 'tor-browser-31.6.0esr-4.5-1', -my $esr_branch = 'esr31'; -my $testsuite_version = '1'; - -my ($commit) = git_cmd_ch('git', 'show', '-s', '--format=%H', - "$torbrowser_branch^{commit}"); -my $name = "rebase-$testsuite_version-$commit"; -my $tbbinfos = TBBTestSuite::TestSuite::BrowserRebaseTests->new({ - tb_branch => $torbrowser_branch, - esr_branch => $esr_branch, - }); - -my %res = ( - name => $name, - args => [ $tbbinfos ], - tags => [ $torbrowser_branch ], -); -%res; ===================================== config/linus-nightly-virustotal deleted ===================================== @@ -1,39 +0,0 @@ -# vim: filetype=perl expandtab - -use strict; -use Data::Dump qw(dd); -use LWP::Simple; -use TBBTestSuite::Common qw(last_days); - -my $system_infos = TBBTestSuite::Common::system_infos; -my ($name, $shaurl); -my @dates = last_days(6); -my $ok = 0; - -foreach my $date (@dates) { - $shaurl = "https://people.torproject.org/~linus/builds/tbb-nightly-$date/sha256sums-uns..."; - $name = "tbb-nightly-$date-win32-virustotal"; - if (-d "$options->{'reports-dir'}/r/$name") { - print "Doing nothing: $name already done\n"; - return ( args => [] ); - } - - if (get($shaurl)) { - $ok = 1; - last; - } -} -return ( args => [] ) unless $ok; - -( - name => $name, - keyring => 'linus-nightly.gpg', - args => [ $shaurl ], - virustotal => 1, - os => 'Windows', - arch => 'x86', - starttor => 0, - 'email-from' => 'TBB Nightly Tests <boklm@torproject.org>', - 'email-to' => [ 'boklm@mars-attacks.org', ], - 'reports-url' => 'http://tbb-test-reports.mars-attacks.org/reports/', -); ===================================== config/release-virustotal deleted ===================================== @@ -1,24 +0,0 @@ -# vim: filetype=perl expandtab - -use strict; -use TBBTestSuite::TBBVersion; - -my @latest_builds = TBBTestSuite::TBBVersion::latest_builds($options); -foreach my $build (@latest_builds) { - my $name = "$build->{buildname}-win32-virustotal"; - next if -d "$options->{'reports-dir'}/r/$name"; - return ( - name => $name, - keyring => "$build->{user}.gpg", - args => [ $build->{url} ], - tags => [ "$build->{version}-$build->{build}" ], - virustotal => 1, - os => 'Windows', - arch => 'x86', - starttor => 0, - 'reports-url' => 'http://tbb-test-reports.mars-attacks.org/reports/', - 'email-from' => 'TBB Tests <boklm@torproject.org>', - 'email-to' => [ 'tor-qa@lists.torproject.org', 'boklm@mars-attacks.org', ], - ); -} -return ( args => [] ); ===================================== config/tor-mail_build deleted ===================================== @@ -1,25 +0,0 @@ -# vim: filetype=perl expandtab -use strict; -use FindBin; -use DateTime; -use TBBTestSuite::TestSuite::TorMailBuild; - -my $date = DateTime->now->ymd; -my $name = "tor-mail-$date"; - -if (-d "$options->{'reports-dir'}/r/$name") { - print "Doing nothing: $name already done\n"; - return ( args => [] ); -} - -my $testsuite = TBBTestSuite::TestSuite::TorMailBuild->new({ - publish_dir => "$FindBin::Bin/tor-mail-builds/$date", - publish_url => "http://paganini.erinn.org/~boklm/builds/tor-mail/$date", - }); - -my %res = ( - name => $name, - args => [ $testsuite ], - tags => [ 'nightly' ], -); -%res; ===================================== config/tor-messenger_build deleted ===================================== @@ -1,25 +0,0 @@ -# vim: filetype=perl expandtab -use strict; -use FindBin; -use DateTime; -use TBBTestSuite::TestSuite::TorMessengerBuild; - -my $date = DateTime->now->ymd; -my $name = "tor-messenger-$date"; - -if (-d "$options->{'reports-dir'}/r/$name") { - print "Doing nothing: $name already done\n"; - return ( args => [] ); -} - -my $testsuite = TBBTestSuite::TestSuite::TorMessengerBuild->new({ - publish_dir => "$FindBin::Bin/tor-messenger-builds/$date", - publish_url => "http://paganini.erinn.org/~boklm/builds/tor-messenger/$date", - }); - -my %res = ( - name => $name, - args => [ $testsuite ], - tags => [ 'nightly' ], -); -%res; ===================================== doc/usage.txt ===================================== @@ -112,10 +112,6 @@ Available options using a sha256sums-unsigned-build.txt file. By default, it is the architecture you are currently running. ---virustotal:: - Enable upload of files for analysis on virustotal.com instead - of the regular testsuite. - --email-from:: Set the From header that will be used when sending reports by email. ===================================== tmpl/details_cherry_pick.html deleted ===================================== @@ -1,10 +0,0 @@ -[% IF test.results.success %] - [% IF test.results.patch_file %] - <a href="results-[% tbbfile %]/[% test.name %].patch">rebased patch</a> - [% ELSE %] - Skipped - [% END %] -[% ELSE %] -Failed diff: -<pre>[% FILTER html_entity %][% test.results.failed_diff %][% END %]</pre> -[% END %] ===================================== tmpl/details_virustotal.html deleted ===================================== @@ -1,16 +0,0 @@ -<ul> - [% FOREACH file IN test.results.files.keys %] - <li>virustotal report: - <span [% IF test.results.files.$file.positives %]class="text_red"[% END %]> - <a href="[% test.results.files.$file.permalink %]">[% file %]</a> - </span> - <ul> - [% FOREACH av IN test.results.files.$file.scans.keys %] - [% IF test.results.files.$file.scans.$av.result %] - <li>[% av %]: [% test.results.files.$file.scans.$av.result %]</li> - [% END %] - [% END %] - </ul> - </li> - [% END %] -</ul> ===================================== tmpl/report_browserbundle_virustotal.txt deleted ===================================== @@ -1,49 +0,0 @@ -Bundle infos - Filename: [% tbbfiles.$tbbfile.filename %] - sha256sum: [% tbbfiles.$tbbfile.sha256sum %] - -Results - -[% IF tbbfiles.$tbbfile.pre_tests_error -%] - pre_tests error: -[% FILTER indent(' ') -%] -[% tbbfiles.$tbbfile.pre_tests_error %] -[% END %] -[% END -%] -[% -FOREACH test IN tbbfiles.$tbbfile.tests; -NEXT IF test.type != 'virustotal'; -positives = []; -negatives = []; -FOREACH file IN test.results.files.keys.sort; - IF test.results.files.$file.positives; - positives.push(file); - ELSE; - negatives.push(file); - END; -END; - -IF positives.size == 0 -%] - No positives -[% ELSE -%] - Positives: -[% FOREACH file IN positives -%] - - [% file %] -[% FOREACH av IN test.results.files.$file.scans.keys.sort -%] -[% IF test.results.files.$file.scans.$av.result -%] - [% av %]: [% test.results.files.$file.scans.$av.result %] -[% END -%] -[% END -%] - [% test.results.files.$file.permalink %] -[% END -%] - -[% END; -IF negatives.size == 0 -%] - No negatives -[% ELSE -%] - Negatives: -[% FOREACH file IN negatives -%] - - [% file %] -[% END -%] -[% END -%] -[% END -%] ===================================== tmpl/reports_index_browserbundle_virustotal.html deleted ===================================== @@ -1,89 +0,0 @@ -[% USE date -%] -<html> - <head> - <title>Tests reports</title> - <style type="text/css"> - .test_ok { - color: #006600; - font-weight: bold; - } - .test_ok A { - color: #006600; - font-weight: bold; - } - .test_notok { - color: #FF0000; - font-weight: bold; - } - .test_notok A { - color: #FF0000; - } - .reportdate { - font-size: small; - } - </style> - </head> - <body> - <h1>[% title %]</h1> - <table> - <tr> - <th>Name</th> - <th>Date</th> - <th>Version</th> - <th>Result</th> - </tr> - [% FOREACH report IN reports_list %] - <tr> - <td valign="top"><a href="r/[% report %]/index.html">[% report %]</a></td> - <td valign="top">[% date.format(reports.$report.time, '%Y-%m-%d %H:%M') %]</td> - <td valign="top">[% IF reports.$report.options.tags %] - <a href="index-browserbundle-[% reports.$report.options.tags.0 %].html">[% reports.$report.options.tags.0 %]</a> - [% END %] - </td> - <td valign="top"> - [% failed = 0 %] - [% FOREACH tbbfile IN reports.$report.tbbfiles.keys %] - [% IF ! reports.$report.tbbfiles.$tbbfile.success %] - [% failed = 1 %] - [% END %] - [% END %] - - [% IF failed == 0 %] - <span class="test_ok"><a href="r/[% report %]/index.html">OK</a></span> - [% ELSE %] - <span class="test_notok">Failed:</span> - <ul> - [% FOREACH tbbfile IN reports.$report.tbbfiles.keys %] - [% IF ! reports.$report.tbbfiles.$tbbfile.success %] - <li><a href="r/[% report %]/[% tbbfile %].html">[% tbbfile %]</a> - <ul> - [% - FOREACH test IN reports.$report.tbbfiles.$tbbfile.tests; - NEXT IF test.type != 'virustotal'; - FOREACH file IN test.results.files.keys; - NEXT UNLESS test.results.files.$file.positives; - %]<li><a href="[% test.results.files.$file.permalink %]">[% file %]</a> - <ul> - [% FOREACH av IN test.results.files.$file.scans.keys; - IF test.results.files.$file.scans.$av.result %] - <li>[% av %]: [% test.results.files.$file.scans.$av.result %]</li> - [% END; - END -%] - </ul> - </li>[% - END; - END; - %] - </ul> - </li> - [% failed = 1 %] - [% END %] - [% END %] - </ul> - [% END %] - </td> - </tr> - [% END %] - </table> - </body> -</html> ===================================== tmpl/reports_index_browserrebase.html deleted ===================================== @@ -1,40 +0,0 @@ -[% USE date -%] -<html> - <head> - <title>Tests reports</title> - <style type="text/css"> - .test_ok { - color: #006600; - font-weight: bold; - } - .test_ok A { - color: #006600; - font-weight: bold; - } - .test_notok { - color: #FF0000; - font-weight: bold; - } - .test_notok A { - color: #FF0000; - } - .reportdate { - font-size: small; - } - </style> - [% INCLUDE togglecontent.js %] - </head> - <body> - <h1>Tor Browser Rebase Test Reports: [% title %]</h1> - [% FOREACH report IN reports_list %] - [% - SET tbbfiles = reports.$report.tbbfiles; - SET tbbfile = reports.$report.tbbfiles.keys.0; - %] - <ul> - <li><a href="r/[% report %]/[% tbbfile %].html">Details</a></li> - </ul> - <hr /> - [% END %] - </body> -</html> ===================================== tools/paganini-builds deleted ===================================== @@ -1,6 +0,0 @@ -#!/bin/sh -cd $(dirname $0)/.. -./tools/pull -export RBM_BUILDNAME=nightly -./tbb-testsuite --config=tor-mail_build "$@" -./tbb-testsuite --config=tor-messenger_build "$@" ===================================== tools/run-tests-virustotal deleted ===================================== @@ -1,5 +0,0 @@ -#!/bin/sh -cd $(dirname $0)/.. -./tools/pull -./tbb-testsuite --config=release-virustotal "$@" -./tbb-testsuite --config=linus-nightly-virustotal "$@" View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-bundle-testsuite/... -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-bundle-testsuite/... You're receiving this email because of your account on gitlab.torproject.org.