test: add bootstrap example
This commit is contained in:
parent
38b260d60f
commit
f06b1bbb5c
7 changed files with 34 additions and 2 deletions
1
examples/bootstrap/.gitignore
vendored
Normal file
1
examples/bootstrap/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
/build
|
||||
1
examples/bootstrap/clean.sh
Normal file
1
examples/bootstrap/clean.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
rm -rf build
|
||||
15
examples/bootstrap/package.lean
Normal file
15
examples/bootstrap/package.lean
Normal 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"]
|
||||
}
|
||||
1
examples/bootstrap/package.sh
Normal file
1
examples/bootstrap/package.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
../../build/bin/Lake build-bin
|
||||
3
examples/bootstrap/test.sh
Normal file
3
examples/bootstrap/test.sh
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
./clean.sh
|
||||
./package.sh
|
||||
./build/bin/lake help
|
||||
3
examples/hello/bootstrap-test.sh
Normal file
3
examples/hello/bootstrap-test.sh
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
./clean.sh
|
||||
../bootstrap/build/bin/Lake build-bin
|
||||
./build/bin/Hello
|
||||
|
|
@ -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 ..
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue