Skip to content

Commit 426065a

Browse files
committed
Split out integration test plumbing (apache#2594) (apache#2300)
1 parent ff81dee commit 426065a

File tree

14 files changed

+692
-760
lines changed

14 files changed

+692
-760
lines changed

.github/workflows/arrow.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ jobs:
6464
cargo run --example dynamic_types
6565
cargo run --example read_csv
6666
cargo run --example read_csv_infer_schema
67+
- name: Run non-archery based integration-tests
68+
run: cargo test -p arrow-integration-testing
6769

6870
# test compilaton features
6971
linux-features:

arrow-integration/Cargo.toml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
[package]
19+
name = "arrow-integration"
20+
description = ""
21+
version = "21.0.0"
22+
homepage = "https://github.com/apache/arrow-rs"
23+
repository = "https://github.com/apache/arrow-rs"
24+
authors = ["Apache Arrow <[email protected]>"]
25+
license = "Apache-2.0"
26+
keywords = ["arrow"]
27+
edition = "2021"
28+
rust-version = "1.62"
29+
30+
[dependencies]
31+
arrow = { path = "../arrow", default-features = false, features = ["test_utils", "ipc", "ipc_compression"] }
32+
serde = { version = "1.0", default-features = false, features = ["derive"] }
33+
serde_json = { version = "1.0", default-features = false, features = ["std"] }
34+
num = { version = "0.4", default-features = false, features = ["std"] }
35+
hex = { version = "0.4", default-features = false, features = ["std"] }
36+
flate2 = { version = "1", default-features = false, features = ["rust_backend"] }
37+
38+
[dev-dependencies]
39+
rand = { version = "0.8", default-features = false, features = ["std", "std_rng"] }
40+
tempfile = { version = "3", default-features = false }
41+
chrono = { version = "0.4", default-features = false }
42+
43+
[build-dependencies]
44+

arrow-integration/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Arrow Integration Testing
2+
3+
Rust integration tests, see [integration-testing](../integration-testing) for archery integration

arrow/Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ path = "src/lib.rs"
3838
bench = false
3939

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

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

4646
[dependencies]
4747
serde = { version = "1.0", default-features = false }
@@ -61,7 +61,6 @@ packed_simd = { version = "0.3", default-features = false, optional = true, pack
6161
chrono = { version = "0.4", default-features = false, features = ["clock"] }
6262
chrono-tz = { version = "0.6", default-features = false, optional = true }
6363
flatbuffers = { version = "2.1.2", default-features = false, features = ["thiserror"], optional = true }
64-
hex = { version = "0.4", default-features = false, features = ["std"] }
6564
comfy-table = { version = "6.0", optional = true, default-features = false }
6665
pyo3 = { version = "0.17", default-features = false, optional = true }
6766
lexical-core = { version = "^0.8", default-features = false, features = ["write-integers", "write-floats", "parse-integers", "parse-floats"] }
@@ -102,7 +101,7 @@ tempfile = { version = "3", default-features = false }
102101
[[example]]
103102
name = "dynamic_types"
104103
required-features = ["prettyprint"]
105-
path="./examples/dynamic_types.rs"
104+
path = "./examples/dynamic_types.rs"
106105

107106
[[bench]]
108107
name = "aggregate_kernels"

0 commit comments

Comments
 (0)