Skip to content

Commit

Permalink
Merge pull request #173 from Mirantis/ivan4th/move-network-tests-to-s…
Browse files Browse the repository at this point in the history
…eparate-directory

Move networking tests to separate directory
  • Loading branch information
jellonek authored Dec 22, 2016
2 parents 3cac75d + 37a7ba1 commit 4e1d3c8
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export GO15VENDOREXPERIMENT=1
export CGO_CFLAGS=$(CFLAGS)
export CGO_LDFLAGS=$(LDFLAGS) $(LIBS)

SUBDIRS = pkg/bolttools pkg/download pkg/libvirttools pkg/manager pkg/nettools tests/integration
SUBDIRS = pkg/bolttools pkg/download pkg/libvirttools pkg/manager pkg/nettools tests/integration tests/network

# FIXME: add back dockerfilelint.test
# (as of now, it requires Docker)
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ CFLAGS="$CFLAGS $glib_CFLAGS $libvirt_CFLAGS"
LDFLAGS="$LDFLAGS"
LIBS="$LIBS $glib_LIBS $libvirt_LIBS"

AC_CONFIG_FILES([Makefile pkg/bolttools/Makefile pkg/download/Makefile pkg/libvirttools/Makefile pkg/manager/Makefile pkg/nettools/Makefile tests/integration/Makefile])
AC_CONFIG_FILES([Makefile pkg/bolttools/Makefile pkg/download/Makefile pkg/libvirttools/Makefile pkg/manager/Makefile pkg/nettools/Makefile tests/integration/Makefile tests/network/Makefile])

AC_OUTPUT
16 changes: 16 additions & 0 deletions tests/network/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2016 Mirantis
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

check_SCRIPTS = go.test
TESTS = $(check_SCRIPTS)
6 changes: 6 additions & 0 deletions tests/network/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
This directory contains network tests that make use of network
namespaces and should not be mixed with non-network-namespace-aware
tests.

For more info, see containernetworking/cni#262, vishvananda/netns#17
etc.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package integration
package network

import (
"fmt"
Expand Down
3 changes: 3 additions & 0 deletions tests/network/go.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

go test -v .
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package integration
package network

import (
"bytes"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

package integration
package network

import (
"bytes"
Expand Down

0 comments on commit 4e1d3c8

Please sign in to comment.