diff options
| author | TitanSnow <[email protected]> | 2017-05-14 13:16:39 +0800 |
|---|---|---|
| committer | TitanSnow <[email protected]> | 2017-05-14 13:17:19 +0800 |
| commit | 93531f59a161245d4e9481eb1268b5c73f6ad1f3 (patch) | |
| tree | 00ccbf16264aa7b1778928d8eeaa7370b63a5589 | |
| parent | 1f94e83178b2f7b09521610c954e3073d8bdd2b5 (diff) | |
modify tests to keep xmake in cwd
| -rwxr-xr-x | tests/tests | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/tests/tests b/tests/tests index 5caeb88f9..a0a6b29d8 100755 --- a/tests/tests +++ b/tests/tests @@ -18,30 +18,22 @@ function exec() function build() { - # enter project + # echo project name echo "build $1" - cd $1 # build - exec "xmake f -c" - exec "xmake " - exec "xmake p" - - # leave project - cd - + exec "xmake f -c -P $1" + exec "xmake -P $1" + exec "xmake p -P $1" } function build_for_iphoenos() { - # enter project + # echo project name echo "build $1" - cd $1 # package all archs for iphoneos - exec "xmake m package -p iphoneos" - - # leave project - cd - + exec "xmake m package -p iphoneos -P $1" } # build for c |
