$87 GRAYBYTE WORDPRESS FILE MANAGER $44

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.162.162 | ADMIN IP 216.73.217.79
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cpanel/ea-ruby27/src/passenger-release-6.1.2/dev/

HOME
Current File : /opt/cpanel/ea-ruby27/src/passenger-release-6.1.2/dev//list_tests
#!/usr/bin/env ruby
#
# Usage: ./dev/list_tests.rb <FILENAME>
#
# Lists the test names in the given .cpp test file.

require_relative '../src/ruby_supportlib/phusion_passenger/utils/ansi_colors'

include PhusionPassenger::Utils::AnsiColors

def extract_category_name(occurrence)
  occurrence =~ / (.+) /
  return $1
end

def extract_test_name(occurrence)
  occurrence = occurrence.sub(/.*?\((.+)\).*/m, '\1')
  occurrence.gsub!(/"\n[ \t]*"/m, '')
  occurrence.sub!(/\A"/, '')
  occurrence.sub!(/"\Z/, '')
  return occurrence
end

def start(filename)
  STDOUT.write(DEFAULT_TERMINAL_COLOR)
  begin
    occurrences = File.read(filename).scan(%r{/\*\*\*\*\* .+? \*\*\*\*\*/|set_test_name\(.+?\);}m)
    occurrences.each do |occurrence|
      if occurrence =~ %r{\A/}
        puts ansi_colorize("<b>" + extract_category_name(occurrence) + "</b>")
      else
        puts "  " + extract_test_name(occurrence)
      end
    end
  ensure
    STDOUT.write(RESET)
  end
end

start(ARGV[0])


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
13 Feb 2026 9.30 AM
root / root
0755
boost-patches
--
13 Feb 2026 9.30 AM
root / root
0755
ci
--
13 Feb 2026 9.30 AM
root / root
0755
configkit-schemas
--
13 Feb 2026 9.30 AM
root / root
0755
rack.test
--
13 Feb 2026 9.30 AM
root / root
0755
vagrant
--
13 Feb 2026 9.30 AM
root / root
0755
colorize-logs
7.288 KB
27 Jan 2026 11.50 PM
root / root
0755
copy_boost_headers
9.555 KB
27 Jan 2026 11.50 PM
root / root
0755
index_cxx_dependencies.rb
3.936 KB
27 Jan 2026 11.50 PM
root / root
0755
install_scripts_bootstrap_code.rb
1.308 KB
27 Jan 2026 11.50 PM
root / root
0755
list_tests
0.958 KB
27 Jan 2026 11.50 PM
root / root
0755
nginx_version_sha256
2.499 KB
27 Jan 2026 11.50 PM
root / root
0755
parse_file_descriptor_log
2.545 KB
27 Jan 2026 11.50 PM
root / root
0755
ruby_server.rb
6.174 KB
27 Jan 2026 11.50 PM
root / root
0755
runner
0.608 KB
27 Jan 2026 11.50 PM
root / root
0755
show-latest-crashlog-dir
0.766 KB
27 Jan 2026 11.50 PM
root / root
0755

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF