Skip to content

Commit

Permalink
test: add tests for --deps-only and --no-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
kkendzia committed Nov 20, 2018
1 parent 5e69fa9 commit 7a531a5
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/deps-only/recipes/app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
depends:
- lib

buildScript: |
true # must not be exectued
packageScript: |
true # must not be executed
5 changes: 5 additions & 0 deletions test/deps-only/recipes/lib.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
buildScript: |
true # must not be exectued
packageScript: |
true # must not be executed
10 changes: 10 additions & 0 deletions test/deps-only/recipes/root.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root: True

depends:
- app

buildScript: |
false # must not be exectued
packageScript: |
false # must not be executed
9 changes: 9 additions & 0 deletions test/deps-only/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash -e
. ../test-lib.sh 2>/dev/null || { echo "Must run in script directory!" ; exit 1 ; }
cleanup

# Test that --checkout-only does what it says. Additionally it checks that
# tools that are used during a checkout step are still built.

# checkout sources
run_bob dev root --deps-only
8 changes: 8 additions & 0 deletions test/no-deps/recipes/app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
depends:
- lib

buildScript: |
false # must not be exectued
packageScript: |
false # must not be executed
5 changes: 5 additions & 0 deletions test/no-deps/recipes/lib.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
buildScript: |
false # must not be exectued
packageScript: |
false # must not be executed
10 changes: 10 additions & 0 deletions test/no-deps/recipes/root.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root: True

depends:
- app

buildScript: |
true # must not be exectued
packageScript: |
true # must not be executed
9 changes: 9 additions & 0 deletions test/no-deps/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash -e
. ../test-lib.sh 2>/dev/null || { echo "Must run in script directory!" ; exit 1 ; }
cleanup

# Test that --checkout-only does what it says. Additionally it checks that
# tools that are used during a checkout step are still built.

# checkout sources
run_bob dev root --no-deps

0 comments on commit 7a531a5

Please sign in to comment.