Permalink
Browse files

Set up busybox ash link in 'scripts/release.sh build-and-test'.

This lets us run without _tmp, i.e. from a clean repo.
  • Loading branch information...
Andy Chu
Andy Chu committed Nov 7, 2017
1 parent 77d096c commit b989ecbf8a184fd875b8ad2bc4daf61126fc769d
Showing with 7 additions and 2 deletions.
  1. +1 −0 scripts/release.sh
  2. +6 −2 test/spec.sh
View
@@ -91,6 +91,7 @@ build-and-test() {
# Make sure
test/spec.sh smoke
test/spec.sh link-busybox-ash # in case we deleted _tmp
test/spec.sh all
# Build the oil tar
View
@@ -33,11 +33,15 @@ readonly REF_SHELLS=($DASH $BASH $MKSH)
# Setup
#
link-busybox-ash() {
mkdir -p $(dirname $BUSYBOX_ASH)
ln -s -f --verbose "$(which busybox)" $BUSYBOX_ASH
}
# dash and bash should be there by default on Ubuntu.
install-shells() {
sudo apt-get install busybox-static mksh zsh
mkdir -p _tmp/shells
ln -s -f --verbose "$(which busybox)" $BUSYBOX_ASH
link-busybox-ash
}
# TODO: Maybe do this before running all tests.

0 comments on commit b989ecb

Please sign in to comment.