Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Tester develop #780

Closed
wants to merge 55 commits into from
Closed
Show file tree
Hide file tree
Changes from 53 commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
9e0518f
tester
tbfleming Sep 26, 2019
ed37c0d
tester
tbfleming Sep 27, 2019
f65eea9
tester
tbfleming Sep 27, 2019
0d33526
tester
tbfleming Sep 27, 2019
e83907a
tester
tbfleming Oct 1, 2019
1afa19b
tester: forgot submodule
tbfleming Oct 1, 2019
bd18d34
tester: use jit
tbfleming Oct 4, 2019
20253d2
Merge remote-tracking branch 'origin/develop' into tester
tbfleming Oct 22, 2019
cd38b19
export and only-export
tbfleming Oct 23, 2019
c7b9f8a
Merge remote-tracking branch 'origin/expose_export_options2' into tester
tbfleming Nov 1, 2019
5e1559d
Port tester to current eosio/develop. Functional but needs refactoring.
swatanabe-b1 Jan 9, 2020
d4bc780
Port tester to 2.0
swatanabe-b1 Jan 9, 2020
513171f
Merge branch 'develop' into tester-2.0
swatanabe-b1 Jan 9, 2020
913c363
Fix merge issues.
swatanabe-b1 Jan 9, 2020
f2d693c
Don't create a transaction_context/apply_context just for reading the…
swatanabe-b1 Jan 9, 2020
6047153
Remove eos-vm as a separate submodule. It's already included in eos.
swatanabe-b1 Jan 10, 2020
a1a0d74
Merge remote-tracking branch 'origin/forward-compiler' into tester-de…
swatanabe-b1 Jan 10, 2020
86df9bd
Add intrinsics to support stdio/iostreams and update the standard lib…
swatanabe-b1 Jan 13, 2020
e570a2f
Support Boost.Test and Catch2 in the tester.
swatanabe-b1 Jan 15, 2020
e1d59f2
Clean up temporary files
swatanabe-b1 Jan 15, 2020
7402923
Support gcc-7
swatanabe-b1 Jan 15, 2020
e2adcf3
Remove definition that's no longer needed and fails.
swatanabe-b1 Jan 15, 2020
99c522d
Don't allow more than one chain, as it isn't needed and it make the (…
swatanabe-b1 Jan 15, 2020
3afd51f
Start adding documentation of test_chain.
swatanabe-b1 Jan 15, 2020
e72db1a
Fix Catch2 submodule definition.
swatanabe-b1 Jan 15, 2020
7249abe
Update to use abieos/refactor branch.
swatanabe-b1 Jan 17, 2020
2492007
Use new abieos reflection api
swatanabe-b1 Jan 17, 2020
fcfadb6
Simplify access to transaction_trace, action_trace, &c.
swatanabe-b1 Jan 17, 2020
f70b3b5
Replace abieos::input_buffer with eosio::input_stream.
swatanabe-b1 Jan 17, 2020
45174ad
Use eosio types for transaction_trace.
swatanabe-b1 Jan 22, 2020
aca5772
Fully remove chain_types from the public API of the tester.
swatanabe-b1 Jan 22, 2020
6ca7ab1
action::data_as should be const
swatanabe-b1 Jan 23, 2020
692ebc4
Start adding tests for the tester. Only start_block is tested.
swatanabe-b1 Jan 23, 2020
599aac1
Port to the current abieos refactor branch.
swatanabe-b1 Feb 11, 2020
77ac42c
functions in headers need to be inline.
swatanabe-b1 Feb 11, 2020
f1046eb
Change more includes to <eosio/xxx.hpp>
swatanabe-b1 Feb 11, 2020
a75e076
Don't depend on the storage type of fixed_bytes.
swatanabe-b1 Feb 12, 2020
182bd23
Add missing return
swatanabe-b1 Feb 12, 2020
1e44fa7
Convert integration tests to eosio-tester. Note that there's an issu…
swatanabe-b1 Feb 12, 2020
58937f5
Add crypto API intrinsics.
swatanabe-b1 Feb 13, 2020
9448b46
Add basic test of the transaction_trace returned by push_transaction.
swatanabe-b1 Feb 13, 2020
2365294
Use key_weight instead of tester_key_weight.
swatanabe-b1 Feb 13, 2020
c91c613
Minor cleanup
swatanabe-b1 Feb 13, 2020
8eb9e90
Separately compile as much of the tester as possible.
swatanabe-b1 Feb 14, 2020
95422f2
Move keys to the source.
swatanabe-b1 Feb 14, 2020
44a5116
Support action::send in the tester
swatanabe-b1 Feb 14, 2020
8314a0d
Detemplatify a couple functions and move them to tester.cpp
swatanabe-b1 Feb 14, 2020
050f6e2
Allow existing user-defined operator<< and >> for datastream to be fo…
swatanabe-b1 Feb 18, 2020
6ef7046
Add basic tests for test_chain::query_database
swatanabe-b1 Feb 19, 2020
1bc4dfb
Basic multi_index test
swatanabe-b1 Feb 21, 2020
83f8319
Sync with eosio develop
swatanabe-b1 Feb 21, 2020
373c726
Merge remote-tracking branch 'origin/develop' into tester-develop
swatanabe-b1 Feb 21, 2020
5ca2910
Fix problems from merge.
swatanabe-b1 Feb 21, 2020
7669ebe
Remove Boost.Test.
swatanabe-b1 Feb 27, 2020
26ae669
Switch tests to catch
swatanabe-b1 Feb 27, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 12 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,15 @@
[submodule "libraries/native/softfloat"]
path = libraries/native/softfloat
url = https://github.com/EOSIO/berkeley-softfloat-3.git
[submodule "libraries/eos"]
path = libraries/eos
url = https://github.com/EOSIO/eos.git
[submodule "libraries/abieos"]
path = libraries/abieos
url = https://github.com/EOSIO/abieos.git
[submodule "libraries/fmt"]
path = libraries/fmt
url = https://github.com/fmtlib/fmt.git
[submodule "libraries/Catch2"]
path = libraries/Catch2
url = https://github.com/catchorg/Catch2.git
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ configure_file(${CMAKE_SOURCE_DIR}/libraries/boost/boost.license ${CMAKE_BINARY_
configure_file(${CMAKE_SOURCE_DIR}/tools/external/wabt/LICENSE ${CMAKE_BINARY_DIR}/licenses/wabt.license COPYONLY)
configure_file(${CMAKE_SOURCE_DIR}/tools/jsoncons/LICENSE ${CMAKE_BINARY_DIR}/licenses/jsoncons.license COPYONLY)
configure_file(${CMAKE_SOURCE_DIR}/LICENSE ${CMAKE_BINARY_DIR}/licenses/eosio.cdt.license COPYONLY)
configure_file(${CMAKE_SOURCE_DIR}/libraries/eosiolib/tester/fpconv.license ${CMAKE_BINARY_DIR}/licenses/fpconv.license COPYONLY)
configure_file(${CMAKE_SOURCE_DIR}/libraries/fmt/LICENSE.rst ${CMAKE_BINARY_DIR}/licenses/fmt.license COPYONLY)
configure_file(${CMAKE_SOURCE_DIR}/libraries/abieos/external/date/LICENSE.txt ${CMAKE_BINARY_DIR}/licenses/date.license COPYONLY)
configure_file(${CMAKE_SOURCE_DIR}/libraries/abieos/external/rapidjson/license.txt ${CMAKE_BINARY_DIR}/licenses/rapidjson.license COPYONLY)

include(modules/TestsExternalProject.txt)

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ sudo rm /usr/local/bin/eosio-*
* eosio-ar
* eosio-objdump
* eosio-readelf
* eosio-tester

Below tools are not installed after brew install, you get them only by building the repository and installing from scracth, [see here](#guided_installation_or_building_from_scratch)
eosio-abidiff
Expand Down
1 change: 1 addition & 0 deletions libraries/Catch2
Submodule Catch2 added at d10b9b
1 change: 1 addition & 0 deletions libraries/abieos
Submodule abieos added at fd0d1b
83 changes: 83 additions & 0 deletions libraries/boost/include/boost/algorithm/cxx11/all_of.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
/*
Copyright (c) Marshall Clow 2008-2012.

Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/

/// \file all_of.hpp
/// \brief Test ranges to see if all elements match a value or predicate.
/// \author Marshall Clow

#ifndef BOOST_ALGORITHM_ALL_OF_HPP
#define BOOST_ALGORITHM_ALL_OF_HPP

#include <boost/range/begin.hpp>
#include <boost/range/end.hpp>

namespace boost { namespace algorithm {

/// \fn all_of ( InputIterator first, InputIterator last, Predicate p )
/// \return true if all elements in [first, last) satisfy the predicate 'p'
/// \note returns true on an empty range
///
/// \param first The start of the input sequence
/// \param last One past the end of the input sequence
/// \param p A predicate for testing the elements of the sequence
///
/// \note This function is part of the C++2011 standard library.
template<typename InputIterator, typename Predicate>
bool all_of ( InputIterator first, InputIterator last, Predicate p )
{
for ( ; first != last; ++first )
if ( !p(*first))
return false;
return true;
}

/// \fn all_of ( const Range &r, Predicate p )
/// \return true if all elements in the range satisfy the predicate 'p'
/// \note returns true on an empty range
///
/// \param r The input range
/// \param p A predicate for testing the elements of the range
///
template<typename Range, typename Predicate>
bool all_of ( const Range &r, Predicate p )
{
return boost::algorithm::all_of ( boost::begin (r), boost::end (r), p );
}

/// \fn all_of_equal ( InputIterator first, InputIterator last, const T &val )
/// \return true if all elements in [first, last) are equal to 'val'
/// \note returns true on an empty range
///
/// \param first The start of the input sequence
/// \param last One past the end of the input sequence
/// \param val A value to compare against
///
template<typename InputIterator, typename T>
bool all_of_equal ( InputIterator first, InputIterator last, const T &val )
{
for ( ; first != last; ++first )
if ( val != *first )
return false;
return true;
}

/// \fn all_of_equal ( const Range &r, const T &val )
/// \return true if all elements in the range are equal to 'val'
/// \note returns true on an empty range
///
/// \param r The input range
/// \param val A value to compare against
///
template<typename Range, typename T>
bool all_of_equal ( const Range &r, const T &val )
{
return boost::algorithm::all_of_equal ( boost::begin (r), boost::end (r), val );
}

}} // namespace boost and algorithm

#endif // BOOST_ALGORITHM_ALL_OF_HPP
18 changes: 18 additions & 0 deletions libraries/boost/include/boost/aligned_storage.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//-----------------------------------------------------------------------------
// boost aligned_storage.hpp header file
// See http://www.boost.org for updates, documentation, and revision history.
//-----------------------------------------------------------------------------
//
// Copyright (c) 2002-2003
// Eric Friedman, Itay Maman
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)

#ifndef BOOST_ALIGNED_STORAGE_HPP
#define BOOST_ALIGNED_STORAGE_HPP

#include <boost/type_traits/aligned_storage.hpp>

#endif // BOOST_ALIGNED_STORAGE_HPP
41 changes: 41 additions & 0 deletions libraries/boost/include/boost/bind.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#ifndef BOOST_BIND_HPP_INCLUDED
#define BOOST_BIND_HPP_INCLUDED

// MS compatible compilers support #pragma once

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
# pragma once
#endif

//
// bind.hpp - binds function objects to arguments
//
// Copyright (c) 2009, 2015 Peter Dimov
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
// See http://www.boost.org/libs/bind/bind.html for documentation.
//

#include <boost/bind/bind.hpp>

#ifndef BOOST_BIND_NO_PLACEHOLDERS

#if defined(BOOST_CLANG)
# pragma clang diagnostic push
# if __has_warning("-Wheader-hygiene")
# pragma clang diagnostic ignored "-Wheader-hygiene"
# endif
#endif

using namespace boost::placeholders;

#if defined(BOOST_CLANG)
# pragma clang diagnostic pop
#endif

#endif // #ifndef BOOST_BIND_NO_PLACEHOLDERS

#endif // #ifndef BOOST_BIND_HPP_INCLUDED
69 changes: 69 additions & 0 deletions libraries/boost/include/boost/bind/arg.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
#ifndef BOOST_BIND_ARG_HPP_INCLUDED
#define BOOST_BIND_ARG_HPP_INCLUDED

// MS compatible compilers support #pragma once

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
# pragma once
#endif

//
// bind/arg.hpp
//
// Copyright (c) 2002 Peter Dimov and Multi Media Ltd.
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/libs/bind/bind.html for documentation.
//

#include <boost/config.hpp>
#include <boost/is_placeholder.hpp>

namespace boost
{

template<bool Eq> struct _arg_eq
{
};

template<> struct _arg_eq<true>
{
typedef void type;
};

template< int I > struct arg
{
BOOST_CONSTEXPR arg()
{
}

template< class T > BOOST_CONSTEXPR arg( T const & /* t */, typename _arg_eq< I == is_placeholder<T>::value >::type * = 0 )
{
}
};

template< int I > BOOST_CONSTEXPR bool operator==( arg<I> const &, arg<I> const & )
{
return true;
}

#if !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION )

template< int I > struct is_placeholder< arg<I> >
{
enum _vt { value = I };
};

template< int I > struct is_placeholder< arg<I> (*) () >
{
enum _vt { value = I };
};

#endif

} // namespace boost

#endif // #ifndef BOOST_BIND_ARG_HPP_INCLUDED
Loading