From 93531f59a161245d4e9481eb1268b5c73f6ad1f3 Mon Sep 17 00:00:00 2001 From: TitanSnow Date: Sun, 14 May 2017 13:16:39 +0800 Subject: modify tests to keep xmake in cwd --- tests/tests | 20 ++++++-------------- 1 file 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 -- cgit v1.3.1