Skip to content

Commit bbb78fe

Browse files
committed
Integration test is done with Zenoh-rust master branch
1 parent 57ff30b commit bbb78fe

File tree

2 files changed

+14
-24
lines changed

2 files changed

+14
-24
lines changed

.github/workflows/integration.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ jobs:
2727
steps:
2828
- uses: actions/checkout@v2
2929

30+
- name: Install latest nightly
31+
uses: actions-rs/toolchain@v1
32+
with:
33+
toolchain: nightly
34+
override: true
35+
components: rustfmt, clippy
36+
3037
- name: Compile release
3138
run: make all
3239
env:

tests/routed.sh

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,37 +14,20 @@
1414
#
1515

1616
TESTBIN=$1
17+
TESTDIR=$(dirname $0)
1718

18-
cd $(dirname $0)
19+
cd $TESTDIR
1920

2021
echo "------------------ Running test $TESTBIN -------------------"
2122

2223
sleep 5
2324

2425
if [ ! -f zenohd ]; then
25-
VERSION=$(curl --silent "https://api.github.com/repos/eclipse-zenoh/zenoh/releases" | grep '"name"' | head -n1 | cut -d'"' -f4 | cut -d"v" -f2)
26-
if [ -z "$VERSION" ]; then
27-
echo "Unable to retrieve zenoh version ..."
28-
exit -1
29-
fi
30-
31-
echo "> Target zenoh version $VERSION ..."
32-
LINK=""
33-
case "$OSTYPE" in
34-
"darwin"*)
35-
LINK="https://download.eclipse.org/zenoh/zenoh/master/eclipse-zenoh-$VERSION-macosx10.7-x86-64.tgz"
36-
;;
37-
"linux-gnu"*)
38-
LINK="https://download.eclipse.org/zenoh/zenoh/master/eclipse-zenoh-$VERSION-x86_64-unknown-linux-gnu.tgz"
39-
;;
40-
*)
41-
exit -1
42-
;;
43-
esac
44-
45-
echo "> Downloading $LINK ..."
46-
curl --location --progress-bar --output zenohd.tar.gz $LINK
47-
tar -xzf zenohd.tar.gz
26+
git clone https://github.com/eclipse-zenoh/zenoh.git zenoh-git
27+
cd zenoh-git
28+
cargo build
29+
cp ./target/debug/zenohd $TESTDIR/
30+
cd $TESTDIR
4831
fi
4932

5033
chmod +x zenohd

0 commit comments

Comments
 (0)