about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Poelzleithner <poelzleithner@b1-systems.de>2018-04-18T19·45+0200
committerDaniel Poelzleithner <poelzleithner@b1-systems.de>2018-04-18T19·45+0200
commitf6e8ceafa68adcdd1f3683beaabff31d55c4d58e (patch)
tree7688d0c3f5b8a6060738c2eec9fd815e257d5050 /tests
parentb712d4674bb18dd8c449c97b02e99b3e78bd6dd0 (diff)
add tests for multi search
Diffstat (limited to 'tests')
-rw-r--r--tests/search.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/search.sh b/tests/search.sh
index d83427247d3e..0b26a125120f 100644
--- a/tests/search.sh
+++ b/tests/search.sh
@@ -29,6 +29,11 @@ clearCache
 # Check search that matches nothing
 (( $(nix search nosuchpackageexists | wc -l) == 0 ))
 
+# Search for multiple arguments
+(( $(nix search hello empty | wc -l) == 5 ))
+
+# Multiple arguments will not exist
+(( $(nix search hello broken | wc -l) == 0 ))
 
 ## Search expressions