X-Git-Url: http://git.hcoop.net/bpt/coccinelle.git/blobdiff_plain/190f1acf3b0fa9403bea541654465a6a00bf3693..17ba07880e1838028b4516ba7a2db2147b3aa1c9:/testing.ml diff --git a/testing.ml b/testing.ml index 3b42651..2192c2a 100644 --- a/testing.ml +++ b/testing.ml @@ -1,5 +1,7 @@ (* - * Copyright 2010, INRIA, University of Copenhagen + * Copyright 2012, INRIA + * Julia Lawall, Gilles Muller + * Copyright 2010-2011, INRIA, University of Copenhagen * Julia Lawall, Rene Rydhof Hansen, Gilles Muller, Nicolas Palix * Copyright 2005-2009, Ecole des Mines de Nantes, University of Copenhagen * Yoann Padioleau, Julia Lawall, Rene Rydhof Hansen, Henrik Stuart, Gilles Muller, Nicolas Palix @@ -382,11 +384,11 @@ let test_regression_okfailed () = let newscore = Common.empty_score () in let oks = - Common.cmd_to_list ("find -name \"*.ok\"") + Common.cmd_to_list ("find . -name \"*.ok\"") ++ - Common.cmd_to_list ("find -name \"*.spatch_ok\"") + Common.cmd_to_list ("find . -name \"*.spatch_ok\"") in - let failed = Common.cmd_to_list ("find -name \"*.failed\"") in + let failed = Common.cmd_to_list ("find . -name \"*.failed\"") in if null (oks ++ failed) then failwith "no ok/failed file, you certainly did a make clean" @@ -454,7 +456,6 @@ let compare_with_expected outfiles = (*****************************************************************************) let test_parse_cocci file = - Flag_parsing_cocci.show_SP := true; if not (file =~ ".*\\.cocci") then pr2 "warning: seems not a .cocci file";