summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-03-09 19:06:02 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-03-09 19:06:02 +0900
commitc740a78e5c1eddc8563ec8f6a82e948f93b56493 (patch)
treed419ffb8e409fc3bd4babcfe6f8e10be8abdc01f
parent5f787b0cdf761ddc3511b98ea2e5c7c1bd882694 (diff)
parent5cf46db561dcf07138347db7ce4e4432f9619675 (diff)
downloadmruby-c740a78e5c1eddc8563ec8f6a82e948f93b56493.tar.gz
mruby-c740a78e5c1eddc8563ec8f6a82e948f93b56493.zip
Merge pull request #1837 from monaka/pr-add-comments
Add comments to notify files are auto generated.
-rw-r--r--tasks/mrbgems_test.rake7
-rw-r--r--test/mrbtest.rake9
2 files changed, 16 insertions, 0 deletions
diff --git a/tasks/mrbgems_test.rake b/tasks/mrbgems_test.rake
index 33f1fdb48..bad2d1a12 100644
--- a/tasks/mrbgems_test.rake
+++ b/tasks/mrbgems_test.rake
@@ -10,6 +10,13 @@ MRuby.each_target do
File.expand_path(g.test_preload, dir)
}.find {|file| File.exist?(file) }
+ f.puts %Q[/*]
+ f.puts %Q[ * This file contains a test code for #{g.name} gem.]
+ f.puts %Q[ *]
+ f.puts %Q[ * IMPORTANT:]
+ f.puts %Q[ * This file was generated!]
+ f.puts %Q[ * All manual changes will get lost.]
+ f.puts %Q[ */]
if test_preload.nil?
f.puts %Q[extern const uint8_t mrbtest_assert_irep[];]
else
diff --git a/test/mrbtest.rake b/test/mrbtest.rake
index 35495889e..a49a25fd8 100644
--- a/test/mrbtest.rake
+++ b/test/mrbtest.rake
@@ -41,6 +41,15 @@ MRuby.each_target do
_pp "GEN", "*.rb", "#{clib.relative_path}"
FileUtils.mkdir_p File.dirname(clib)
open(clib, 'w') do |f|
+ f.puts %Q[/*]
+ f.puts %Q[ * This file contains a list of all]
+ f.puts %Q[ * test functions.]
+ f.puts %Q[ *]
+ f.puts %Q[ * IMPORTANT:]
+ f.puts %Q[ * This file was generated!]
+ f.puts %Q[ * All manual changes will get lost.]
+ f.puts %Q[ */]
+ f.puts %Q[]
f.puts IO.read(init)
mrbc.run f, mrbs, 'mrbtest_irep'
gems.each do |g|