HelenOS sources

root/uspace/app/cpptest/main.cpp

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. main

/*
 * Copyright (c) 2018 Jaroslav Jindrak
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * - Redistributions of source code must retain the above copyright
 *   notice, this list of conditions and the following disclaimer.
 * - Redistributions in binary form must reproduce the above copyright
 *   notice, this list of conditions and the following disclaimer in the
 *   documentation and/or other materials provided with the distribution.
 * - The name of the author may not be used to endorse or promote products
 *   derived from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#include <__bits/test/tests.hpp>

/* using namespace std::chrono_literals; */

#include <cassert>
#include <cctype>
#include <cerrno>
#include <cinttypes>
#include <climits>
#include <csetjmp>
#include <cstdarg>
#include <cstddef>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <cwchar>

#include <algorithm>
#include <array>
#include <chrono>
#include <condition_variable>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <initializer_list>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <memory>
#include <mutex>
#include <new>
#include <numeric>
#include <ostream>
#include <ratio>
#include <sstream>
#include <stack>
#include <streambuf>
#include <string>
#include <system_error>
#include <thread>
#include <tuple>
#include <type_traits>
#include <typeindex>
#include <typeinfo>
#include <utility>
#include <vector>
#include <unordered_map>
#include <unordered_set>
#include <queue>
#include <set>
#include <map>
#include <bitset>
#include <random>
#include <iomanip>
#include <system_error>
#include <stdexcept>
#include <complex>
#include <future>
#include <shared_mutex>

#include <__bits/adt/hash_table.hpp>
#include <__bits/adt/rbtree.hpp>
#include <__bits/builtins.hpp>

#include <__bits/trycatch.hpp>

int main()
{
    std::test::test_set ts{};
    ts.add<std::test::vector_test>();
    ts.add<std::test::string_test>();
    ts.add<std::test::array_test>();
    ts.add<std::test::bitset_test>();
    ts.add<std::test::deque_test>();
    ts.add<std::test::tuple_test>();
    ts.add<std::test::map_test>();
    ts.add<std::test::set_test>();
    ts.add<std::test::unordered_map_test>();
    ts.add<std::test::unordered_set_test>();
    ts.add<std::test::numeric_test>();
    ts.add<std::test::adaptors_test>();
    ts.add<std::test::memory_test>();
    ts.add<std::test::list_test>();
    ts.add<std::test::ratio_test>();
    ts.add<std::test::functional_test>();
    ts.add<std::test::algorithm_test>();
    ts.add<std::test::future_test>();

    return ts.run(true) ? 0 : 1;
}

/* [<][>][^][v][top][bottom][index][help] */
HelenOS homepage, sources at GitHub