1 /* 2 * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved. 3 * Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without modification, 6 * are permitted provided that the following conditions are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright notice, this list of 9 * conditions and the following disclaimer. 10 * 11 * 2. Redistributions in binary form must reproduce the above copyright notice, this list 12 * of conditions and the following disclaimer in the documentation and/or other materials 13 * provided with the distribution. 14 * 15 * 3. Neither the name of the copyright holder nor the names of its contributors may be used 16 * to endorse or promote products derived from this software without specific prior written 17 * permission. 18 * 19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 21 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 23 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 24 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 25 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 26 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 27 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 28 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 29 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 */ 31 #include <climits> 32 #include <gtest/gtest.h> 33 34 #include "It_test_IO.h" 35 36 char *g_ioTestPath = "/storage"; 37 38 using namespace testing::ext; 39 namespace OHOS { 40 class IoTest : public testing::Test { 41 public: SetUpTestCase(void)42 static void SetUpTestCase(void) {} TearDownTestCase(void)43 static void TearDownTestCase(void) {} 44 }; 45 46 #if defined(LOSCFG_USER_TEST_SMOKE) 47 /* * 48 * @tc.name: IT_TEST_IO_005 49 * @tc.desc: function for IoTest 50 * @tc.type: FUNC 51 * @tc.require: AR000EEMQ9 52 */ 53 HWTEST_F(IoTest, ItTestIo005, TestSize.Level0) 54 { 55 ItTestIo005(); 56 } 57 58 #ifdef LOSCFG_USER_TEST_FS_JFFS 59 /* * 60 * @tc.name: IT_TEST_IO_008 61 * @tc.desc: function for IoTest 62 * @tc.type: FUNC 63 * @tc.require: AR000EEMQ9 64 */ 65 HWTEST_F(IoTest, ItTestIo008, TestSize.Level0) 66 { 67 ItTestIo008(); 68 } 69 #endif 70 71 72 /* * 73 * @tc.name: IT_TEST_IO_010 74 * @tc.desc: function for IoTest 75 * @tc.type: FUNC 76 * @tc.require: AR000EEMQ9 77 */ 78 HWTEST_F(IoTest, ItTestIo010, TestSize.Level0) 79 { 80 ItTestIo010(); 81 } 82 83 /* * 84 * @tc.name: IT_TEST_IO_013 85 * @tc.desc: function for IoTest 86 * @tc.type: FUNC 87 * @tc.require: AR000EEMQ9 88 */ 89 HWTEST_F(IoTest, ItTestIo013, TestSize.Level0) 90 { 91 ItTestIo013(); 92 } 93 #endif 94 95 #if defined(LOSCFG_USER_TEST_FULL) 96 /* * 97 * @tc.name: IO_TEST_PPOLL_001 98 * @tc.desc: function for IoTest 99 * @tc.type: FUNC 100 * @tc.require: AR000EEMQ9 101 */ 102 HWTEST_F(IoTest, IO_TEST_PPOLL_001, TestSize.Level0) 103 { 104 IO_TEST_PPOLL_001(); 105 } 106 107 /* * 108 * @tc.name: IO_TEST_PPOLL_002 109 * @tc.desc: function for IoTest 110 * @tc.type: FUNC 111 * @tc.require: AR000EEMQ9 112 */ 113 HWTEST_F(IoTest, IO_TEST_PPOLL_002, TestSize.Level0) 114 { 115 IO_TEST_PPOLL_002(); 116 } 117 118 /* * 119 * @tc.name: IO_TEST_PPOLL_003 120 * @tc.desc: function for IoTest 121 * @tc.type: FUNC 122 * @tc.require: AR000EEMQ9 123 */ 124 HWTEST_F(IoTest, IO_TEST_PPOLL_003, TestSize.Level0) 125 { 126 IO_TEST_PPOLL_003(); 127 } 128 129 /* * 130 * @tc.name: IT_STDLIB_POLL_002 131 * @tc.desc: function for IoTest 132 * @tc.type: FUNC 133 * @tc.require: AR000EEMQ9 134 */ 135 HWTEST_F(IoTest, ItStdlibPoll002, TestSize.Level0) 136 { 137 ItStdlibPoll002(); 138 } 139 140 /* * 141 * @tc.name: IT_STDLIB_POLL_003 142 * @tc.desc: function for IoTest 143 * @tc.type: FUNC 144 * @tc.require: AR000EEMQ9 145 */ 146 HWTEST_F(IoTest, ItStdlibPoll003, TestSize.Level0) 147 { 148 ItStdlibPoll003(); 149 } 150 151 /* * 152 * @tc.name: IT_STDIO_PUTWC_001 153 * @tc.desc: function for IoTest 154 * @tc.type: FUNC 155 * @tc.require: AR000EEMQ9 156 */ 157 HWTEST_F(IoTest, ItStdioPutwc001, TestSize.Level0) 158 { 159 ItStdioPutwc001(); 160 } 161 162 /* * 163 * @tc.name: IT_STDIO_READV_001 164 * @tc.desc: function for IoTest 165 * @tc.type: FUNC 166 * @tc.require: AR000EEMQ9 167 */ 168 HWTEST_F(IoTest, ItStdioReadv001, TestSize.Level0) 169 { 170 ItStdioReadv001(); 171 } 172 173 174 /* * 175 * @tc.name: IT_STDIO_RINDEX_001 176 * @tc.desc: function for IoTest 177 * @tc.type: FUNC 178 * @tc.require: AR000EEMQ9 179 */ 180 HWTEST_F(IoTest, ItStdioRindex001, TestSize.Level0) 181 { 182 ItStdioRindex001(); 183 } 184 185 /* * 186 * @tc.name: IT_STDIO_SETLOGMASK_001 187 * @tc.desc: function for IoTest 188 * @tc.type: FUNC 189 * @tc.require: AR000EEMQ9 190 */ 191 HWTEST_F(IoTest, ItStdioSetlogmask001, TestSize.Level0) 192 { 193 ItStdioSetlogmask001(); 194 } 195 196 /* * 197 * @tc.name: IT_STDLIB_GCVT_001 198 * @tc.desc: function for IoTest 199 * @tc.type: FUNC 200 * @tc.require: AR000EEMQ9 201 */ 202 HWTEST_F(IoTest, ItStdlibGcvt001, TestSize.Level0) 203 { 204 ItStdlibGcvt001(); 205 } 206 207 /* * 208 * @tc.name: IT_LOCALE_LOCALECONV_001 209 * @tc.desc: function for IoTest 210 * @tc.type: FUNC 211 * @tc.require: AR000EEMQ9 212 */ 213 HWTEST_F(IoTest, ItLocaleLocaleconv001, TestSize.Level0) 214 { 215 ItLocaleLocaleconv001(); 216 } 217 218 /* * 219 * @tc.name: IT_STDIO_FPUTWS_001 220 * @tc.desc: function for IoTest 221 * @tc.type: FUNC 222 * @tc.require: AR000EEMQ9 223 */ 224 HWTEST_F(IoTest, ItStdioFputws001, TestSize.Level0) 225 { 226 ItStdioFputws001(); 227 } 228 229 /* * 230 * @tc.name: IT_STDIO_FWPRINTF_001 231 * @tc.desc: function for IoTest 232 * @tc.type: FUNC 233 * @tc.require: AR000EEMQ9 234 */ 235 HWTEST_F(IoTest, ItStdioFwprintf001, TestSize.Level0) 236 { 237 ItStdioFwprintf001(); 238 } 239 240 /* * 241 * @tc.name: IT_STDIO_GETC_UNLOCKED_001 242 * @tc.desc: function for IoTest 243 * @tc.type: FUNC 244 * @tc.require: AR000EEMQ9 245 */ 246 HWTEST_F(IoTest, ItStdioGetcUnlocked001, TestSize.Level0) 247 { 248 ItStdioGetcUnlocked001(); 249 } 250 251 /* * 252 * @tc.name: IT_STDIO_MBLEN_001 253 * @tc.desc: function for IoTest 254 * @tc.type: FUNC 255 * @tc.require: AR000EEMQ9 256 */ 257 HWTEST_F(IoTest, ItStdioMblen001, TestSize.Level0) 258 { 259 ItStdioMblen001(); 260 } 261 262 /* * 263 * @tc.name: IT_STDIO_MBRLEN_001 264 * @tc.desc: function for IoTest 265 * @tc.type: FUNC 266 * @tc.require: AR000EEMQ9 267 */ 268 HWTEST_F(IoTest, ItStdioMbrlen001, TestSize.Level0) 269 { 270 ItStdioMbrlen001(); 271 } 272 #endif 273 } // namespace OHOS 274