~ubuntu-branches/ubuntu/vivid/nginx/vivid-proposed

« back to all changes in this revision

Viewing changes to debian/modules/nginx-upload-progress/test/stress.sh

  • Committer: Package Import Robot
  • Author(s): Thomas Ward
  • Date: 2014-11-05 10:05:07 UTC
  • mfrom: (4.3.21 sid)
  • Revision ID: package-import@ubuntu.com-20141105100507-gpxwcq9bdn2g606u
Tags: 1.6.2-4ubuntu1
* Merge from Debian. Remaining changes: (LP: #1388621)
  - debian/patches/ubuntu-branding.patch: add Ubuntu branding
    (refreshed).
  - debian/rules: Drop from -O3 to -O2 to work around a build failure.
  - d/{control,rules,nginx-core.*}: add new binary package for main,
    nginx-core, which contains only source-tarball-included modules
    and no third-party modules.
  - debian/tests/control: add nginx-core test.
  - debian/control: drop luajit from Build-Depends as it is in universe.
* debian/control:
  * Remove nginx-naxsi* from nginx-core and related
    package stanzas, as the naxsi packages have all been dropped.
  * Remove reference to nginx-naxsi from nginx metapackage description
* debian/index.html: Modify included index.html file to have Ubuntu
  branding, Ubuntu bug reporting tool references, and a link to the
  Launchpad bugs page for the nginx package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# Usage: stress.sh UPLOAD_URL PROGRESS_URL
 
3
#
 
4
 
 
5
i=0
 
6
LIMIT="10k"
 
7
FILE="100"
 
8
#trap 'kill_all' SIGINT SIGTERM
 
9
 
 
10
while [ "1" == "1" ]
 
11
do
 
12
for j in $(seq 5)
 
13
do
 
14
i=`expr $i + 1`
 
15
echo "Upload $i"
 
16
curl --limit-rate $LIMIT -F pouet=@$FILE $1?X-Progress-ID=$i &
 
17
sh client.sh $i $2 &
 
18
i=`expr $i + 1`
 
19
echo "Upload $i"
 
20
curl --limit-rate $LIMIT -F pouet=@$FILE $1?X-Progress-ID=$i &
 
21
sh client.sh $i $2 &
 
22
i=`expr $i + 1`
 
23
echo "Upload $i"
 
24
curl --limit-rate $LIMIT -F pouet=@$FILE $1?X-Progress-ID=$i &
 
25
sh client.sh $i $2 &
 
26
i=`expr $i + 1`
 
27
echo "Upload $i"
 
28
curl --limit-rate $LIMIT -F pouet=@$FILE $1?X-Progress-ID=$i &
 
29
sh client.sh $i $2 &
 
30
i=`expr $i + 1`
 
31
echo "Upload $i"
 
32
curl --limit-rate $LIMIT -F pouet=@$FILE $1?X-Progress-ID=$i &
 
33
sh client.sh $i $2 &
 
34
i=`expr $i + 1`
 
35
echo "Upload $i"
 
36
curl --limit-rate $LIMIT -F pouet=@$FILE $1?X-Progress-ID=$i &
 
37
sh client.sh $i $2 &
 
38
done
 
39
 
 
40
wait
 
41
done