Permalink
Browse files

[release] Running all 'other' tests in a uniform way.

  • Loading branch information...
Andy Chu
Andy Chu committed Aug 30, 2018
1 parent 239627f commit 9a64404bb79089b7d4f13b02274c9e39c54915b9
Showing with 23 additions and 26 deletions.
  1. +13 −5 scripts/release.sh
  2. +1 −6 test/arena.sh
  3. +1 −6 test/osh2oil.sh
  4. +8 −9 test/parse-errors.sh
View
@@ -88,6 +88,8 @@ auto-machine1() {
# parse-errors.txt
# runtime-errors.txt
# oshc-deps.txt
# osh-usage.txt
# arena.txt
# tarball/ # log of building and running the tarball?
# asan/ # spec tests or other?
# # or it can be put under test/{spec,wild}
@@ -156,6 +158,16 @@ _release-build() {
readonly HAVE_ROOT=1
readonly -a OTHER_TESTS=(
osh-usage osh2oil gold parse-errors runtime-errors oshc-deps arena
)
run-other-tests() {
for name in "${OTHER_TESTS[@]}"; do
test/$name.sh run-for-release
done
}
_test-release-build() {
# NOTE: Need test/alpine.sh download;extract;setup-dns,add-oil-build-deps,
# etc.
@@ -168,11 +180,7 @@ _test-release-build() {
test/spec.sh smoke # Initial smoke test, slightly redundant.
test/osh2oil.sh run-for-release
test/gold.sh run-for-release
test/parse-errors.sh run-for-release
test/runtime-errors.sh run-for-release
test/oshc-deps.sh run-for-release
run-other-tests
# Just test the release build (not under CPython or byterun. That comes later.)
OSH_LIST="$OSH_RELEASE_BINARY" test/spec.sh all
View
@@ -60,12 +60,7 @@ all-passing() {
}
run-for-release() {
local out_dir=_tmp/arena
mkdir -p $out_dir
all-passing | tee $out_dir/log.txt
echo "Wrote $out_dir/log.txt"
run-other-suite-for-release arena all-passing
}
"$@"
View
@@ -1217,12 +1217,7 @@ all-passing() {
}
run-for-release() {
local out_dir=_tmp/osh2oil
mkdir -p $out_dir
all-passing | tee $out_dir/log.txt
echo "Wrote $out_dir/log.txt"
run-other-suite-for-release osh2oil all-passing
}
"$@"
View
@@ -36,21 +36,20 @@ patsub() {
_error-case 'echo ${x/}' # pattern must not be empty
_error-case 'echo ${x/%}' # pattern must not be empty (only had modifier)
_error-case 'echo ${x/%/}' # pattern must not be empty (only had modifier)
# These are a little odd
_error-case 'echo ${x//}'
_error-case 'echo ${x///}'
#_error-case 'echo ${x///}'
#_error-case 'echo ${x/foo}'
#_error-case 'echo ${x//foo}'
_error-case 'echo ${x/foo}'
_error-case 'echo ${x//foo}'
# This should be a different error? It should be an empty pattern?
_error-case 'echo ${x///foo}'
# Newline in replacement pattern
_error-case 'echo ${x//foo/replace
}'
_error-case 'echo ${x//foo/replace$foo}'
#_error-case 'echo ${x//foo/replace
#}'
#_error-case 'echo ${x//foo/replace$foo}'
}
# osh/word_parse.py

0 comments on commit 9a64404

Please sign in to comment.