Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
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
Jacklull
k3s
Commits
48c1e83a
Commit
48c1e83a
authored
Oct 03, 2016
by
deads2k
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
specify flags to test-integration
parent
3933ddbc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
test-integration.sh
hack/make-rules/test-integration.sh
+14
-2
No files found.
hack/make-rules/test-integration.sh
View file @
48c1e83a
...
...
@@ -62,7 +62,7 @@ runTests() {
# TODO: Re-enable race detection when we switch to a thread-safe etcd client
# KUBE_RACE="-race"
make
-C
"
${
KUBE_ROOT
}
"
test
\
WHAT
=
"
$(
kube::test::find_integration_test_dirs
${
2
-
}
|
paste
-sd
' '
-
)
"
\
WHAT
=
"
$(
kube::test::find_integration_test_dirs
${
2
-
}
|
paste
-sd
' '
-
)
$(
echo
${
@
:3
})
"
\
KUBE_GOFLAGS
=
"
${
KUBE_GOFLAGS
:-}
-short=true -tags 'integration no-docker'"
\
KUBE_TEST_ARGS
=
"
${
KUBE_TEST_ARGS
:-}
--vmodule=garbage*collector*=6 --alsologtostderr=true"
\
KUBE_RACE
=
""
\
...
...
@@ -90,8 +90,20 @@ if [[ -n "${KUBE_TEST_ARGS}" ]]; then
runTests v1
fi
# Pass arguments that begin with "-" and move them to goflags.
what_flags
=()
for
arg
in
"
$@
"
;
do
if
[[
"
${
arg
}
"
==
-
*
]]
;
then
what_flags+
=(
"
${
arg
}
"
)
fi
done
if
[[
"
${#
what_flags
[@]
}
"
-eq
0
]]
;
then
what_flags
=
''
fi
# Convert the CSV to an array of API versions to test
IFS
=
';'
read
-a
apiVersions
<<<
"
${
KUBE_TEST_API_VERSIONS
}
"
for
apiVersion
in
"
${
apiVersions
[@]
}
"
;
do
runTests
"
${
apiVersion
}
"
"
${
1
-
}
"
runTests
"
${
apiVersion
}
"
"
${
1
-
}
"
"
${
what_flags
[@]
}
"
done
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