Skip to content

Commit f26f3ae

Browse files
committed
parameterize test script
1 parent d6c1636 commit f26f3ae

File tree

5 files changed

+15
-11
lines changed

5 files changed

+15
-11
lines changed

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Shell: /bin/bash
4646
## Tests
4747

4848
```sh
49-
docker run --rm -v $PWD:/root/tiny_wine tinywine ./loader_test.sh
49+
docker run --rm -v $PWD:/root/tiny_wine tinywine ./test_loader.sh
5050
```
5151

5252
## Contributing

test.sh

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#! /bin/bash
2+
3+
set -e
4+
5+
loop_count=${1:-1}
6+
for ((i = 0; i < loop_count; i++)); do
7+
if [[ loop_count -gt 1 ]]; then
8+
echo "Testing round $((i + 1))"
9+
fi
10+
./test_loader.sh > /dev/null
11+
./test_winloader.sh > /dev/null
12+
done
13+
14+
echo "All tests passed"
File renamed without changes.

test_loop.sh

-10
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)