GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — taskgraph/.script/test at master · taskgraph/taskgraph Expand file tree/ Copy pathtestMore file actions executable file ·61 lines (50 loc) · 1.08 KB / Copy pathtestFile metadata and controlsexecutable file ·61 lines (50 loc) · 1.08 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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 #!/bin/bash # Exit immediately if a command exits with a non-zero status. set -e ETCDTESTDIR=".tmp/etcd-testdir" if [ ! -d ".tmp" ]; then mkdir .tmp fi cleanup() { kill $(jobs -p) 2>/dev/null rm -r $ETCDTESTDIR } # cleanup on any kind of exit trap cleanup INT TERM EXIT is_etcd_up_on_4001() { if curl -fs "http://localhost:4001/v2/machines" 2>/dev/null; then return 0 fi return 1 } if is_etcd_up_on_4001 ; then echo "existing etcd on localhost:4001" exit 1 fi if [ -d "$ETCDTESTDIR" ]; then rm -r $ETCDTESTDIR fi if [[ "$OSTYPE" == "darwin"* ]]; then .script/bin/etcd-darwin --data-dir $ETCDTESTDIR > /dev/null 2>&1 & else .script/bin/etcd-linux --data-dir $ETCDTESTDIR > /dev/null 2>&1 & fi for i in $(seq 10); do sleep 1 if is_etcd_up_on_4001; then break fi done if is_etcd_up_on_4001 ; then echo "etcd is running on localhost:4001" else echo "etcd failed to run on localhost:4001" exit 1 fi # testing go test -v ./controller go test -v ./framework go test -v ./integration go test -v ./op go test -v ./filesystem go test -v ./example/topo |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |