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
5c9df665
Commit
5c9df665
authored
Aug 26, 2016
by
deads2k
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
choose a particular directory test-integration
parent
6eb279ee
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
9 deletions
+16
-9
Makefile
Makefile
+5
-1
test-integration.sh
hack/make-rules/test-integration.sh
+3
-3
test-integration.sh
hack/test-integration.sh
+8
-5
No files found.
Makefile
View file @
5c9df665
...
...
@@ -119,11 +119,15 @@ check test: generated_files
# Build and run integration tests.
#
# Args:
# WHAT: Directory names to test. All *_test.go files under these
# directories will be run. If not specified, "everything" will be tested.
#
# Example:
# make test-integration
.PHONY
:
test-integration
test-integration
:
generated_files
hack/make-rules/test-integration.sh
hack/make-rules/test-integration.sh
$(WHAT)
# Build and run end-to-end tests.
#
...
...
hack/make-rules/test-integration.sh
View file @
5c9df665
...
...
@@ -40,7 +40,7 @@ KUBE_TEST_ARGS=${KUBE_TEST_ARGS:-}
kube::test::find_integration_test_dirs
()
{
(
cd
${
KUBE_ROOT
}
find
test
/integration
-name
'*_test.go'
-print0
\
find
test
/integration
/
${
1
-
}
-name
'*_test.go'
-print0
\
| xargs
-0n1
dirname
\
|
sort
-u
)
...
...
@@ -60,7 +60,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 |
paste
-sd
' '
-
)
"
\
WHAT
=
"
$(
kube::test::find_integration_test_dirs
${
2
-
}
|
paste
-sd
' '
-
)
"
\
KUBE_GOFLAGS
=
"
${
KUBE_GOFLAGS
:-}
-tags 'integration no-docker'"
\
KUBE_RACE
=
""
\
KUBE_TIMEOUT
=
"
${
KUBE_TIMEOUT
}
"
\
...
...
@@ -90,5 +90,5 @@ 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
}
"
runTests
"
${
apiVersion
}
"
"
${
1
-
}
"
done
hack/test-integration.sh
View file @
5c9df665
...
...
@@ -22,14 +22,17 @@ set -o pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
# For help output
ARGHELP
=
""
if
[[
"$#"
-gt
0
]]
;
then
ARGHELP
=
"WHAT='
$@
'"
fi
echo
"NOTE:
$0
has been replaced by 'make test-integration'"
echo
echo
"The equivalent of this invocation is: "
echo
" make test-integration"
echo
echo
echo
make
--no-print-directory
-C
"
${
KUBE_ROOT
}
"
test-integration
echo
" make test-integration
${
ARGHELP
}
"
echo
echo
make
--no-print-directory
-C
"
${
KUBE_ROOT
}
"
test-integration
make
--no-print-directory
-C
"
${
KUBE_ROOT
}
"
test-integration
WHAT
=
"
$*
"
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