text: /*
   * Copyright (c) 2014-2016 Alibaba Group. All rights reserved.
   * License-Identifier: Apache-2.0
   *
   * Licensed under the Apache License, Version 2.0 (the "License"); you may
   * not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *    http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   *
   */
  
  
  #include "lite-utils.h"
  #include "cut.h"
  
  int main(int argc, char *argv[])
  {
      int loglevel_bakups;
      LITE_openlog("utils");
  
      if (argc >= 2 && !strcmp(argv[1], "--debug")) {
          LITE_set_loglevel(LOG_DEBUG_LEVEL);
      }
  
      ADD_SUITE(string);
      ADD_SUITE(json_token);
      ADD_SUITE(json_parser);
      ADD_SUITE(mem_stats);
  
      cut_main(argc, argv);
  
      loglevel_bakups =  LITE_get_loglevel();
      LITE_set_loglevel(LOG_DEBUG_LEVEL);
      LITE_dump_malloc_free_stats(LOG_DEBUG_LEVEL);
      LITE_set_loglevel(loglevel_bakups);
  
      LITE_closelog();
      return 0;
  }
  