OILS / build / dev-setup-test.sh View on Github | oilshell.org

30 lines, 12 significant
1#!/usr/bin/env bash
2#
3# Usage:
4# build/dev-setup-test.sh <function name>
5
6set -o nounset
7set -o pipefail
8set -o errexit
9
10REPO_ROOT=$(cd "$(dirname $0)/.."; pwd)
11
12smoke-test() {
13 ### For the fast possible development experience
14
15 # To put python2 WEDGE in $PATH
16 source build/dev-shell.sh
17
18 bin/osh -c 'echo HI osh python $OILS_VERSION'
19 bin/ysh -c 'echo HI ysh python $OILS_VERSION'
20
21 # ASAN doesn't work with musl libc on Alpine
22 # https://gitlab.alpinelinux.org/alpine/aports/-/issues/10304
23
24 ninja _bin/cxx-dbg/{osh,ysh}
25
26 _bin/cxx-dbg/osh -c 'echo HI osh C++ $OILS_VERSION'
27 _bin/cxx-dbg/ysh -c 'echo HI ysh C++ $OILS_VERSION'
28}
29
30"$@"