Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
atools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Leo
atools
Commits
c5e71748
Commit
c5e71748
authored
May 22, 2019
by
Leo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for pkgname must have uppercase
parent
3ad92d93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
0 deletions
+57
-0
tests/apkbuild-lint.bats
tests/apkbuild-lint.bats
+57
-0
No files found.
tests/apkbuild-lint.bats
View file @
c5e71748
...
...
@@ -252,4 +252,61 @@ assert_match() {
assert_match "${lines[0]}" "builddir.*can be removed"
}
@test 'pkgname must not have uppercase characters' {
cat <<-"EOF" >$apkbuild
pkgname=foo
EOF
run $cmd $apkbuild
[[ $status -eq 0 ]]
cat <<-"EOF" >$apkbuild
pkgname=Foo
EOF
run $cmd $apkbuild
[[ $status -eq 1 ]]
assert_match "${lines[0]}" "pkgname must not have uppercase characters"
cat <<-"EOF" >$apkbuild
pkgname=fOo
EOF
run $cmd $apkbuild
[[ $status -eq 1 ]]
assert_match "${lines[0]}" "pkgname must not have uppercase characters"
cat <<-"EOF" >$apkbuild
pkgname=fOo
EOF
run $cmd $apkbuild
[[ $status -eq 1 ]]
assert_match "${lines[0]}" "pkgname must not have uppercase characters"
cat <<-"EOF" >$apkbuild
pkgname=FOO
EOF
run $cmd $apkbuild
[[ $status -eq 1 ]]
assert_match "${lines[0]}" "pkgname must not have uppercase characters"
cat <<-"EOF" >$apkbuild
pkgname=fOO
EOF
run $cmd $apkbuild
[[ $status -eq 1 ]]
assert_match "${lines[0]}" "pkgname must not have uppercase characters"
cat <<-"EOF" >$apkbuild
pkgname=FoO
EOF
run $cmd $apkbuild
[[ $status -eq 1 ]]
assert_match "${lines[0]}" "pkgname must not have uppercase characters"
}
# vim: noexpandtab
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment