update build_tests_spec to invoke rscons in a subprocess for each test

This commit is contained in:
josh committed 2017-05-20 15:15:07 -04:00
1 parent 2d8e08b493
commit 28e56251dd
45 files changed
+690 -614

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
class MySource < Rscons::Builder
def run(target, sources, cache, env, vars)
File.open(target, 'w') do |fh|
fh.puts <<EOF
#define THE_VALUE 5678
EOF
end
target
end
end
Rscons::Environment.new do |env|
env.add_builder(MySource.new)
env.MySource('inc.h', [])
env.Program('program.exe', Dir['*.c'])
end