src/HOL/Library/code_test.ML
changeset 66783 bbe87f1b5e5d
parent 66284 378895354604
child 67101 60126738b2d0
equal deleted inserted replaced
66780:bf54ca580bf2 66783:bbe87f1b5e5d
   423       "    0\n" ^
   423       "    0\n" ^
   424       "  end;\n" ^
   424       "  end;\n" ^
   425       "end;"
   425       "end;"
   426     val ml_source =
   426     val ml_source =
   427       "Control.MC.matchRedundantError := false; Control.MC.matchRedundantWarn := false;" ^
   427       "Control.MC.matchRedundantError := false; Control.MC.matchRedundantWarn := false;" ^
   428       "use " ^ ML_Syntax.print_string (Path.implode (Path.expand code_path)) ^
   428       "use " ^ ML_Syntax.print_string (Bash.string (File.platform_path code_path)) ^
   429       "; use " ^ ML_Syntax.print_string (Path.implode (Path.expand driver_path)) ^
   429       "; use " ^ ML_Syntax.print_string (Bash.string (File.platform_path driver_path)) ^
   430       "; Test.main ();"
   430       "; Test.main ();"
   431     val cmd = "echo " ^ Bash.string ml_source ^ " | \"$ISABELLE_SMLNJ\""
   431     val cmd = "echo " ^ Bash.string ml_source ^ " | \"$ISABELLE_SMLNJ\""
   432   in
   432   in
   433     {files = [(driver_path, driver)], compile_cmd = NONE, run_cmd = cmd, mk_code_file = K code_path}
   433     {files = [(driver_path, driver)], compile_cmd = NONE, run_cmd = cmd, mk_code_file = K code_path}
   434   end
   434   end