add scripts needed for 'rake test'
This commit is contained in:
parent
2c61efb00d
commit
5059444af1
5
t/bin/cat.rb
Executable file
5
t/bin/cat.rb
Executable file
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/ruby
|
||||
|
||||
for file in ARGV
|
||||
puts File.read(file)
|
||||
end
|
3
t/bin/echo.rb
Executable file
3
t/bin/echo.rb
Executable file
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/ruby
|
||||
|
||||
puts ARGV.join(" ")
|
3
t/bin/exit.rb
Executable file
3
t/bin/exit.rb
Executable file
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/ruby
|
||||
|
||||
exit ARGV[0].to_i
|
3
t/bin/false.rb
Executable file
3
t/bin/false.rb
Executable file
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/ruby
|
||||
|
||||
exit 1
|
6
t/bin/lines.rb
Executable file
6
t/bin/lines.rb
Executable file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/ruby
|
||||
|
||||
for line in ARGV
|
||||
puts line
|
||||
end
|
||||
|
6
t/bin/rm.rb
Executable file
6
t/bin/rm.rb
Executable file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/ruby
|
||||
|
||||
for file in ARGV
|
||||
File.unlink file
|
||||
end
|
||||
|
4
t/bin/sleep.rb
Executable file
4
t/bin/sleep.rb
Executable file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/ruby
|
||||
|
||||
sleep ARGV[0].to_i
|
||||
|
8
t/bin/touch.rb
Executable file
8
t/bin/touch.rb
Executable file
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/ruby
|
||||
|
||||
require "fileutils"
|
||||
|
||||
for file in ARGV
|
||||
FileUtils.touch(file)
|
||||
end
|
||||
|
3
t/bin/true.rb
Executable file
3
t/bin/true.rb
Executable file
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/ruby
|
||||
|
||||
exit 0
|
Loading…
x
Reference in New Issue
Block a user