File tree Expand file tree Collapse file tree 6 files changed +25
-9
lines changed Expand file tree Collapse file tree 6 files changed +25
-9
lines changed Original file line number Diff line number Diff line change 11#! /bin/sh
22
3+ if [ ! ` which wrk` ]; then
4+ echo " wrk not found."
5+ exit 1;
6+ fi
7+
8+ if [ ! ` which curl` ]; then
9+ echo " curl not found."
10+ exit 1;
11+ fi
12+
313base=" http://127.0.0.1/php-frameworks-bench"
414
515if [ $# -eq 0 ]; then
6- # include framework list
16+ # include frameworks list
717 . ./list.sh
818 export targets=" $list "
919else
Original file line number Diff line number Diff line change 2020
2121 url_output=$( curl -s " $url " )
2222
23+ # expected to get the Hello World! + libs/output_data.php
2324 if ! [[ " $url_output " =~ ^(' Hello World!' )(.* )(( [0 - 9 ]* ): (([0 - 9 ]+ ([.][0 - 9 ]* )?| [.][0 - 9 ]+ )) :([0-9]* ))$ ]]; then
2425 echo -e " error: \n$url "
2526 echo " $url_output "
Original file line number Diff line number Diff line change 11#! /bin/sh
22
33if [ $# -eq 0 ]; then
4- # include framework list
4+ # include frameworks list
55 . ./list.sh
66 targets=" $list "
77else
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3+ if [ ! ` which composer` ]; then
4+ echo " composer not found."
5+ exit 1;
6+ fi
7+
38if [ $# -eq 0 ]; then
4- # include framework list
9+ # include frameworks list
510 . ./list.sh
611 targets=" $list "
712else
Original file line number Diff line number Diff line change 11#! /bin/sh
22
33if [ ! ` which composer` ]; then
4- echo " composer command not found."
4+ echo " composer not found."
55 exit 1;
66fi
77
88if [ ! ` which wrk` ]; then
9- echo " wrk command not found."
9+ echo " wrk not found."
1010 exit 1;
1111fi
1212
1313if [ ! ` which curl` ]; then
14- echo " curl command not found."
14+ echo " curl not found."
1515 exit 1;
1616fi
1717
1818if [ $# -eq 0 ]; then
19- # include framework list
19+ # include frameworks list
2020 . ./list.sh
2121 targets=" $list "
2222else
Original file line number Diff line number Diff line change 11#! /bin/sh
22if [ ! ` which composer` ]; then
3- echo " composer command not found."
3+ echo " composer not found."
44 exit 1;
55fi
66
77if [ $# -eq 0 ]; then
8- # include framework list
8+ # include frameworks list
99 . ./list.sh
1010 targets=" $list "
1111else
You can’t perform that action at this time.
0 commit comments