• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2023 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15import { beforeEach, describe, expect, it } from '@ohos/hypium'
16import Utils from './Utils'
17import getopt from 'libgetoptndk.so'
18import fs from '@ohos.file.fs';
19import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry';
20
21
22export default function muslGetoptNdkTest() {
23  describe('MuslGetoptTest', () => {
24
25    beforeEach(async () => {
26      await Utils.sleep(50)
27    })
28
29    /**getopt
30     * @tc.number   : SUB_THIRDPARTY_MUSL_GETOPY_GETOPTLONG_ONLY_0100
31     * @tc.name     : testMuslGetoptGetoptLongOnly001
32     * @tc.desc     : test getopt_long_only
33     * @tc.size     : MediumTest
34     * @tc.type     : Function
35     * @tc.level    : Level 1
36     */
37    it('testMuslGetoptGetoptLongOnly001', 0, async (done: Function) => {
38      let result: number = getopt.getoptLongOnly();
39      expect(result).assertEqual(0)
40      done()
41    });
42
43  })
44}
45