Skip to content

Commit

Permalink
Split out integration test plumbing (apache#2594) (apache#2300)
Browse files Browse the repository at this point in the history
  • Loading branch information
tustvold committed Aug 27, 2022
1 parent ff81dee commit 426065a
Show file tree
Hide file tree
Showing 14 changed files with 692 additions and 760 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/arrow.yml
Expand Up @@ -64,6 +64,8 @@ jobs:
cargo run --example dynamic_types
cargo run --example read_csv
cargo run --example read_csv_infer_schema
- name: Run non-archery based integration-tests
run: cargo test -p arrow-integration-testing

# test compilaton features
linux-features:
Expand Down
44 changes: 44 additions & 0 deletions arrow-integration/Cargo.toml
@@ -0,0 +1,44 @@
# 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.

[package]
name = "arrow-integration"
description = ""
version = "21.0.0"
homepage = "https://github.com/apache/arrow-rs"
repository = "https://github.com/apache/arrow-rs"
authors = ["Apache Arrow <dev@arrow.apache.org>"]
license = "Apache-2.0"
keywords = ["arrow"]
edition = "2021"
rust-version = "1.62"

[dependencies]
arrow = { path = "../arrow", default-features = false, features = ["test_utils", "ipc", "ipc_compression"] }
serde = { version = "1.0", default-features = false, features = ["derive"] }
serde_json = { version = "1.0", default-features = false, features = ["std"] }
num = { version = "0.4", default-features = false, features = ["std"] }
hex = { version = "0.4", default-features = false, features = ["std"] }
flate2 = { version = "1", default-features = false, features = ["rust_backend"] }

[dev-dependencies]
rand = { version = "0.8", default-features = false, features = ["std", "std_rng"] }
tempfile = { version = "3", default-features = false }
chrono = { version = "0.4", default-features = false }

[build-dependencies]

3 changes: 3 additions & 0 deletions arrow-integration/README.md
@@ -0,0 +1,3 @@
# Arrow Integration Testing

Rust integration tests, see [integration-testing](../integration-testing) for archery integration
7 changes: 3 additions & 4 deletions arrow/Cargo.toml
Expand Up @@ -38,10 +38,10 @@ path = "src/lib.rs"
bench = false

[target.'cfg(target_arch = "wasm32")'.dependencies]
ahash = { version = "0.8", default-features = false, features=["compile-time-rng"] }
ahash = { version = "0.8", default-features = false, features = ["compile-time-rng"] }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
ahash = { version = "0.8", default-features = false, features=["runtime-rng"] }
ahash = { version = "0.8", default-features = false, features = ["runtime-rng"] }

[dependencies]
serde = { version = "1.0", default-features = false }
Expand All @@ -61,7 +61,6 @@ packed_simd = { version = "0.3", default-features = false, optional = true, pack
chrono = { version = "0.4", default-features = false, features = ["clock"] }
chrono-tz = { version = "0.6", default-features = false, optional = true }
flatbuffers = { version = "2.1.2", default-features = false, features = ["thiserror"], optional = true }
hex = { version = "0.4", default-features = false, features = ["std"] }
comfy-table = { version = "6.0", optional = true, default-features = false }
pyo3 = { version = "0.17", default-features = false, optional = true }
lexical-core = { version = "^0.8", default-features = false, features = ["write-integers", "write-floats", "parse-integers", "parse-floats"] }
Expand Down Expand Up @@ -102,7 +101,7 @@ tempfile = { version = "3", default-features = false }
[[example]]
name = "dynamic_types"
required-features = ["prettyprint"]
path="./examples/dynamic_types.rs"
path = "./examples/dynamic_types.rs"

[[bench]]
name = "aggregate_kernels"
Expand Down

0 comments on commit 426065a

Please sign in to comment.