test/test_coderunner.rb in coderunner-0.13.9 vs test/test_coderunner.rb in coderunner-0.13.10

- old
+ new

@@ -19,11 +19,11 @@ #Dir.chdir('test') do #raise "Couldn't build test program using #{string}" unless system string #end -if true +if false class TestSubmission < Test::Unit::TestCase def setup string = $cpp_command + ' ../cubecalc.cc -o cubecalc' Dir.chdir('test'){CodeRunner.generate_cubecalc} FileUtils.makedirs('test/submission_results') @@ -361,18 +361,19 @@ #end #end #end # # -ENV['CR_NON_INTERACTIVE'] = 'true' +#ENV['CR_NON_INTERACTIVE'] = 'true' class TestFortranNamelistC < Test::Unit::TestCase def setup end def test_synchronise_variables #FileUtils.rm('lib/cubecalccrmod/namelists.rb') CodeRunner.setup_run_class('cubecalc', modlet: 'with_namelist') assert_equal(File.read('test/cubecalc_namelist.cc').size+1, CodeRunner::Cubecalc::WithNamelist.get_aggregated_source_code_text('test').size) CodeRunner::Cubecalc::WithNamelist.synchronise_variables('test') + CodeRunner::Cubecalc::WithNamelist.synchronise_variables_from_input_file('test/cubecalc.in') CodeRunner::Cubecalc::WithNamelist.update_defaults_from_source_code('test') end def test_mediawiki_write CodeRunner.setup_run_class('cubecalc', modlet: 'with_namelist') CodeRunner::Cubecalc::WithNamelist.write_mediawiki_documentation