Skip to content
Browse files

better test script reading $1

  • Loading branch information...
1 parent 2a59d22 commit 7c0b2c41b96377c0c2e0a4a91c841eed82268603 @substack committed Feb 26, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 testling/test.sh
View
12 testling/test.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+if test -n "$1"; then
+ user="$1"
+else
+ echo -n 'testling account: '
+ read user
+fi
+
+curl -sSNT <(tar -cf- ../index.js run.js 2>/dev/null) \
+ 'http://testling.com/?main=run.js&browsers=iexplore/8.0' \
+ -u "$user"
+# 'http://testling.com/?main=run.js&browsers=chrome/17.0,iexplore/8.0,iexplore/9.0,firefox/10.0,safari/5.1,opera/11.6' \

0 comments on commit 7c0b2c4

Please sign in to comment.
Something went wrong with that request. Please try again.