Skip to content

Commit

Permalink
tests: add 38_duplicate_module_name
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed Dec 15, 2023
1 parent 728f6b3 commit 2f5a591
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/tests/38_duplicate_module_name/EXPECTED_EXIT_CODE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
1 change: 1 addition & 0 deletions src/tests/38_duplicate_module_name/EXPECTED_STDERR
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
laze: error: "laze-project.yml": module "some-module", context "default": module name already used in "laze-project.yml"
3 changes: 3 additions & 0 deletions src/tests/38_duplicate_module_name/laze-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
modules:
- name: some-module
- name: some-module
10 changes: 10 additions & 0 deletions src/tests/38_duplicate_module_name/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

. ../test-common.sh

cleanup
build

echo TEST_OK

cleanup

0 comments on commit 2f5a591

Please sign in to comment.