git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ofproto: Fix potential leak during flow mods.
[sliver-openvswitch.git]
/
tests
/
library.at
diff --git
a/tests/library.at
b/tests/library.at
index
650fef3
..
8aeec48
100644
(file)
--- a/
tests/library.at
+++ b/
tests/library.at
@@
-2,35
+2,44
@@
AT_BANNER([library unit tests])
AT_SETUP([test flow extractor])
AT_CHECK([$PERL `which flowgen.pl` >/dev/null 3>flows 4>pcap])
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_CHECK([
ovstest
test-flows <flows 3<pcap], [0], [checked 247 packets, 0 errors
])
AT_CLEANUP
AT_SETUP([test TCP/IP checksumming])
])
AT_CLEANUP
AT_SETUP([test TCP/IP checksumming])
-AT_CHECK([
test-csum], [0], [....#....#....
##................................#................................#
+AT_CHECK([
ovstest test-csum], [0], [....#....#....#
##................................#................................#
])
AT_CLEANUP
AT_SETUP([test hash functions])
])
AT_CLEANUP
AT_SETUP([test hash functions])
-AT_CHECK([test-hash])
+AT_CHECK([
ovstest
test-hash])
AT_CLEANUP
AT_SETUP([test hash map])
AT_CLEANUP
AT_SETUP([test hash map])
-AT_CHECK([test-hmap], [0], [.........
+AT_CHECK([
ovstest
test-hmap], [0], [.........
])
AT_CLEANUP
])
AT_CLEANUP
+AT_SETUP([test hash index])
+AT_CHECK([ovstest test-hindex], [0], [.....................
+])
+AT_CLEANUP
+
+AT_SETUP([test atomic operations])
+AT_CHECK([ovstest test-atomic])
+AT_CLEANUP
+
AT_SETUP([test linked lists])
AT_SETUP([test linked lists])
-AT_CHECK([test-list], [0], [..
+AT_CHECK([
ovstest
test-list], [0], [..
])
AT_CLEANUP
AT_SETUP([test packet library])
])
AT_CLEANUP
AT_SETUP([test packet library])
-AT_CHECK([test-packets])
+AT_CHECK([
ovstest
test-packets])
AT_CLEANUP
AT_SETUP([test SHA-1])
AT_CLEANUP
AT_SETUP([test SHA-1])
-AT_CHECK([test-sha1], [0], [.........
+AT_CHECK([
ovstest
test-sha1], [0], [.........
])
AT_CLEANUP
])
AT_CLEANUP
@@
-45,11
+54,11
@@
AT_CLEANUP
AT_SETUP([test byte order conversion])
AT_KEYWORDS([byte order])
AT_SETUP([test byte order conversion])
AT_KEYWORDS([byte order])
-AT_CHECK([test-byte-order])
+AT_CHECK([
ovstest
test-byte-order])
AT_CLEANUP
AT_SETUP([test random number generator])
AT_CLEANUP
AT_SETUP([test random number generator])
-AT_CHECK([test-random], [0], [dnl
+AT_CHECK([
ovstest
test-random], [0], [dnl
average=7fa2014f
bit 0 1
average=7fa2014f
bit 0 1
@@
-103,19
+112,23
@@
AT_CLEANUP
m4_foreach(
[testname],
[[ctz],
m4_foreach(
[testname],
[[ctz],
- [popcount],
+ [clz],
+ [round_up_pow2],
+ [round_down_pow2],
+ [count_1bits],
[log_2_floor],
[bitwise_copy],
[bitwise_zero],
[bitwise_one],
[log_2_floor],
[bitwise_copy],
[bitwise_zero],
[bitwise_one],
- [bitwise_is_all_zeros]],
+ [bitwise_is_all_zeros],
+ [ovs_scan]],
[AT_SETUP([testname[()] function])
AT_KEYWORDS([testname])
[AT_SETUP([testname[()] function])
AT_KEYWORDS([testname])
- AT_CHECK([test-util testname], [0], [], [])
+ AT_CHECK([
ovstest
test-util testname], [0], [], [])
AT_CLEANUP])
AT_SETUP([test unix socket, short pathname - C])
AT_CLEANUP])
AT_SETUP([test unix socket, short pathname - C])
-AT_CHECK([test-unix-socket x])
+AT_CHECK([
ovstest
test-unix-socket x])
AT_CLEANUP
dnl Unix sockets with long names are problematic because the name has to
AT_CLEANUP
dnl Unix sockets with long names are problematic because the name has to
@@
-124,12
+137,11
@@
dnl is about 100 bytes. On Linux, we work around this by indirecting through
dnl a directory fd using /proc/self/fd/<dirfd>. We do not have a workaround
dnl for other platforms, so we skip the test there.
AT_SETUP([test unix socket, long pathname - C])
dnl a directory fd using /proc/self/fd/<dirfd>. We do not have a workaround
dnl for other platforms, so we skip the test there.
AT_SETUP([test unix socket, long pathname - C])
-AT_SKIP_IF([test ! -d /proc/self/fd])
dnl Linux has a 108 byte limit; this is 150 bytes long.
longname=012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
mkdir $longname
cd $longname
dnl Linux has a 108 byte limit; this is 150 bytes long.
longname=012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
mkdir $longname
cd $longname
-AT_CHECK([test-unix-socket ../$longname/socket socket])
+AT_CHECK([
ovstest
test-unix-socket ../$longname/socket socket])
AT_CLEANUP
AT_SETUP([test unix socket, short pathname - Python])
AT_CLEANUP
AT_SETUP([test unix socket, short pathname - Python])
@@
-144,7
+156,6
@@
dnl a directory fd using /proc/self/fd/<dirfd>. We do not have a workaround
dnl for other platforms, so we skip the test there.
AT_SETUP([test unix socket, long pathname - Python])
AT_SKIP_IF([test $HAVE_PYTHON = no])
dnl for other platforms, so we skip the test there.
AT_SETUP([test unix socket, long pathname - Python])
AT_SKIP_IF([test $HAVE_PYTHON = no])
-AT_SKIP_IF([test ! -d /proc/self/fd])
dnl Linux has a 108 byte limit; this is 150 bytes long.
longname=012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
mkdir $longname
dnl Linux has a 108 byte limit; this is 150 bytes long.
longname=012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
mkdir $longname
@@
-154,7
+165,7
@@
AT_CLEANUP
AT_SETUP([ovs_assert])
OVS_LOGDIR=`pwd`; export OVS_LOGDIR
AT_SETUP([ovs_assert])
OVS_LOGDIR=`pwd`; export OVS_LOGDIR
-AT_CHECK([test-util -voff -vfile:info '-vPATTERN:file:%c|%p|%m' --log-file assert || kill -l $?],
+AT_CHECK([
ovstest
test-util -voff -vfile:info '-vPATTERN:file:%c|%p|%m' --log-file assert || kill -l $?],
[0], [ABRT
], [stderr])
[0], [ABRT
], [stderr])
@@
-170,3
+181,7
@@
AT_CHECK([sed 's/.*: //
])
AT_CLEANUP
])
AT_CLEANUP
+
+AT_SETUP([snprintf])
+AT_CHECK([ovstest test-util snprintf])
+AT_CLEANUP