OILS / soil / web-remote-test.sh View on Github | oilshell.org

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