08-27-周三_17-09-29
This commit is contained in:
23
node_modules/dnode-protocol/testling/test.sh
generated
vendored
Normal file
23
node_modules/dnode-protocol/testling/test.sh
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
if test -z "$user"; then
|
||||
echo -n "username: "
|
||||
read user
|
||||
fi
|
||||
|
||||
browsers=""
|
||||
if test -n "$2"; then
|
||||
browsers="browsers=$2"
|
||||
fi
|
||||
|
||||
function testFile {
|
||||
tar -cf- index.js "$1" node_modules/traverse/index.js \
|
||||
| curl -u "$user" -sSNT- \
|
||||
"http://testling.com/?$browsers&main=$1"
|
||||
}
|
||||
|
||||
if test -f "$1"; then
|
||||
testFile "$1"
|
||||
else
|
||||
echo not
|
||||
fi
|
Reference in New Issue
Block a user