Skip to content

Commit

Permalink
tests: Add test cases for invalid west projects manifests
Browse files Browse the repository at this point in the history
Add tests for cases where projects are inside the .west directory.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
  • Loading branch information
pdgendt committed Oct 14, 2024
1 parent 21cb051 commit 714dfad
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/manifests/invalid_project_in_west_dir.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Project paths can't be .west.

manifest:
projects:
- name: nope
url: ignore-me
path: .west
7 changes: 7 additions & 0 deletions tests/manifests/invalid_project_in_west_reldir.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Project paths can't be .west after normalization.

manifest:
projects:
- name: nope
url: ignore-me
path: foo/../.west
7 changes: 7 additions & 0 deletions tests/manifests/invalid_project_in_west_relsubdir.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Project paths can't be in .west normalized.

manifest:
projects:
- name: nope
url: ignore-me
path: foo/../.west/some/path
7 changes: 7 additions & 0 deletions tests/manifests/invalid_project_in_west_subdir.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Project paths can't be in .west/.

manifest:
projects:
- name: nope
url: ignore-me
path: .west/some/path

0 comments on commit 714dfad

Please sign in to comment.