Skip to content

Commit

Permalink
Integration test is done with Zenoh-rust master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Mallets committed Jan 5, 2021
1 parent 57ff30b commit bbb78fe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 24 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy

- name: Compile release
run: make all
env:
Expand Down
31 changes: 7 additions & 24 deletions tests/routed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,37 +14,20 @@
#

TESTBIN=$1
TESTDIR=$(dirname $0)

cd $(dirname $0)
cd $TESTDIR

echo "------------------ Running test $TESTBIN -------------------"

sleep 5

if [ ! -f zenohd ]; then
VERSION=$(curl --silent "https://api.github.com/repos/eclipse-zenoh/zenoh/releases" | grep '"name"' | head -n1 | cut -d'"' -f4 | cut -d"v" -f2)
if [ -z "$VERSION" ]; then
echo "Unable to retrieve zenoh version ..."
exit -1
fi

echo "> Target zenoh version $VERSION ..."
LINK=""
case "$OSTYPE" in
"darwin"*)
LINK="https://download.eclipse.org/zenoh/zenoh/master/eclipse-zenoh-$VERSION-macosx10.7-x86-64.tgz"
;;
"linux-gnu"*)
LINK="https://download.eclipse.org/zenoh/zenoh/master/eclipse-zenoh-$VERSION-x86_64-unknown-linux-gnu.tgz"
;;
*)
exit -1
;;
esac

echo "> Downloading $LINK ..."
curl --location --progress-bar --output zenohd.tar.gz $LINK
tar -xzf zenohd.tar.gz
git clone https://github.com/eclipse-zenoh/zenoh.git zenoh-git
cd zenoh-git
cargo build
cp ./target/debug/zenohd $TESTDIR/
cd $TESTDIR
fi

chmod +x zenohd
Expand Down

0 comments on commit bbb78fe

Please sign in to comment.