Skip to content

Commit

Permalink
[release] Publish links to all the 'other' tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Chu committed Aug 30, 2018
1 parent 9a64404 commit ce07f46
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
14 changes: 12 additions & 2 deletions doc/release-index.md
Expand Up @@ -47,10 +47,20 @@ Oil Version 0.6.pre3
- [Wild Tests](test/wild.wwz/). Parsing and translating thousands of shell
scripts with OSH.
- [Unit Tests](test/unit.wwz/). Python unit test results.
- [Gold Tests](test/gold.wwz/log.txt). Comparisons against bash (using

More tests:

- [Gold Tests](test/other.wwz/gold.txt). Comparisons against bash (using
implicit assertions, no golden output.)
- [osh2oil Tests](test/osh2oil.wwz/log.txt). Test the conversion of OSH to
- [osh2oil Tests](test/other.wwz/osh2oil.txt). Test the conversion of OSH to
Oil.
- [parse-errors](test/other.wwz/parse-errors.txt). A list of all parse errors.
- [runtime-errors](test/other.wwz/runtime-errors.txt). A list of all runtime
errors.
- [osh-usage](test/other.wwz/osh-usage.txt). Misc tests of the `osh` binary.
- [oshc-deps](test/other.wwz/oshc-deps.txt). Tests for a subcommand in
progress.
- [arena](test/other.wwz/arena.txt). Testing an invariant for the parser.

### OPy Tests

Expand Down
30 changes: 12 additions & 18 deletions scripts/release.sh
@@ -1,7 +1,7 @@
#!/bin/bash
#
# Usage:
# ./release.sh <function name>
# scripts/release.sh <function name>
#
# Steps:
# build/doc.sh update-src-versions (optional)
Expand Down Expand Up @@ -159,7 +159,11 @@ _release-build() {
readonly HAVE_ROOT=1

readonly -a OTHER_TESTS=(
osh-usage osh2oil gold parse-errors runtime-errors oshc-deps arena
gold
osh2oil
osh-usage oshc-deps
arena
parse-errors runtime-errors
)

run-other-tests() {
Expand Down Expand Up @@ -549,24 +553,14 @@ _link() {
ln -s -f -v --no-target-directory "$@"
}

compress-txt() {
local name=$1

log "--- test/$name"
local out="$root/test/$name.wwz"
pushd _tmp/$name
time zip -r -q $out . # recursive, quiet
popd
}

compress() {
local root=$PWD/_release/VERSION/

# TODO: Change this to test/other.wwz/{gold,osh2oil,...}.txt

# There is a single log.txt file in _tmp/{osh2oil,gold}
compress-txt osh2oil
compress-txt gold
log "--- test/other"
local out="$root/test/other.wwz"
pushd _tmp/other
time zip -r -q $out . # recursive, quiet
popd

log "--- test/unit"
local out="$root/test/unit.wwz"
Expand Down Expand Up @@ -620,10 +614,10 @@ compress-benchmarks() {
osh-runtime/{stage1,stage2,index.html} \
vm-baseline/{stage1,stage2,index.html} \
ovm-build/{stage1,stage2,index.html} \
oheap/{stage1,stage2,index.html} \
-type f \
| xargs --verbose -- zip -q $out
popd
#oheap/{stage1,stage2,index.html} \
}

line-counts() {
Expand Down

0 comments on commit ce07f46

Please sign in to comment.