| 1 | #!/usr/bin/env bash
|
| 2 |
|
| 3 | : ${LIB_OSH=stdlib/osh}
|
| 4 | source $LIB_OSH/bash-strict.sh
|
| 5 | source $LIB_OSH/task-five.sh
|
| 6 | source $LIB_OSH/no-quotes.sh
|
| 7 |
|
| 8 | REPO_ROOT=$(cd "$(dirname $0)/.."; pwd)
|
| 9 |
|
| 10 | # Problem: this includes test-collect-json
|
| 11 | # (which uses python3)
|
| 12 | source soil/web-worker.sh # make-job-wwz
|
| 13 |
|
| 14 | test-format-wwz-index() {
|
| 15 | soil/worker.sh JOB-dummy
|
| 16 |
|
| 17 | local out=_tmp/format-wwz-index.html
|
| 18 |
|
| 19 | format-wwz-index DUMMY_JOB_ID > $out
|
| 20 | echo "Wrote $out"
|
| 21 | }
|
| 22 |
|
| 23 | test-make-job-wwz() {
|
| 24 | make-job-wwz dummy
|
| 25 |
|
| 26 | # Makes it in the root dir
|
| 27 | ls -l *.wwz
|
| 28 | unzip -l dummy.wwz
|
| 29 | }
|
| 30 |
|
| 31 | ROOT-test-image-stats() {
|
| 32 | # NOTE: can't run sudo automatically
|
| 33 | sudo soil/host-shim.sh save-image-stats
|
| 34 |
|
| 35 | format-image-stats '' '../../web' > _tmp/soil/image.html
|
| 36 |
|
| 37 | # Problem: absolute JS and CSS links don't work here.
|
| 38 | ls -l _tmp/soil/image.html
|
| 39 | }
|
| 40 |
|
| 41 | soil-run() {
|
| 42 | devtools/byo.sh test $0
|
| 43 | #run-test-funcs
|
| 44 | }
|
| 45 |
|
| 46 | task-five "$@"
|