| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 # | 4 # |
| 5 # Fuzzing Infrastructure Tests | 5 # Fuzzing Infrastructure Tests |
| 6 | 6 |
| 7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
| 8 import("//testing/libfuzzer/fuzzer_test.gni") | 8 import("//testing/libfuzzer/fuzzer_test.gni") |
| 9 | 9 |
| 10 test("libfuzzer_tests") { | 10 test("libfuzzer_tests") { |
| 11 sources = [ | 11 sources = [ |
| 12 "fuzzer_launcher_test.cc", | 12 "fuzzer_launcher_test.cc", |
| 13 ] | 13 ] |
| 14 deps = [ | 14 deps = [ |
| 15 ":test_dict_and_params_launcher.sh", |
| 15 ":test_dict_launcher.sh", | 16 ":test_dict_launcher.sh", |
| 17 ":test_params_launcher.sh", |
| 16 "//base", | 18 "//base", |
| 17 "//testing/gmock", | 19 "//testing/gmock", |
| 18 "//testing/gtest", | 20 "//testing/gtest", |
| 19 "//testing/gtest:gtest_main", | 21 "//testing/gtest:gtest_main", |
| 20 ] | 22 ] |
| 21 data_deps = [ | 23 data_deps = [ |
| 22 ":print_args", | 24 ":print_args", |
| 23 ] | 25 ] |
| 24 } | 26 } |
| 25 | 27 |
| 26 fuzzer_test_launcher("test_dict_launcher.sh") { | 28 fuzzer_test_launcher("test_dict_launcher.sh") { |
| 27 fuzzer_name = "print_args.py" | 29 fuzzer_name = "print_args.py" |
| 28 dict = "test_dict" | 30 dict = "test_dict" |
| 29 } | 31 } |
| 30 | 32 |
| 33 fuzzer_test_launcher("test_params_launcher.sh") { |
| 34 fuzzer_name = "print_args.py" |
| 35 params = "-test_param=test_value" |
| 36 } |
| 37 |
| 38 fuzzer_test_launcher("test_dict_and_params_launcher.sh") { |
| 39 fuzzer_name = "print_args.py" |
| 40 dict = "test_dict" |
| 41 params = "-test_param=test_value" |
| 42 } |
| 43 |
| 31 copy("print_args") { | 44 copy("print_args") { |
| 32 sources = [ | 45 sources = [ |
| 33 "print_args.py", | 46 "print_args.py", |
| 34 ] | 47 ] |
| 35 outputs = [ | 48 outputs = [ |
| 36 "$root_build_dir/print_args.py", | 49 "$root_build_dir/print_args.py", |
| 37 ] | 50 ] |
| 38 } | 51 } |
| OLD | NEW |