1 | #!/usr/bin/env bash
|
2 | #
|
3 | # Main file for test-oils.xshar
|
4 | #
|
5 | # Usage:
|
6 | # devtools/test-oils.sh <function name>
|
7 | #
|
8 | # It will contain
|
9 | #
|
10 | # _release/
|
11 | # oils-for-unix.tar
|
12 | # benchmarks/
|
13 | # time-helper.c
|
14 | # osh-runtime.sh
|
15 | #
|
16 | # It will run benchmarks, and then upload a TSV file to a server.
|
17 | #
|
18 | # The TSV file will be labeled with
|
19 | #
|
20 | # - git commit that created the xshar file (in oilshell/oil)
|
21 | # - date
|
22 | # - label: github actions / sourcehut
|
23 | # - and then we'll also have provenance and system info
|
24 | # - machine name, OS, CPUs, etc.
|
25 |
|
26 | set -o nounset
|
27 | set -o pipefail
|
28 | set -o errexit
|
29 |
|
30 | main() {
|
31 | # TODO
|
32 | #
|
33 | # - Extract oils tarball, compile it
|
34 | # - Run "$@"
|
35 | #
|
36 | # test-oils.xshar benchmarks/osh-runtime.sh xshar-main
|
37 | #
|
38 | # - benchmarks/osh-runtime.sh will create TSV files
|
39 | # - then it can upload them to a server
|
40 |
|
41 | echo 'Hello from test-oils.sh'
|
42 | }
|
43 |
|
44 | "$@"
|