test: add bootstrap example

This commit is contained in:
tydeu 2021-07-28 10:20:42 -04:00
parent 38b260d60f
commit f06b1bbb5c
7 changed files with 34 additions and 2 deletions

1
examples/bootstrap/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/build

View file

@ -0,0 +1 @@
rm -rf build

View file

@ -0,0 +1,15 @@
import Lake.Package
open Lake System
def package : PackageConfig := {
name := "lake"
version := "2.0-pre-bootstrap"
rootDir := FilePath.mk ".." / ".."
oleanDir := defaultBuildDir
linkArgs :=
if Platform.isWindows then
#["-Wl,--export-all"]
else
#["-rdynamic"]
}

View file

@ -0,0 +1 @@
../../build/bin/Lake build-bin

View file

@ -0,0 +1,3 @@
./clean.sh
./package.sh
./build/bin/lake help

View file

@ -0,0 +1,3 @@
./clean.sh
../bootstrap/build/bin/Lake build-bin
./build/bin/Hello

View file

@ -23,7 +23,15 @@ cd git
./test.sh
cd ..
echo 'testing ext'
cd ext
echo 'testing ffi'
cd ffi
./test.sh
cd ..
echo "testing bootstrap"
cd bootstrap
./test.sh
cd ..
cd hello
./bootstrap-test.sh
cd ..