Skip to content

Commit

Permalink
Add test for new directory creation
Browse files Browse the repository at this point in the history
  • Loading branch information
shonfeder committed Nov 29, 2024
1 parent 046d26b commit 04c1b89
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions test/analyse.t
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,15 @@ See https://github.com/ocurrent/opam-repo-ci/issues/291
$ opam-repo-ci-local --repo="." --branch=analyze-invalid-opam-file --analyse-only --no-web-server
Error ""packages/a-1/a-1.0.0.1/opam" failed to be parsed: '.' is not a valid token"

Clean up the build cache
$ rm -rf var

$ rm -rf ./var
Test that a new root directory can be created.
See https://github.com/ocurrent/opam-repo-ci/pull/397

$ git checkout -q -b add-a-new-dir initial-state
$ mkdir a-new-directory
$ touch a-new-directory/foo
$ git add a-new-directory/foo
$ git commit -q -m "Add a new directory"
$ opam-repo-ci-local --repo="." --branch=add-a-new-dir --analyse-only --no-web-server
{ "packages": [] }

0 comments on commit 04c1b89

Please sign in to comment.