forked from GitHub/bdwgc-rust
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