Apache DataFusion SQL Query Engine
Minor: combine fuzz tests into a single binary to save builder space and build time (#6684)
Andrew Lamb0d82620bb45d
diff --git a/datafusion/core/tests/fuzz.rs b/datafusion/core/tests/fuzz.rsnew file mode 100644index 0000000000..92646e8b37--- /dev/null+++ b/datafusion/core/tests/fuzz.rs@@ -0,0 +1,26 @@+// Licensed to the Apache Software Foundation (ASF) under one+// or more contributor license agreements. See the NOTICE file+// distributed with this work for additional information+// regarding copyright ownership. The ASF licenses this file+// to you under the Apache License, Version 2.0 (the+// "License"); you may not use this file except in compliance+// with the License. You may obtain a copy of the License at+//+// http://www.apache.org/licenses/LICENSE-2.0+//+// Unless required by applicable law or agreed to in writing,+// software distributed under the License is distributed on an+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+// KIND, either express or implied. See the License for the+// specific language governing permissions and limitations+// under the License.++/// Run all tests that are found in the `fuzz_cases` directory+mod fuzz_cases;++#[cfg(test)]+#[ctor::ctor]+fn init() {+ // Enable RUST_LOG logging configuration for test+ let _ = env_logger::try_init();+}diff --git a/datafusion/core/tests/aggregate_fuzz.rs b/datafusion/core/tests/fuzz_cases/aggregate_fuzz.rssimilarity index 100%rename from datafusion/core/tests/aggregate_fuzz.rsrename to datafusion/core/tests/fuzz_cases/aggregate_fuzz.rsdiff --git a/datafusion/core/tests/join_fuzz.rs b/datafusion/core/tests/fuzz_cases/join_fuzz.rssimilarity index 100%rename from datafusion/core/tests/join_fuzz.rsrename to datafusion/core/tests/fuzz_cases/join_fuzz.rsdiff --git a/datafusion/core/tests/merge_fuzz.rs b/datafusion/core/tests/fuzz_cases/merge_fuzz.rssimilarity index 100%rename from datafusion/core/tests/merge_fuzz.rsrename to datafusion/core/tests/fuzz_cases/merge_fuzz.rsdiff --git a/datafusion/core/tests/fuzz_cases/mod.rs b/datafusion/core/tests/fuzz_cases/mod.rsnew file mode 100644index 0000000000..bf415c7f1c--- /dev/null+++ b/datafusion/core/tests/fuzz_cases/mod.rs@@ -0,0 +1,22 @@+// Licensed to the Apache Software Foundation (ASF) under one+// or more contributor license agreements. See the NOTICE file+// distributed with this work for additional information+// regarding copyright ownership. The ASF licenses this file+// to you under the Apache License, Version 2.0 (the+// "License"); you may not use this file except in compliance+// with the License. You may obtain a copy of the License at+//+// http://www.apache.org/licenses/LICENSE-2.0+//+// Unless required by applicable law or agreed to in writing,+// software distributed under the License is distributed on an+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+// KIND, either express or implied. See the License for the+// specific language governing permissions and limitations+// under the License.++mod aggregate_fuzz;+mod join_fuzz;+mod merge_fuzz;+mod order_spill_fuzz;+mod window_fuzz;diff --git a/datafusion/core/tests/order_spill_fuzz.rs b/datafusion/core/tests/fuzz_cases/order_spill_fuzz.rssimilarity index 100%rename from datafusion/core/tests/order_spill_fuzz.rsrename to datafusion/core/tests/fuzz_cases/order_spill_fuzz.rsdiff --git a/datafusion/core/tests/window_fuzz.rs b/datafusion/core/tests/fuzz_cases/window_fuzz.rssimilarity index 100%rename from datafusion/core/tests/window_fuzz.rsrename to datafusion/core/tests/fuzz_cases/window_fuzz.rs