mirror of
https://github.com/bevyengine/bevy
synced 2024-11-24 21:53:07 +00:00
example showcase script (useful for testing for regressions)
This commit is contained in:
parent
d9663d740b
commit
ffa0bbe9ee
1 changed files with 22 additions and 0 deletions
22
tools/example_showcase.sh
Normal file
22
tools/example_showcase.sh
Normal file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
|
||||
duration='3'
|
||||
run_example() {
|
||||
timeout "$duration" cargo run --release --example $1
|
||||
}
|
||||
|
||||
|
||||
|
||||
for entry in examples/*
|
||||
do
|
||||
IFS='/'
|
||||
read -ra ADDR <<< $entry
|
||||
IFS=' '
|
||||
example_file="${ADDR[1]}"
|
||||
if [ ${example_file: -2} == "rs" ]
|
||||
then
|
||||
example="${example_file::-3}"
|
||||
echo "Running example: $example"
|
||||
run_example $example
|
||||
fi
|
||||
done
|
Loading…
Reference in a new issue