fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / ucb / source / ucp / ftp / test.cxx
blob6141e2c52916afa27eb8dd422947caa946bc4542
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 /**************************************************************************
22 TODO
23 **************************************************************************
25 *************************************************************************/
27 #include "test_ftpurl.hxx"
28 #include <stdio.h>
29 #include <unistd.h>
33 int main(int argc,char* argv[])
36 typedef int (*INT_FUNC)(void);
37 INT_FUNC tests[] = { test_ftpurl,
38 test_ftpparent,
39 test_ftpproperties,
40 test_ftpopen,
41 test_ftplist,
42 0 }; // don't remove ending zero
44 int err_level = 0;
46 fprintf(stderr,"------- Testing ----------\n");
48 int i = -1;
49 do {
50 INT_FUNC f = tests[++i];
51 if(f) {
52 err_level += (*f)();
53 fprintf(stderr,".");
54 } else
55 break;
56 } while(true);
58 if(err_level) {
59 fprintf(stderr,"number of failed tests: %d\n",err_level);
60 fprintf(stderr,"----------------------------------\n");
61 } else
62 fprintf(stderr,"no errors\n");
64 return err_level;
67 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */