diff options
author | Ben Pfaff <blp@nicira.com> | 2012-07-30 09:35:32 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2012-08-01 10:55:57 -0700 |
commit | 8c2296a6d97ffc29c0b253eab084e92a82c198b4 (patch) | |
tree | 0e7b7f5c916f2e22c3fa2144ec7e9ad05094a99c /tests/library.at | |
parent | f973f2af2fd4452c8e182caf6a4346cf2a2a394e (diff) | |
download | openvswitch-8c2296a6d97ffc29c0b253eab084e92a82c198b4.tar.gz |
tests: Slightly generalize utility function tests.
This will allow passing arguments in for an upcoming test.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'tests/library.at')
-rw-r--r-- | tests/library.at | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/library.at b/tests/library.at index dce69dea0..70660a256 100644 --- a/tests/library.at +++ b/tests/library.at @@ -100,10 +100,17 @@ nibble 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ]) AT_CLEANUP -AT_SETUP([test utility functions]) -AT_KEYWORDS([util]) -AT_CHECK([test-util]) -AT_CLEANUP +m4_foreach( + [testname], + [[ctz], + [log_2_floor], + [bitwise_copy], + [bitwise_zero], + [bitwise_one], + [bitwise_is_all_zeros]], + [AT_SETUP([testname[()] function]) + AT_CHECK([test-util testname], [0], [], []) + AT_CLEANUP]) AT_SETUP([test unix socket -- short pathname]) AT_CHECK([test-unix-socket x]) |