Skip to content

Commit 2a8e5df

Browse files
Merge pull request #470 from apache/check_cpp_files
Check cpp files
2 parents 727b1bc + 2b2a958 commit 2a8e5df

37 files changed

Lines changed: 1007 additions & 856 deletions
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Serialization Compatibility Test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
name: SerDe Test
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
- name: Checkout C++
17+
uses: actions/checkout@v3
18+
with:
19+
repository: apache/datasketches-cpp
20+
path: cpp
21+
- name: Configure C++ build
22+
run: cd cpp/build && cmake .. -DGENERATE=true
23+
- name: Build C++ unit tests
24+
run: cd cpp && cmake --build build --config Release
25+
- name: Run C++ tests
26+
run: cd cpp && cmake --build build --config Release --target test
27+
- name: Make dir
28+
run: mkdir -p target/cpp_generated_files
29+
- name: Copy files
30+
run: cp cpp/build/*/test/*_cpp.sk target/cpp_generated_files
31+
- name: Run Java tests
32+
run: mvn test -P check-cpp-files

src/test/java/org/apache/datasketches/common/TestUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public final class TestUtil {
4646
/**
4747
* The full target Path for C++ serialized sketches to be tested by Java.
4848
*/
49-
public static Path cppPath = createPath("src/test/resources");
49+
public static Path cppPath = createPath("target/cpp_generated_files");
5050

5151
/**
5252
* The full target Path for historical C++ serialized sketches to be tested by Java.

src/test/java/org/apache/datasketches/cpc/CpcCBinariesTest.java

Lines changed: 0 additions & 313 deletions
This file was deleted.

0 commit comments

Comments
 (0)