-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
demo.sh
executable file
·34 lines (26 loc) · 874 Bytes
/
demo.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
cargo build --examples
echo "Run deletes-itself.exe"
target/debug/examples/deletes-itself
if [ ! -f target/debug/examples/deletes-itself ]; then
echo " deletes-itself.exe was successfully deleted"
fi
echo
echo "Run deletes-itself-at.exe"
target/debug/examples/deletes-itself-at
if [ ! -f target/debug/examples/deletes-itself-renamed ] && [ ! -f target/debug/examples/deletes-itself-at ]; then
echo " deletes-itself-at.exe and deletes-itself-renamed.exe were successfully deleted"
fi
echo
echo "Run hello.exe"
target/debug/examples/hello
echo
echo "Run replaces-itself"
target/debug/examples/replaces-itself
echo "Run replaces-itself"
target/debug/examples/replaces-itself
echo
echo "Run deletes-itself-outside-path"
target/debug/examples/deletes-itself-outside-path
if [ ! -d target/debug/examples ]; then
echo " built exampels were successfully deleted"
fi