Permalink
Browse files

Fully automate the test/spec-bin.sh builds.

Also: Slight refactoring of test/spec.sh.
  • Loading branch information...
Andy Chu
Andy Chu committed Aug 14, 2018
1 parent 43822b8 commit 9a06a0f2c226f507d2a54fc7af91412804ad9d16
Showing with 67 additions and 34 deletions.
  1. +3 −1 scripts/release.sh
  2. +63 −8 test/spec-bin.sh
  3. +1 −25 test/spec.sh
View
@@ -188,7 +188,9 @@ test-opy() {
time ./test.sh oil-unit-byterun > $out/$step.txt 2>&1
echo $?
# Hm does this need its own table output?
# TODO: this need its own table output. It overwrites the output of
# 'test/spec.sh all' from the previous run.
step='test-spec-all'
echo "--- $step ---"
time ./test.sh spec all > $out/$step.txt 2>&1
View
@@ -63,20 +63,47 @@ build-zsh() {
popd
}
build-all() {
# bash/dash: ./configure; make
# mksh: sh Build.sh
# busybox: make defconfig (default config); make
# bash/dash: ./configure; make
# mksh: sh Build.sh
# busybox: make defconfig (default config); make
# ZSH needs special builds
build-zsh
build-bash() {
pushd $DIR/bash-4.3
./configure
make
popd
}
pushd $DIR
build-dash() {
pushd $DIR/dash-0.5.8
./configure
make
popd
}
# TODO: Are they all different?
build-mksh() {
pushd $DIR/mksh-R52c
sh Build.sh
popd
}
build-busybox() {
pushd $DIR/busybox-1.22.0
make defconfig
make
popd
}
build-all() {
build-bash
build-dash
build-mksh
build-busybox
# ZSH is a bit special
build-zsh
}
copy-all() {
pushd $DIR
cp -f -v bash-4.3/bash .
@@ -104,4 +131,32 @@ test-all() {
done
}
#
# NOTE: This is older stuff I saved. We may want to use newer shell versions?
#
_wget() {
wget --no-clobber --directory _tmp/src "$@"
}
# As of March 2017
download-shell-source() {
mkdir -p _tmp/src
# https://tiswww.case.edu/php/chet/bash/bashtop.html - 9/2016 release
# https://ftp.gnu.org/gnu/bash/
_wget https://ftp.gnu.org/gnu/bash/bash-4.4.tar.gz
# https://www.mirbsd.org/mksh.htm - no dates given
_wget https://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R54.tgz
# https://tracker.debian.org/pkg/dash -- old versions
# http://www.linuxfromscratch.org/blfs/view/svn/postlfs/dash.html
# Site seems down now.
# _wget http://gondor.apana.org.au/~herbert/dash/files/dash-0.5.9.1.tar.gz
# http://zsh.sourceforge.net/News/ - 12/2016 release
_wget https://downloads.sourceforge.net/project/zsh/zsh/5.3.1/zsh-5.3.1.tar.xz
}
"$@"
View
@@ -54,7 +54,7 @@ fi
readonly REF_SHELLS=($DASH $BASH $MKSH)
#
# Setup
# Setup (TODO: Delete this once test/spec-bin.sh binaries are deployed)
#
link-busybox-ash() {
@@ -76,30 +76,6 @@ check-shells() {
done
}
_wget() {
wget --no-clobber --directory _tmp/src "$@"
}
# As of March 2017
download-shell-source() {
mkdir -p _tmp/src
# https://tiswww.case.edu/php/chet/bash/bashtop.html - 9/2016 release
# https://ftp.gnu.org/gnu/bash/
_wget https://ftp.gnu.org/gnu/bash/bash-4.4.tar.gz
# https://www.mirbsd.org/mksh.htm - no dates given
_wget https://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R54.tgz
# https://tracker.debian.org/pkg/dash -- old versions
# http://www.linuxfromscratch.org/blfs/view/svn/postlfs/dash.html
# Site seems down now.
# _wget http://gondor.apana.org.au/~herbert/dash/files/dash-0.5.9.1.tar.gz
# http://zsh.sourceforge.net/News/ - 12/2016 release
_wget https://downloads.sourceforge.net/project/zsh/zsh/5.3.1/zsh-5.3.1.tar.xz
}
maybe-show() {
local path=$1
if test -e $path; then

0 comments on commit 9a06a0f

Please sign in to comment.