Skip to content

Commit d457925

Browse files
committed
test: add black box test for ls-recipes
Basically just a smoke test with some trivial recipes.
1 parent 19f6a61 commit d457925

File tree

5 files changed

+30
-0
lines changed

5 files changed

+30
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bobMinimumVersion: "1.0"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
packageScript: |
2+
echo lib
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
root: True
2+
3+
depends:
4+
- lib
5+
6+
buildScript: "true"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
packageScript: |
2+
echo unused

test/black-box/ls-recipes/run.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash -e
2+
. ../../test-lib.sh 2>/dev/null || { echo "Must run in script directory!" ; exit 1 ; }
3+
cleanup
4+
5+
# does not work on native windows due to line endings
6+
if is_win32 ; then
7+
skip
8+
fi
9+
10+
expect_output "lib
11+
root
12+
unused" run_bob ls-recipes
13+
14+
expect_output "lib
15+
root" run_bob ls-recipes --used
16+
17+
expect_output "unused" run_bob ls-recipes --orphaned
18+
19+
expect_output "unused recipes/unused.yaml" run_bob ls-recipes --orphaned --sources

0 commit comments

Comments
 (0)