You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by al...@apache.org on 2023/06/16 10:52:15 UTC

[arrow-datafusion] branch main updated: Minor: combine fuzz tests into a single binary to save builder space and build time (#6684)

This is an automated email from the ASF dual-hosted git repository.

alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new 0d82620bb4 Minor: combine fuzz tests into a single binary to save builder space and build time (#6684)
0d82620bb4 is described below

commit 0d82620bb45db35ce30ec170cb68e953fbc94366
Author: Andrew Lamb <an...@nerdnetworks.org>
AuthorDate: Fri Jun 16 06:52:09 2023 -0400

    Minor: combine fuzz tests into a single binary to save builder space and build time (#6684)
---
 datafusion/core/tests/fuzz.rs                      | 26 ++++++++++++++++++++++
 .../core/tests/{ => fuzz_cases}/aggregate_fuzz.rs  |  0
 .../core/tests/{ => fuzz_cases}/join_fuzz.rs       |  0
 .../core/tests/{ => fuzz_cases}/merge_fuzz.rs      |  0
 datafusion/core/tests/fuzz_cases/mod.rs            | 22 ++++++++++++++++++
 .../tests/{ => fuzz_cases}/order_spill_fuzz.rs     |  0
 .../core/tests/{ => fuzz_cases}/window_fuzz.rs     |  0
 7 files changed, 48 insertions(+)

diff --git a/datafusion/core/tests/fuzz.rs b/datafusion/core/tests/fuzz.rs
new file mode 100644
index 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.rs
similarity index 100%
rename from datafusion/core/tests/aggregate_fuzz.rs
rename to datafusion/core/tests/fuzz_cases/aggregate_fuzz.rs
diff --git a/datafusion/core/tests/join_fuzz.rs b/datafusion/core/tests/fuzz_cases/join_fuzz.rs
similarity index 100%
rename from datafusion/core/tests/join_fuzz.rs
rename to datafusion/core/tests/fuzz_cases/join_fuzz.rs
diff --git a/datafusion/core/tests/merge_fuzz.rs b/datafusion/core/tests/fuzz_cases/merge_fuzz.rs
similarity index 100%
rename from datafusion/core/tests/merge_fuzz.rs
rename to datafusion/core/tests/fuzz_cases/merge_fuzz.rs
diff --git a/datafusion/core/tests/fuzz_cases/mod.rs b/datafusion/core/tests/fuzz_cases/mod.rs
new file mode 100644
index 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.rs
similarity index 100%
rename from datafusion/core/tests/order_spill_fuzz.rs
rename to datafusion/core/tests/fuzz_cases/order_spill_fuzz.rs
diff --git a/datafusion/core/tests/window_fuzz.rs b/datafusion/core/tests/fuzz_cases/window_fuzz.rs
similarity index 100%
rename from datafusion/core/tests/window_fuzz.rs
rename to datafusion/core/tests/fuzz_cases/window_fuzz.rs