File tree 4 files changed +13
-3
lines changed
4 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,14 @@ while [ "$(curl --write-out %{http_code} --silent --output /dev/null http://app/
11
11
sleep 1
12
12
done
13
13
14
+ results_dir=" ./results"
15
+ if [ ! -e " $results_dir " ]; then
16
+ mkdir -p " $results_dir "
17
+ fi
18
+
14
19
attack_get () {
15
20
file_name=" $i -GET_$1 _$3 _$4 .txt"
16
- file_path=" ./results /$file_name "
21
+ file_path=" ./$results_dir /$file_name "
17
22
url=" http://app$2 "
18
23
19
24
echo " Running $file_name "
@@ -27,7 +32,7 @@ attack_get() {
27
32
28
33
attack_post () {
29
34
file_name=" $i -POST_$1 _$4 _$5 .txt"
30
- file_path=" ./results /$file_name "
35
+ file_path=" ./$results_dir /$file_name "
31
36
url=" http://app$2 "
32
37
33
38
echo " Running $file_name "
@@ -93,7 +98,7 @@ post_tag 50 10
93
98
94
99
if [ " $UPLOAD_RESULTS " = " true" ]; then
95
100
echo " Test complete. Uploading results."
96
- ./ upload_results
101
+ upload_results
97
102
else
98
103
echo " Test complete. Skipping results upload."
99
104
fi
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env sh
2
+
1
3
docker-machine stop docker-sandbox
2
4
docker-machine rm docker-sandbox -y
3
5
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env sh
1
2
export UPLOAD_RESULTS=" false"
2
3
3
4
docker-compose -f stack.yml build
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env sh
2
+
1
3
case ${DIGITAL_OCEAN_TOKEN-} in ' ' ) echo " $0 : Environment variable DIGITAL_OCEAN_TOKEN is not set" >&2 ; exit 1;; esac
2
4
3
5
export UPLOAD_RESULTS=" true"
You can’t perform that action at this time.
0 commit comments