-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/frontend/artifact_list_contents.py: Add coverage for symlinks
This will protect against regressions around listing symlinks. This patch adds a separate project subdir in tests/frontend, instead of continuing the bad practice of having all these tests share the test data in tests/frontend/project.
- Loading branch information
Showing
8 changed files
with
87 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
tests/frontend/artifact_list_contents/elements/import-bin.bst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
kind: import | ||
sources: | ||
- kind: local | ||
path: files/bin-files |
4 changes: 4 additions & 0 deletions
4
tests/frontend/artifact_list_contents/elements/import-links.bst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
kind: import | ||
sources: | ||
- kind: local | ||
path: files/files-and-links |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
kind: stack | ||
description: | | ||
|
||
Main stack target for the bst build test | ||
|
||
depends: | ||
- import-bin.bst | ||
- import-links.bst |
3 changes: 3 additions & 0 deletions
3
tests/frontend/artifact_list_contents/files/bin-files/usr/bin/hello
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
echo "Hello !" |
1 change: 1 addition & 0 deletions
1
tests/frontend/artifact_list_contents/files/files-and-links/basicfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
file contents |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Project config for frontend build test | ||
name: test | ||
min-version: 2.0 | ||
element-path: elements | ||
|
||
plugins: | ||
- origin: pip | ||
package-name: sample-plugins | ||
sources: | ||
- git |