diff options
| author | ruki <[email protected]> | 2020-04-29 22:40:16 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-04-29 10:01:40 +0800 |
| commit | f046445a06a09743d37e731c91918be2dc7f4c65 (patch) | |
| tree | a269531b8f3f12c777d4f64879f77223671cafc7 /tests/plugins/create/test.lua | |
| parent | 1902b2515b884f4af7db49bc6ddcd0e0224369c2 (diff) | |
fix tests
Diffstat (limited to 'tests/plugins/create/test.lua')
| -rw-r--r-- | tests/plugins/create/test.lua | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/tests/plugins/create/test.lua b/tests/plugins/create/test.lua index 83676b2ef..397f846f4 100644 --- a/tests/plugins/create/test.lua +++ b/tests/plugins/create/test.lua @@ -1,10 +1,11 @@ function main () - os.exec("xmake create -P $(tmpdir)/test") - os.exec("xmake -P $(tmpdir)/test") - os.exec("xmake create -l c++ -P $(tmpdir)/test_cpp") - os.exec("xmake -P $(tmpdir)/test_cpp") - os.exec("xmake create -l c++ -t static -P $(tmpdir)/test_cpp2") - os.exec("xmake -P $(tmpdir)/test_cpp2") - os.exec("xmake create -l c++ -t shared -P $(tmpdir)/test_cpp3") - os.exec("xmake -P $(tmpdir)/test_cpp3") + os.tryrm("$(tmpdir)/test_create") + os.exec("xmake create -P $(tmpdir)/test_create/test") + os.exec("xmake -P $(tmpdir)/test_create/test") + os.exec("xmake create -l c++ -P $(tmpdir)/test_create/test_cpp") + os.exec("xmake -P $(tmpdir)/test_create/test_cpp") + os.exec("xmake create -l c++ -t static -P $(tmpdir)/test_create/test_cpp2") + os.exec("xmake -P $(tmpdir)/test_create/test_cpp2") + os.exec("xmake create -l c++ -t shared -P $(tmpdir)/test_create/test_cpp3") + os.exec("xmake -P $(tmpdir)/test_create/test_cpp3") end |
