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

46 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
10# Problem: this includes test-collect-json
11# (which uses python3)
12source soil/web-worker.sh # make-job-wwz
13
14test-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
23test-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
31ROOT-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
41soil-run() {
42 devtools/byo.sh test $0
43 #run-test-funcs
44}
45
46task-five "$@"