/freebsd/crypto/openssl/test/ |
H A D | test_test.c | 22 #define TEST(expected, test) test_case((expected), #test, (test)) macro 35 if (!TEST(1, TEST_int_eq(1, 1)) in test_int() 36 || !TEST(0, TEST_int_eq(1, -1)) in test_int() 37 || !TEST(1, TEST_int_ne(1, 2)) in test_int() 38 || !TEST(0, TEST_int_ne(3, 3)) in test_int() 39 || !TEST(1, TEST_int_lt(4, 9)) in test_int() 40 || !TEST(0, TEST_int_lt(9, 4)) in test_int() 41 || !TEST(1, TEST_int_le(4, 9)) in test_int() 42 || !TEST(1, TEST_int_le(5, 5)) in test_int() 43 || !TEST(0, TEST_int_le(9, 4)) in test_int() [all …]
|
/freebsd/contrib/netbsd-tests/lib/libc/net/getaddrinfo/ |
H A D | t_getaddrinfo.sh | 69 TEST=$(atf_get_srcdir)/h_gai 71 ( $TEST ::1 http 72 $TEST 127.0.0.1 http 73 $TEST localhost http 74 $TEST ::1 tftp 75 $TEST 127.0.0.1 tftp 76 $TEST localhost tftp 77 $TEST ::1 echo 78 $TEST 127.0.0.1 echo 79 $TEST localhost echo ) > out 2>&1 [all …]
|
/freebsd/contrib/googletest/googletest/test/ |
H A D | googletest-failfast-unittest_.cc | 59 TEST(HasSimpleTest, Test0) {} in TEST() function 61 TEST(HasSimpleTest, Test1) { FAIL() << "Expected failure."; } in TEST() function 63 TEST(HasSimpleTest, Test2) { FAIL() << "Expected failure."; } in TEST() function 65 TEST(HasSimpleTest, Test3) { FAIL() << "Expected failure."; } in TEST() function 67 TEST(HasSimpleTest, Test4) { FAIL() << "Expected failure."; } in TEST() function 71 TEST(HasDisabledTest, Test0) {} in TEST() function 73 TEST(HasDisabledTest, DISABLED_Test1) { FAIL() << "Expected failure."; } in TEST() function 75 TEST(HasDisabledTest, Test2) { FAIL() << "Expected failure."; } in TEST() function 77 TEST(HasDisabledTest, Test3) { FAIL() << "Expected failure."; } in TEST() function 79 TEST(HasDisabledTest, Test4) { FAIL() << "Expected failure."; } in TEST() function [all …]
|
H A D | googletest-printers-test.cc | 322 TEST(PrintEnumTest, AnonymousEnum) { in TEST() function 327 TEST(PrintEnumTest, EnumWithoutPrinter) { in TEST() function 332 TEST(PrintEnumTest, EnumWithStreaming) { in TEST() function 337 TEST(PrintEnumTest, EnumWithPrintTo) { in TEST() function 344 TEST(PrintClassTest, AbslStringify) { EXPECT_EQ("(10, 20)", Print(Point())); } in TEST() function 349 TEST(PrintClassTest, BiggestIntConvertible) { in TEST() function 356 TEST(PrintCharTest, PlainChar) { in TEST() function 376 TEST(PrintCharTest, SignedChar) { in TEST() function 382 TEST(PrintCharTest, UnsignedChar) { in TEST() function 387 TEST(PrintCharTest, Char16) { EXPECT_EQ("U+0041", Print(u'A')); } in TEST() function [all …]
|
H A D | googletest-filepath-test.cc | 75 TEST(GetCurrentDirTest, ReturnsCurrentDir) { 99 TEST(IsEmptyTest, ReturnsTrueForEmptyPath) { in TEST() function 103 TEST(IsEmptyTest, ReturnsFalseForNonEmptyPath) { in TEST() function 111 TEST(RemoveDirectoryNameTest, WhenEmptyName) { in TEST() function 116 TEST(RemoveDirectoryNameTest, ButNoDirectory) { in TEST() function 121 TEST(RemoveDirectoryNameTest, RootFileShouldGiveFileName) { in TEST() function 127 TEST(RemoveDirectoryNameTest, WhereThereIsNoFileName) { in TEST() function 133 TEST(RemoveDirectoryNameTest, ShouldGiveFileName) { in TEST() function 140 TEST(RemoveDirectoryNameTest, ShouldAlsoGiveFileName) { in TEST() function 153 TEST(RemoveDirectoryNameTest, RootFileShouldGiveFileNameForAlternateSeparator) { in TEST() function [all …]
|
H A D | googletest-shuffle-test_.cc | 50 TEST(ADeathTest, A) {} in TEST() function 51 TEST(ADeathTest, B) {} in TEST() function 52 TEST(ADeathTest, C) {} in TEST() function 54 TEST(B, A) {} in TEST() function 55 TEST(B, B) {} in TEST() function 56 TEST(B, C) {} in TEST() function 57 TEST(B, DISABLED_D) {} in TEST() function 58 TEST(B, DISABLED_E) {} in TEST() function 60 TEST(BDeathTest, A) {} in TEST() function 61 TEST(BDeathTest, B) {} in TEST() function [all …]
|
H A D | googletest-port-test.cc | 57 TEST(IsXDigitTest, WorksForNarrowAscii) { in TEST() function 70 TEST(IsXDigitTest, ReturnsFalseForNarrowNonAscii) { in TEST() function 75 TEST(IsXDigitTest, WorksForWideAscii) { in TEST() function 88 TEST(IsXDigitTest, ReturnsFalseForWideNonAscii) { in TEST() function 112 TEST(ImplicitCastTest, ConvertsPointers) { in TEST() function 117 TEST(ImplicitCastTest, CanUseInheritance) { in TEST() function 135 TEST(ImplicitCastTest, CanUseNonConstCastOperator) { in TEST() function 154 TEST(ImplicitCastTest, CanUseConstCastOperatorOnConstValues) { in TEST() function 179 TEST(ImplicitCastTest, CanSelectBetweenConstAndNonConstCasrAppropriately) { in TEST() function 200 TEST(ImplicitCastTest, CanUseImplicitConstructor) { in TEST() function [all …]
|
H A D | googletest-filter-unittest_.cc | 53 TEST(BarTest, TestOne) {} in TEST() function 55 TEST(BarTest, TestTwo) {} in TEST() function 57 TEST(BarTest, TestThree) {} in TEST() function 59 TEST(BarTest, DISABLED_TestFour) { FAIL() << "Expected failure."; } in TEST() function 61 TEST(BarTest, DISABLED_TestFive) { FAIL() << "Expected failure."; } in TEST() function 65 TEST(BazTest, TestOne) { FAIL() << "Expected failure."; } in TEST() function 67 TEST(BazTest, TestA) {} in TEST() function 69 TEST(BazTest, TestB) {} in TEST() function 71 TEST(BazTest, DISABLED_TestC) { FAIL() << "Expected failure."; } in TEST() function 75 TEST(HasDeathTest, Test1) { EXPECT_DEATH_IF_SUPPORTED(exit(1), ".*"); } in TEST() function [all …]
|
H A D | googletest-message-test.cc | 62 TEST(MessageTest, DefaultConstructor) { in TEST() function 68 TEST(MessageTest, CopyConstructor) { in TEST() function 75 TEST(MessageTest, ConstructsFromCString) { in TEST() function 81 TEST(MessageTest, StreamsFloat) { in TEST() function 89 TEST(MessageTest, StreamsDouble) { in TEST() function 99 TEST(MessageTest, StreamsPointer) { in TEST() function 106 TEST(MessageTest, StreamsNullPointer) { in TEST() function 112 TEST(MessageTest, StreamsCString) { in TEST() function 117 TEST(MessageTest, StreamsNullCString) { in TEST() function 123 TEST(MessageTest, StreamsString) { in TEST() function [all …]
|
/freebsd/usr.sbin/etcupdate/tests/ |
H A D | tzsetup_test.sh | 64 TEST=$WORKDIR/test 72 rm -rf $OLD $NEW $TEST $CONFLICTS 73 mkdir -p $OLD $NEW $TEST 74 mkdir -p $TEST/etc 75 mkdir -p $TEST/var/db 76 mkdir -p $TEST/usr/share/zoneinfo 79 echo "foo" > $TEST/usr/share/zoneinfo/foo 86 if [ -e $TEST/$1 -o -L $TEST/$1 ]; then 98 if ! [ -L $TEST/$1 ]; then 102 val=`readlink $TEST/$1` [all …]
|
H A D | conflicts_test.sh | 64 TEST=$WORKDIR/test 72 rm -rf $OLD $NEW $TEST $CONFLICTS 73 mkdir -p $OLD/etc $NEW/etc $TEST/etc 85 cat > $TEST/etc/login.conf <<EOF 91 $COMMAND -r -d $WORKDIR -D $TEST >/dev/null 99 rm -rf $OLD $NEW $TEST $CONFLICTS 100 mkdir -p $OLD/etc/mail $NEW/etc/mail $TEST/etc/mail 121 cat > $TEST/etc/mail/aliases <<EOF 129 $COMMAND -r -d $WORKDIR -D $TEST >/dev/null 135 if [ -e $TEST/$1 -o -L $TEST/$1 ]; then [all …]
|
H A D | fbsdid_test.sh | 64 TEST=$WORKDIR/test 86 rm -rf $OLD $NEW $TEST $CONFLICTS 87 mkdir -p $OLD $NEW $TEST 92 store_id $TEST/remove ": head/remove 12345 jhb " 98 store_id $TEST/old ": head/old 12000 jhb " 99 for i in $OLD $TEST; do 114 store_id $TEST/already ": src/already,v 1.2 jhb Exp " 119 for i in $NEW $TEST; do 129 store_id $TEST/add "" 136 store_id $TEST/conflict "" [all …]
|
H A D | ignore_test.sh | 64 TEST=$WORKDIR/test 72 rm -rf $OLD $NEW $TEST $CONFLICTS 73 mkdir -p $OLD $NEW $TEST 75 for i in $OLD $NEW $TEST; do 82 for i in $OLD $TEST; do 86 for i in $OLD $TEST; do 91 for i in $OLD $TEST; do 100 if [ -e $TEST/$1 -o -L $TEST/$1 ]; then 109 if ! [ -e $TEST/$1 -o -L $TEST/$1 ]; then 118 if ! [ -d $TEST/$1 ]; then [all …]
|
H A D | tests_test.sh | 64 TEST=$WORKDIR/test 73 rm -rf $OLD $NEW $TEST $CONFLICTS 74 mkdir -p $OLD/etc $NEW/etc $TEST/etc 101 $TEST/$i/$j/$k 107 for i in $OLD $NEW $TEST; do 129 echo "bar" > $TEST/equal/difftype/difftype/fifo 130 ln -s "test" $TEST/equal/difftype/difftype/fromdir 137 ln -s "bar" $TEST/equal/difflinks/difflinks/link 144 echo "bar" > $TEST/equal/difffiles/difffiles/file 148 for i in $OLD $TEST; do [all …]
|
H A D | always_test.sh | 64 TEST=$WORKDIR/test 75 rm -rf $OLD $NEW $TEST $CONFLICTS 81 $TEST/$i/$j/$k 97 mkdir $TEST/first/difftype/second/fifo 102 ln -s "test link" $TEST/first/difflinks/second/link 107 echo "bar" > $TEST/first/difffiles/second/file 113 mkfifo $TEST/second/second/difftype/dir 118 ln -s "test link" $TEST/second/second/difflinks/link 123 echo "test" > $TEST/second/second/difffiles/file 135 echo "foo" > $TEST/difftype/difftype/difftype/one [all …]
|
/freebsd/contrib/googletest/googlemock/test/ |
H A D | gmock-nice-strict_test.cc | 145 TEST(RawMockTest, WarningForUninterestingCall) { in TEST() function 162 TEST(RawMockTest, WarningForUninterestingCallAfterDeath) { in TEST() function 180 TEST(RawMockTest, InfoForUninterestingCall) { in TEST() function 193 TEST(RawMockTest, IsNaggy_IsNice_IsStrict) { in TEST() function 201 TEST(NiceMockTest, NoWarningForUninterestingCall) { in TEST() function 212 TEST(NiceMockTest, NoWarningForUninterestingCallAfterDeath) { in TEST() function 225 TEST(NiceMockTest, InfoForUninterestingCall) { in TEST() function 241 TEST(NiceMockTest, AllowsExpectedCall) { in TEST() function 251 TEST(NiceMockTest, ThrowsExceptionForUnknownReturnTypes) { in TEST() function 266 TEST(NiceMockTest, UnexpectedCallFails) { in TEST() function [all …]
|
H A D | gmock-internal-utils_test.cc | 73 TEST(JoinAsKeyValueTupleTest, JoinsEmptyTuple) { in TEST() function 77 TEST(JoinAsKeyValueTupleTest, JoinsOneTuple) { in TEST() function 81 TEST(JoinAsKeyValueTupleTest, JoinsTwoTuple) { in TEST() function 85 TEST(JoinAsKeyValueTupleTest, JoinsTenTuple) { in TEST() function 92 TEST(ConvertIdentifierNameToWordsTest, WorksWhenNameContainsNoWord) { in TEST() function 98 TEST(ConvertIdentifierNameToWordsTest, WorksWhenNameContainsDigits) { in TEST() function 105 TEST(ConvertIdentifierNameToWordsTest, WorksWhenNameContainsCamelCaseWords) { in TEST() function 113 TEST(ConvertIdentifierNameToWordsTest, WorksWhenNameContains_SeparatedWords) { in TEST() function 120 TEST(ConvertIdentifierNameToWordsTest, WorksWhenNameIsMixture) { in TEST() function 126 TEST(GetRawPointerTest, WorksForSmartPointers) { in TEST() function [all …]
|
H A D | gmock_link_test.h | 248 TEST(LinkTest, TestReturnVoid) { in TEST() function 256 TEST(LinkTest, TestReturn) { in TEST() function 265 TEST(LinkTest, TestReturnNull) { in TEST() function 273 TEST(LinkTest, TestReturnRef) { in TEST() function 282 TEST(LinkTest, TestAssign) { in TEST() function 291 TEST(LinkTest, TestSetArgPointee) { in TEST() function 300 TEST(LinkTest, TestSetArrayArgument) { in TEST() function 313 TEST(LinkTest, TestSetErrnoAndReturn) { in TEST() function 325 TEST(LinkTest, TestInvoke) { in TEST() function 337 TEST(LinkTest, TestInvokeWithoutArgs) { in TEST() function [all …]
|
H A D | gmock-matchers-containers_test.cc | 72 TEST(ContainsTest, WorksWithMoveOnly) { in TEST() function 81 TEST(ElementsAreTest, HugeMatcher) { in TEST() function 90 TEST(ElementsAreTest, HugeMatcherStr) { in TEST() function 99 TEST(ElementsAreTest, HugeMatcherUnordered) { in TEST() function 109 TEST(MatcherAssertionTest, WorksWhenMatcherIsSatisfied) { in TEST() function 118 TEST(MatcherAssertionTest, WorksWhenMatcherIsNotSatisfied) { in TEST() function 139 TEST(MatcherAssertionTest, WorksForByRefArguments) { in TEST() function 155 TEST(MatcherAssertionTest, WorksForMonomorphicMatcher) { in TEST() function 174 TEST(PointeeTest, RawPointer) { in TEST() function 184 TEST(PointeeTest, RawPointerToConst) { in TEST() function [all …]
|
H A D | gmock-matchers-comparisons_test.cc | 59 TEST(MatchResultListenerTest, StreamingWorks) { in TEST() function 75 TEST(MatchResultListenerTest, CanAccessUnderlyingStream) { in TEST() function 82 TEST(MatchResultListenerTest, IsInterestedWorks) { in TEST() function 107 TEST(MatcherInterfaceTest, CanBeImplementedUsingPublishedAPI) { in TEST() function 130 TEST(MatcherInterfaceTest, CanBeImplementedUsingNewAPI) { in TEST() function 141 TEST(MatcherTest, CanBeDefaultConstructed) { Matcher<double> m; } in TEST() function 144 TEST(MatcherTest, CanBeConstructedFromMatcherInterface) { in TEST() function 152 TEST(MatcherTest, CanBeImplicitlyConstructedFromValue) { in TEST() function 159 TEST(MatcherTest, CanBeImplicitlyConstructedFromNULL) { in TEST() function 173 TEST(MatcherTest, CanBeConstructedFromUndefinedVariable) { in TEST() function [all …]
|
H A D | gmock-more-actions_test.cc | 203 TEST(InvokeTest, Nullary) { in TEST() function 209 TEST(InvokeTest, Unary) { in TEST() function 216 TEST(InvokeTest, Binary) { in TEST() function 223 TEST(InvokeTest, Ternary) { in TEST() function 229 TEST(InvokeTest, FunctionThatTakes4Arguments) { in TEST() function 235 TEST(InvokeTest, FunctionThatTakes5Arguments) { in TEST() function 241 TEST(InvokeTest, FunctionThatTakes6Arguments) { in TEST() function 252 TEST(InvokeTest, FunctionThatTakes7Arguments) { in TEST() function 263 TEST(InvokeTest, FunctionThatTakes8Arguments) { in TEST() function 274 TEST(InvokeTest, FunctionThatTakes9Arguments) { in TEST() function [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/rtsan/tests/ |
H A D | rtsan_test_interceptors.cpp | 68 TEST(TestRtsanInterceptors, MallocDiesWhenRealtime) { in TEST() function 74 TEST(TestRtsanInterceptors, ReallocDiesWhenRealtime) { in TEST() function 82 TEST(TestRtsanInterceptors, ReallocfDiesWhenRealtime) { in TEST() function 90 TEST(TestRtsanInterceptors, VallocDiesWhenRealtime) { in TEST() function 97 TEST(TestRtsanInterceptors, AlignedAllocDiesWhenRealtime) { in TEST() function 105 TEST(TestRtsanInterceptors, FreeDiesWhenRealtime) { in TEST() function 116 TEST(TestRtsanInterceptors, FreeSurvivesWhenRealtimeIfArgumentIsNull) { in TEST() function 121 TEST(TestRtsanInterceptors, PosixMemalignDiesWhenRealtime) { in TEST() function 131 TEST(TestRtsanInterceptors, MemalignDiesWhenRealtime) { in TEST() function 139 TEST(TestRtsanInterceptors, PvallocDiesWhenRealtime) { in TEST() function [all …]
|
H A D | rtsan_test_functional.cpp | 43 TEST(TestRtsan, VectorPushBackAllocationDiesWhenRealtime) { in TEST() function 52 TEST(TestRtsan, DestructionOfObjectOnHeapDiesWhenRealtime) { in TEST() function 61 TEST(TestRtsan, SleepingAThreadDiesWhenRealtime) { in TEST() function 67 TEST(TestRtsan, IfstreamCreationDiesWhenRealtime) { in TEST() function 74 TEST(TestRtsan, OfstreamCreationDiesWhenRealtime) { in TEST() function 81 TEST(TestRtsan, LockingAMutexDiesWhenRealtime) { in TEST() function 88 TEST(TestRtsan, UnlockingAMutexDiesWhenRealtime) { in TEST() function 98 TEST(TestRtsan, LockingASharedMutexDiesWhenRealtime) { in TEST() function 105 TEST(TestRtsan, UnlockingASharedMutexDiesWhenRealtime) { in TEST() function 113 TEST(TestRtsan, SharedLockingASharedMutexDiesWhenRealtime) { in TEST() function [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/orc/tests/unit/ |
H A D | endian_test.cpp | 20 TEST(Endian, ByteSwap_32) { in TEST() function 25 TEST(Endian, ByteSwap_64) { in TEST() function 32 TEST(Endian, getSwappedBytes_UnsignedRoundTrip) { in TEST() function 56 TEST(Endian, getSwappedBytes_SignedRoundTrip) { in TEST() function 94 TEST(Endian, getSwappedBytes_uint8_t) { in TEST() function 98 TEST(Endian, getSwappedBytes_uint16_t) { in TEST() function 102 TEST(Endian, getSwappedBytes_uint32_t) { in TEST() function 106 TEST(Endian, getSwappedBytes_uint64_t) { in TEST() function 111 TEST(Endian, getSwappedBytes_int8_t) { in TEST() function 115 TEST(Endian, getSwappedBytes_int16_t) { in TEST() function [all …]
|
H A D | error_test.cpp | 52 TEST(Error, CheckedSuccess) { in TEST() function 58 TEST(Error, ConsumeSuccess) { consumeError(Error::success()); } in TEST() function 60 TEST(Error, ConsumeError) { in TEST() function 69 TEST(Error, UncheckedSuccess) { in TEST() function 76 TEST(Error, CheckedButUnhandledError) { in TEST() function 87 TEST(Error, BasicErrorCast) { in TEST() function 130 TEST(Error, ErrorAsOutParameterChecked) { in TEST() function 137 TEST(Error, ErrorAsOutParameterUnchecked) { in TEST() function 148 TEST(Error, IsAHandling) { in TEST() function 165 TEST(Error, StringError) { in TEST() function [all …]
|