Marcel, that would be useful, but we also have to be mindful of Windows committers on this project.
I will explore the VM option and get back to this thread once I figure out what's-what. On 12/14/12 9:05 AM, "Marcel Kinard" <cmarc...@gmail.com> wrote: >Would something like this be useful as a utility in the mobile-spec repo? > >file: testUploadService > ># This shell script is meant to run on OSX/Linux/Unix to test that the >online ># service required for the FileTransfer tests is actually up and running >ok. ># This is not meant to run on a handset device. > >set -o xtrace >set -o errexit > >SUCCESFUL=0 >trap on_exit EXIT > >CONTENT=upload-content.txt >HEADERS=upload-headers.txt >OUTPUT=upload-output.txt > >function on_exit() { > if [ $SUCCESFUL -ne 1 ] > then > echo "Encountered an error. Look above. Not removing data files." >1>&2 > else > rm $CONTENT > rm $HEADERS > rm $OUTPUT > echo "Successful." > fi >} > >echo "Checking upload service on cordova-filetransfer.jitsu.com..." >date >> $CONTENT >/usr/bin/curl --form "file=@${CONTENT};filename=${CONTENT}" \ > --dump-header $HEADERS --output $OUTPUT \ > http://cordova-filetransfer.jitsu.com/upload >grep 'HTTP/1.1 200 OK' $HEADERS >grep 'received upload:' $OUTPUT >grep "name: '$CONTENT'" $OUTPUT >SUCCESFUL=1 >exit 0