Debian Codegraph @

test/blackbox-tests/test-cases/pkg/search/empty-repo.t

raw
1 We use an empty repository with no packages for this test.
2
3 $ mkrepo
4
5 Create a dune-workspace with a the mock repository added
6
7 $ add_mock_repo_if_needed
8
9 Search with a query argument -- exact name
10
11 $ dune pkg search foo
12 Error: No packages found matching "foo".
13 [1]
14
15 Another search with a query argument - substring of package name
16
17 $ dune pkg search ar
18 Error: No packages found matching "ar".
19 [1]
20
21 Search with no results
22
23 $ dune pkg search baz
24 Error: No packages found matching "baz".
25 [1]
26
27 Search for all packages
28
29 $ dune pkg search '.*'
30 Error: No packages found matching ".*".
31 [1]