forked from pubnub/javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·39 lines (31 loc) · 1007 Bytes
/
test.sh
File metadata and controls
executable file
·39 lines (31 loc) · 1007 Bytes
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
35
36
37
38
#!/bin/bash
## ------------------------------------------------
## PubNub 3.3 Real-time Cloud Push API - JAVASCRIPT
## ------------------------------------------------
## ----------------------------------------------------
##
## TESTLING - PubNub JavaScript API for Web Browsers
## uses Testling Cloud Service
## for QA and Deployment.
##
## http://www.testling.com/
## You need this to run './test.sh' unit test.
##
## ----------------------------------------------------
if [ -z "$1" ]
then
echo -e "\n\tUSER:PASSWD Required: http://testling.com/\n"
exit
fi
browsers='firefox/3.6'
browsers=$browsers',firefox/9.0'
browsers=$browsers',firefox/10.0'
browsers=$browsers',chrome/16.0'
browsers=$browsers',chrome/17.0'
browsers=$browsers',iexplore/9.0'
browsers=$browsers',safari/5.1'
echo -e "Testing: $browsers"
noinstrument='pubnub-3.3.js'
tar -cf- test.js ../pubnub-3.3.js | \
curl -u $1 -sSNT- \
"testling.com/?noinstrument=$noinstrument&browsers=$browsers"