forked from openvswitch/ovs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Autotest for the Open vSwitch test suite.
Autotest doesn't provide a lot of benefit by itself but it does allow us to easily put a wrapper around each test by using a macro to invoke it. (To do that with the built-in Automake test framework you need to write or generate a separate wrapper script for each test, which is a pain.) The next commit will take advantage of this possibility by adding support for code coverage analysis.
- Loading branch information
Showing
24 changed files
with
408 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ | |
/depcomp | ||
/install-sh | ||
/missing | ||
/package.m4 | ||
/stamp-h1 | ||
Module.symvers | ||
TAGS | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,13 +12,14 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
AC_PREREQ(2.60) | ||
AC_PREREQ(2.63) | ||
AC_INIT(openvswitch, 0.90.3, [email protected]) | ||
NX_BUILDNR | ||
AC_CONFIG_SRCDIR([datapath/datapath.c]) | ||
AC_CONFIG_MACRO_DIR([m4]) | ||
AC_CONFIG_AUX_DIR([build-aux]) | ||
AC_CONFIG_HEADERS([config.h]) | ||
AC_CONFIG_TESTDIR([tests]) | ||
AM_INIT_AUTOMAKE | ||
|
||
AC_PROG_CC | ||
|
@@ -84,6 +85,7 @@ AC_CONFIG_FILES([Makefile | |
datapath/Makefile | ||
datapath/linux-2.6/Kbuild | ||
datapath/linux-2.6/Makefile | ||
datapath/linux-2.6/Makefile.main]) | ||
datapath/linux-2.6/Makefile.main | ||
tests/atlocal]) | ||
|
||
AC_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ | |
/test-list | ||
/test-stp | ||
/test-type-props | ||
/testsuite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# -*- shell-script -*- | ||
PERL='@PERL@' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
AT_BANNER([library unit tests]) | ||
|
||
AT_SETUP([test flow extractor]) | ||
AT_CHECK([$PERL `which flowgen.pl` >/dev/null 3>flows 4>pcap]) | ||
AT_CHECK([test-flows <flows 3<pcap], [0], [checked 247 packets, 0 errors | ||
]) | ||
AT_CLEANUP | ||
|
||
AT_SETUP([test TCP/IP checksumming]) | ||
AT_CHECK([test-csum], [0], [ignore]) | ||
AT_CLEANUP | ||
|
||
AT_SETUP([test flow classifier]) | ||
AT_CHECK([test-classifier], [0], [ignore]) | ||
AT_CLEANUP | ||
|
||
AT_SETUP([test hash functions]) | ||
AT_CHECK([test-hash], [0], [ignore]) | ||
AT_CLEANUP | ||
|
||
AT_SETUP([test hash map]) | ||
AT_CHECK([test-hmap], [0], [ignore]) | ||
AT_CLEANUP | ||
|
||
AT_SETUP([test linked lists]) | ||
AT_CHECK([test-list], [0], [ignore]) | ||
AT_CLEANUP | ||
|
||
AT_SETUP([test SHA-1]) | ||
AT_CHECK([test-sha1], [0], [ignore]) | ||
AT_CLEANUP | ||
|
||
AT_SETUP([test type properties]) | ||
AT_CHECK([test-type-props], [0], [ignore]) | ||
AT_CLEANUP | ||
|
||
AT_SETUP([test vconn library]) | ||
AT_CHECK([test-vconn], [0], [ignore]) | ||
AT_CLEANUP |
Oops, something went wrong.