Skip to content

Commit 9def329

Browse files
committed
pass file path as cli param
1 parent 805686c commit 9def329

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

run.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,17 @@
22

33
require 'coverage'
44

5+
if ARGV.length != 1
6+
puts 'USAGE: fuzz.rb <FILE TO FUZZ>'
7+
exit
8+
end
9+
file_path = ARGV[0].freeze
10+
11+
# TODO: ensure we don't load this file
12+
513
fork do
614
Coverage.start(:all)
7-
load('foo.rb')
15+
load(file_path)
816

917
fuzz(Random.new.bytes(10))
1018

0 commit comments

Comments
 (0)