Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
test: skip c++ example for all platforms but linux
Browse files Browse the repository at this point in the history
  • Loading branch information
5chdn committed Oct 1, 2018
1 parent f749b0e commit 0ababae
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ validate () {
time cargo check $@ --no-default-features
time cargo check $@ --manifest-path util/io/Cargo.toml --no-default-features
time cargo check $@ --manifest-path util/io/Cargo.toml --features "mio"

# Validate chainspecs
echo "________Validate chainspecs________"
time ./scripts/validate_chainspecs.sh
Expand All @@ -48,17 +48,24 @@ validate () {
}

cpp_test () {
# Running the C++ example
echo "________Running the C++ example________"
cd parity-clib-examples/cpp && \
mkdir -p build && \
cd build && \
cmake .. && \
make -j $THREADS && \
./parity-example && \
cd .. && \
rm -rf build && \
cd ../..
case $CARGO_TARGET in
(x86_64-unknown-linux-gnu)
# Running the C++ example
echo "________Running the C++ example________"
cd parity-clib-examples/cpp && \
mkdir -p build && \
cd build && \
cmake .. && \
make -j $THREADS && \
./parity-example && \
cd .. && \
rm -rf build && \
cd ../..
;;
(*)
echo "________Skipping the C++ example________"
;;
esac
}

cargo_test () {
Expand Down

0 comments on commit 0ababae

Please sign in to comment.