rust-raspberrypi-OS-tutorials/utils/make_panic_test.rb
2018-12-31 01:18:54 +01:00

20 lines
315 B
Ruby

#!/usr/bin/env ruby
def make_panic_test
crates = Dir["**/Cargo.toml"].sort!
crates.each do |x|
next if x.include?('raspi3_boot')
x = File.dirname(x)
puts "\n" + x.to_s + ':'
Dir.chdir(x) do
system('make nm | grep panic_fmt')
end
end
end
if __FILE__ == $0
make_panic_test()
end