mirror of
https://github.com/bdwgc/bdwgc-rust.git
synced 2026-05-29 09:58:55 -06:00
Use workspace in examples
This commit is contained in:
9
examples/Cargo.toml
Normal file
9
examples/Cargo.toml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
[workspace]
|
||||||
|
members = [
|
||||||
|
"coroutines",
|
||||||
|
"dynamic_threads",
|
||||||
|
"free_by_borrow",
|
||||||
|
"free_by_gc",
|
||||||
|
"static_threads",
|
||||||
|
"suspended_coroutines",
|
||||||
|
]
|
||||||
@@ -2,19 +2,12 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
for dir in $(ls)
|
cargo build
|
||||||
do
|
|
||||||
if ! [ -d $dir ]
|
|
||||||
then
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
|
|
||||||
(
|
for cargo_file in */Cargo.toml
|
||||||
cd $dir
|
do
|
||||||
cargo build
|
target/debug/$(dirname $cargo_file) &
|
||||||
target/debug/$dir &
|
pid=$!
|
||||||
pid=$!
|
sleep 10
|
||||||
sleep 10
|
kill $pid
|
||||||
kill $pid
|
|
||||||
)
|
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user