Skip to content

Commit

Permalink
examples: add script to run all
Browse files Browse the repository at this point in the history
  • Loading branch information
steveej committed Jun 19, 2020
1 parent 419b6f3 commit 16edad8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/run-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env sh
set -e
for path in examples/*.rs; do
file="${path##*/}"
example="${file%%.*}"
cargo run --example "$example" || {
echo Example $example failed.
exit 1
}
done

0 comments on commit 16edad8

Please sign in to comment.