xtool.git
Publicgit clone https://git.maproj.org/xtool.gitxtool.git / integration-tests / suite / smoke.bats
smoke.bats21 lines · 500 BRaw
| 1 | setup() { |
| 2 | bats_require_minimum_version 1.5.0 |
| 3 | bats_load_library bats-support |
| 4 | bats_load_library bats-assert |
| 5 | } |
| 6 | |
| 7 | @test "can run xtool" { |
| 8 | xtool --version |
| 9 | } |
| 10 | |
| 11 | @test "can build a fresh app" { |
| 12 | xtool new --skip-setup MyApp |
| 13 | cd MyApp |
| 14 | xtool dev build |
| 15 | llvm-objdump -p ./xtool/MyApp.app/MyApp | grep "\bcmd LC_BUILD_VERSION\b" -a2 | grep "\bplatform ios\b" |
| 16 | } |
| 17 | |
| 18 | @test "slim sdk cannot be updated" { |
| 19 | run ! xtool sdk update |
| 20 | assert_output --partial "cannot be updated in place" |
| 21 | } |