Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
78658983
Commit
78658983
authored
Jun 16, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve test for exclude/remove from list
parent
3d90981d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
test_list_exclude.sh
tests/test_list_exclude.sh
+19
-0
No files found.
tests/test_list_exclude.sh
View file @
78658983
...
@@ -15,3 +15,22 @@ check()
...
@@ -15,3 +15,22 @@ check()
check 1
"field3 field4"
"
`
do_exclude_list
"
$LIST1
"
"
$LIST2
"
`
"
check 1
"field3 field4"
"
`
do_exclude_list
"
$LIST1
"
"
$LIST2
"
`
"
check 2
""
"
`
do_exclude_list
"
$LIST2
"
"
$LIST1
"
`
"
check 2
""
"
`
do_exclude_list
"
$LIST2
"
"
$LIST1
"
`
"
check 3
"field"
"
`
do_exclude_list
"
$LIST1
"
"
$LIST3
"
`
"
check 3
"field"
"
`
do_exclude_list
"
$LIST1
"
"
$LIST3
"
`
"
check 3
"field2 field4"
"
`
do_exclude_list
"field1 field3"
"
$LIST2
"
`
"
#check 4 "" "`do_exclude_list "field3 field[24]" "$LIST2"`"
check 5
"
$LIST2
"
"
`
do_exclude_list
"fiel"
"
$LIST2
"
`
"
check 6
"
$LIST2
"
"
`
do_exclude_list
""
"
$LIST2
"
`
"
check
"reg 1"
"field1"
"
`
regexp_exclude_list
"field3 field[24]"
"
$LIST2
"
`
"
check
"reg 2"
"
$LIST2
"
"
`
regexp_exclude_list
"fiel"
"
$LIST2
"
`
"
check
"reg 3"
"field1 field3"
"
`
regexp_exclude_list
"field[24]"
"
$LIST2
"
`
"
check
"remove 1"
"field1"
"
`
remove_from_list
"field2"
"
$LIST1
"
`
"
check
"remove 2"
""
"
`
remove_from_list
"field."
"
$LIST2
"
`
"
check
"remove 3"
"list"
"
`
remove_from_list
"field."
"
$LIST2
list"
`
"
check
"remove 3"
"field2 field4"
"
`
remove_from_list
"field[13]"
"
$LIST2
"
`
"
check
"remove 4"
"
$LIST2
"
"
`
remove_from_list
"fiel"
"
$LIST2
"
`
"
#check "remove 5" "field4" "`remove_from_list "field2 field[13]" "$LIST2"`"
check
"remove 6"
"
$LIST2
"
"
`
remove_from_list
""
"
$LIST2
"
`
"
check
"strip1"
"test"
"
`
strip_spaces
" test "
`
"
check
"strip2"
"test"
"
`
strip_spaces
"test "
`
"
check
"strip3"
"test"
"
`
strip_spaces
" test"
`
"
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