mirror of
https://github.com/bdwgc/bdwgc-rust.git
synced 2026-05-29 18:08:56 -06:00
Refactor project structure (#507)
This commit is contained in:
20
tools/example_test.sh
Executable file
20
tools/example_test.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -ex
|
||||
|
||||
duration=20
|
||||
|
||||
cd $(dirname $0)/..
|
||||
|
||||
for directory in $(ls examples); do
|
||||
(
|
||||
cd examples/$directory
|
||||
|
||||
cargo build
|
||||
cargo run &
|
||||
|
||||
pid=$!
|
||||
sleep $duration
|
||||
kill $pid
|
||||
)
|
||||
done
|
||||
Reference in New Issue
Block a user