X7ROOT File Manager
Current Path:
/opt/cpanel/ea-ruby27/src/passenger-release-6.1.2/dev
opt
/
cpanel
/
ea-ruby27
/
src
/
passenger-release-6.1.2
/
dev
/
??
..
??
boost-patches
??
ci
??
colorize-logs
(7.29 KB)
??
configkit-schemas
??
copy_boost_headers
(9.55 KB)
??
index_cxx_dependencies.rb
(3.94 KB)
??
install_scripts_bootstrap_code.rb
(1.31 KB)
??
list_tests
(981 B)
??
nginx_version_sha256
(2.5 KB)
??
parse_file_descriptor_log
(2.54 KB)
??
rack.test
??
ruby_server.rb
(6.17 KB)
??
runner
(623 B)
??
show-latest-crashlog-dir
(784 B)
??
vagrant
Editing: 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])
Upload File
Create Folder