diff --git a/test/deps-only/recipes/app.yaml b/test/deps-only/recipes/app.yaml new file mode 100644 index 000000000..5d9f6876b --- /dev/null +++ b/test/deps-only/recipes/app.yaml @@ -0,0 +1,8 @@ +depends: + - lib + +buildScript: | + true # must not be exectued + +packageScript: | + true # must not be executed diff --git a/test/deps-only/recipes/lib.yaml b/test/deps-only/recipes/lib.yaml new file mode 100644 index 000000000..cc5cd3dd4 --- /dev/null +++ b/test/deps-only/recipes/lib.yaml @@ -0,0 +1,5 @@ +buildScript: | + true # must not be exectued + +packageScript: | + true # must not be executed diff --git a/test/deps-only/recipes/root.yaml b/test/deps-only/recipes/root.yaml new file mode 100644 index 000000000..d76e488c5 --- /dev/null +++ b/test/deps-only/recipes/root.yaml @@ -0,0 +1,10 @@ +root: True + +depends: + - app + +buildScript: | + false # must not be exectued + +packageScript: | + false # must not be executed diff --git a/test/deps-only/run.sh b/test/deps-only/run.sh new file mode 100755 index 000000000..a572052b0 --- /dev/null +++ b/test/deps-only/run.sh @@ -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 \ No newline at end of file diff --git a/test/no-deps/recipes/app.yaml b/test/no-deps/recipes/app.yaml new file mode 100644 index 000000000..fad206436 --- /dev/null +++ b/test/no-deps/recipes/app.yaml @@ -0,0 +1,8 @@ +depends: + - lib + +buildScript: | + false # must not be exectued + +packageScript: | + false # must not be executed diff --git a/test/no-deps/recipes/lib.yaml b/test/no-deps/recipes/lib.yaml new file mode 100644 index 000000000..cddbd499d --- /dev/null +++ b/test/no-deps/recipes/lib.yaml @@ -0,0 +1,5 @@ +buildScript: | + false # must not be exectued + +packageScript: | + false # must not be executed diff --git a/test/no-deps/recipes/root.yaml b/test/no-deps/recipes/root.yaml new file mode 100644 index 000000000..cda8e82ea --- /dev/null +++ b/test/no-deps/recipes/root.yaml @@ -0,0 +1,10 @@ +root: True + +depends: + - app + +buildScript: | + true # must not be exectued + +packageScript: | + true # must not be executed diff --git a/test/no-deps/run.sh b/test/no-deps/run.sh new file mode 100755 index 000000000..3f0a41db7 --- /dev/null +++ b/test/no-deps/run.sh @@ -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 \ No newline at end of file