Permalink
Browse files
Archive the source file corpus for the wild tests.
This is so we can make a release from any machine!
Unrelated: Update comments in osh.asdl.
- Loading branch information...
Showing
with
15 additions
and
5 deletions.
-
+2
−4
osh/osh.asdl
-
+13
−1
test/wild.sh
|
|
@@ -3,14 +3,13 @@ |
|
|
-- Invariant: the source text can be reconstructed byte-for-byte from this
|
|
|
-- tree.
|
|
|
--
|
|
|
-- The AST is composed of the builtin ASDL types (string, int, bool) and our
|
|
|
-- The AST is composed of the builtin ASDL types (string, int, bool) and our
|
|
|
-- application type 'id', which is core.id_kind.Id.
|
|
|
|
|
|
-- Unrepresented:
|
|
|
-- * let arithmetic (rarely used)
|
|
|
-- * coprocesses -- one with arg and one without
|
|
|
-- * select block
|
|
|
-- * &> redirect both stdout and stderr
|
|
|
-- * 1>&2- to close redirect
|
|
|
-- * case fallthrough ;& and ;;&
|
|
|
|
|
|
@@ -20,7 +19,7 @@ |
|
|
|
|
|
-- Parsed but Not Implemented
|
|
|
-- * extended glob
|
|
|
-- * <> &> redirects
|
|
|
-- * <> redirect
|
|
|
|
|
|
-- TODO: Preserve these source differences:
|
|
|
-- * order of redirects: 'echo >out.txt hi' vs echo hi >out.txt
|
|
|
@@ -32,7 +31,6 @@ |
|
|
--
|
|
|
-- Found to be not strictly necessary for oil conversion
|
|
|
-- * foo() { } vs function foo { } -- ksh
|
|
|
-- * $'n' vs 'n' -- one of them just has EscapedLiteralPart
|
|
|
|
|
|
module osh
|
|
|
{
|
|
|
|
|
|
@@ -10,7 +10,7 @@ |
|
|
# published in a tarball or torrent.
|
|
|
# - Add gentoo
|
|
|
# - Add a quick smoke test that excludes distros and big ones, etc.
|
|
|
# - Just do a regex
|
|
|
# - 'all' accepts a regex
|
|
|
|
|
|
set -o nounset
|
|
|
set -o pipefail
|
|
|
@@ -427,6 +427,18 @@ write-manifest() { |
|
|
wc -l $out
|
|
|
}
|
|
|
|
|
|
# TODO: Publish this script
|
|
|
multi() { ~/hg/tree-tools/bin/multi "$@"; }
|
|
|
|
|
|
make-archive() {
|
|
|
# Format of manifest:
|
|
|
# $1 is project
|
|
|
# $2 is abspath of source
|
|
|
# $3 is rel path within project
|
|
|
awk '{print $2 " " $1 "/" $3 }' $MANIFEST \
|
|
|
| multi tar _tmp/wild/wild-source.tar.gz
|
|
|
}
|
|
|
|
|
|
# 442K lines without "big" and without ltmain.sh
|
|
|
# TODO: Include a few ltmain.sh. Have to de-dupe them.
|
|
|
#
|
|
|
|
0 comments on commit
865bd29