X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Flibrary.at;h=ca5f29ca8f16b9c3cec7ef9471fd45fd66f23a02;hb=df89525eb0b20233cdc8a58e6a43bf9b8bfd84c5;hp=bbc5170ac56ff25218ee84d64da1d14e5f9372de;hpb=d27ce5292c63d864dfa727e061f63b06ca770e19;p=sliver-openvswitch.git diff --git a/tests/library.at b/tests/library.at index bbc5170ac..ca5f29ca8 100644 --- a/tests/library.at +++ b/tests/library.at @@ -2,35 +2,131 @@ AT_BANNER([library unit tests]) AT_SETUP([test flow extractor]) AT_CHECK([$PERL `which flowgen.pl` >/dev/null 3>flows 4>pcap]) -OVS_CHECK_LCOV([test-flows . We do not have a workaround +dnl for other platforms, so we skip the test there. +AT_SETUP([test unix socket -- long pathname]) +AT_CHECK([dnl + case `uname` in dnl ( + *[[lL]]inux*) + exit 0 + ;; dnl ( + *) + dnl Magic exit code to tell Autotest to skip this test. + exit 77 + ;; + esac +]) +dnl Linux has a 108 byte limit; this is 150 bytes long. +mkdir 012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 +cd 012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 +AT_CHECK([test-unix-socket ../012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/socket socket]) AT_CLEANUP