File tree Expand file tree Collapse file tree 6 files changed +19
-10
lines changed Expand file tree Collapse file tree 6 files changed +19
-10
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ RUN cargo search --limit 0
7
7
RUN cd /project && cargo install --path uniffi-bindgen
8
8
RUN cargo install uniffi-bindgen-cs --tag v0.7.0+v0.25.0 --git https://github.com/NordSecurity/uniffi-bindgen-cs
9
9
RUN cargo install uniffi-bindgen-go --tag v0.2.0+v0.25.0 --git https://github.com/NordSecurity/uniffi-bindgen-go
10
- RUN cargo install uniffi-bindgen-cpp --tag v0.1.0 +v0.25.0 --git https://github.com/NordSecurity/uniffi-bindgen-cpp
10
+ RUN cargo install uniffi-bindgen-cpp --tag v0.2.2 +v0.25.0 --git https://github.com/NordSecurity/uniffi-bindgen-cpp
11
11
12
12
FROM rust:1.72-bullseye
13
13
COPY --from=builder /usr/local/cargo/bin/uniffi-bindgen /bin
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ shows which versions of each generator are inside the docker image.
39
39
40
40
| Docker image | uniffi-rs version | uniffi-bindgen-cs version | uniffi-bindgen-go version | uniffi-bindgen-cpp version |
41
41
| ------------------------| -----------------------| ---------------------------| ---------------------------| ----------------------------|
42
+ | v0.25.0-2 | v0.3.0+0.25.0 | v0.7.0+v0.25.0 | v0.2.0+v0.25.0 | ** v0.2.2+v0.25.0** |
42
43
| v0.25.0-1 | ** v0.3.0+0.25.0** | ** v0.7.0+v0.25.0** | ** v0.2.0+v0.25.0** | ** v0.1.0+v0.25.0** |
43
44
| v0.23.0-6 | v0.23.0-3 | v0.4.0+v0.23.0 | v0.1.5+v0.23.0 | not present |
44
45
| v0.23.0-5 | v0.23.0-3 | ** v0.4.0+v0.23.0** | ** v0.1.5+v0.23.0** | not present |
Original file line number Diff line number Diff line change @@ -10,5 +10,5 @@ source "$SCRIPT_DIR/env.sh"
10
10
docker run --rm \
11
11
--volume $ROOT_DIR :/workspace \
12
12
--workdir /workspace/compatibility-test \
13
- ghcr.io/nordsecurity/uniffi- generators:v0.25.0-1 \
13
+ generators:test \
14
14
/bin/bash /workspace/compatibility-test/setup_bindings_inner.sh
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -euo pipefail
3
- set +x
4
3
5
4
SCRIPT_DIR=" ${SCRIPT_DIR:- $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " >/ dev/ null 2>&1 && pwd )} "
6
5
source " $SCRIPT_DIR /env.sh"
7
6
7
+ # Disable logging commands to make the file download logs easy to read
8
+ set +x
9
+
8
10
# XD use docker to rm tmp directory as root. The tests run in Docker container, and create files
9
11
# in tmp directory as root.
10
12
docker run --rm \
@@ -44,8 +46,7 @@ download_file "$GITHUB_URL/binding_tests/coverall_test.go" "$TMP_DIR/go"
44
46
download_file " $GITHUB_URL /binding_tests/go.mod" " $TMP_DIR /go"
45
47
download_file " $GITHUB_URL /binding_tests/go.sum" " $TMP_DIR /go"
46
48
47
- # TODO use tagged version
48
- GITHUB_VERSION=" f47dc471643f9d079f2cab03df68adf6b6d3d0b3"
49
+ GITHUB_VERSION=" v0.2.2+v0.25.0"
49
50
GITHUB_URL=" https://raw.githubusercontent.com/NordSecurity/uniffi-bindgen-cpp/$GITHUB_VERSION "
50
51
download_file " $GITHUB_URL /cpp-tests/tests/coverall/main.cpp" " $TMP_DIR /cpp/coverall"
51
52
download_file " $GITHUB_URL /cpp-tests/tests/include/test_common.hpp" " $TMP_DIR /cpp/include"
Original file line number Diff line number Diff line change @@ -13,5 +13,13 @@ function cpp_docker() {
13
13
$*
14
14
}
15
15
16
- cpp_docker g++ -std=c++20 coverall/main.cpp -I. -Iinclude -o test_coverall
16
+ COMPILE_CMD=(
17
+ g++ -o test_coverall
18
+ -std=c++20
19
+ -I. -Iinclude
20
+ -L /workspace/target/debug -lcompatibility_test -lpthread
21
+ coverall/main.cpp coverall.cpp
22
+ )
23
+
24
+ cpp_docker ${COMPILE_CMD[@]}
17
25
cpp_docker ./test_coverall
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -euo pipefail
3
3
4
+ SCRIPT_DIR=" ${SCRIPT_DIR:- $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " >/ dev/ null 2>&1 && pwd )} "
4
5
5
6
# Run compatibility tests for all generators
6
7
# You can either run this script with -bd flags
57
58
function build_docker() {
58
59
docker run --rm \
59
60
-v $HOME /.cargo/registry:/usr/local/cargo/registry \
60
- -v $ROOT_DIR :/workspace \
61
+ -v $SCRIPT_DIR :/workspace \
61
62
-w /workspace \
62
63
rust:1.72-bullseye \
63
64
$*
@@ -98,9 +99,7 @@ if [[ -z "$GENERATOR" || "$GENERATOR" = "go" ]]; then
98
99
fi
99
100
100
101
if [[ -z " $GENERATOR " || " $GENERATOR " = " cpp" ]]; then
101
- :
102
- # TODO currently does not work without creating a new release
103
- # ./compatibility-test/test_cpp.sh
102
+ ./compatibility-test/test_cpp.sh
104
103
fi
105
104
106
105
echo Compatibility tests passed!
You can’t perform that action at this time.
0 commit comments