Skip to content
This repository
tree: f6c3053650
Fetching contributors…

Cannot retrieve contributors at this time

executable file 28 lines (24 sloc) 0.54 kb
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
#!/bin/bash
echo -n 'testling user: '
read user

stty -echo
echo -n 'password: '
read pass
stty echo

function tick () {
    cat <(echo 'process={};') ../wrappers/process.js tick.js \
        | curl -sSNT- -u "$user:$pass" testling.com
}

function util () {
    tar -cf- util.js ../builtins/util.js |
        curl -sSNT- -u "$user:$pass" \
        'http://testling.com/?main=util.js&noinstrument=builtins/util.js'
}

if test -z "$1"; then
    tick
    util
elif test "$1" == 'tick'; then
    tick
elif test "$1" == 'util'; then
    util
fi
Something went wrong with that request. Please try again.