Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #8 fixes #4 fixes #5 - Implementing .NET test suite for libskycoin-dotnet #11

Merged
merged 77 commits into from
Dec 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
4f4396a
[swig] refs #4 - Create make rules to generate source files using swi…
Aug 4, 2018
7d44fca
[swig] refs #4 Update git ignore list
Aug 4, 2018
651f932
[swig] refs #4 - Generate library with swig, compile and test
Aug 5, 2018
b2f78f1
[swig] refs #4 - Fixed travis and makefile issue
Aug 5, 2018
77af39d
[swig] refs #4 - Fix in Makefile
Aug 5, 2018
5c2d7f5
[swig] refs #4 - Added installation of Go and Swig to Travis
Aug 5, 2018
be43775
[libnet][swig] Added file by testing
Aug 24, 2018
7bbc17e
[libnet][swig] refs #4 Testing request in travis
Aug 24, 2018
6e8feb6
[libnet][swig] refs #4 Added make test
Aug 24, 2018
bc76c3e
[submodule] refs #4 Update submodule
Sep 1, 2018
bfa91b4
[libnet] refs #4 Added error and update submodule
Sep 2, 2018
98c0248
[libdotnet][swig] refs #4 Added file and submodule update
Sep 4, 2018
abb4271
[swig][libdotnet] Update submodule
Sep 6, 2018
c37ddad
[Makefile] refs #4 Change in Makefile
Sep 8, 2018
3665138
[swig][submodule] refs #4 Update submodule
Sep 8, 2018
6ee3a9a
[swig][submodule] refs #4 Update submodule
Sep 8, 2018
ae352a4
[swig] refs #4 Update submodule
Sep 9, 2018
f15ea13
Update supmodule and correct test
Sep 12, 2018
939da37
[swig][libdotnet] Update submodule and init test
Sep 12, 2018
e846602
[swig] Purge test
Sep 13, 2018
f9117b1
[test][libdotnet] refs #8 Change in Makefile
Sep 13, 2018
1feb14e
[test] refs #8 Repair string
Sep 13, 2018
8862467
[test] refs #8 Rewrite test cipher_address Tests run: 3, Errors: 0, F…
Sep 14, 2018
125108f
[test][libdotnet] refs #8 Finish cipher_address Tests run: 8, Errors:…
Sep 14, 2018
c98a1c5
[libdotnet] refs #8 Added test cipher.crypto Tests run: 22, Errors: 0…
Sep 15, 2018
55f309e
[test][libdotnet] refs #8 Finish test cipher_crypto Tests run: 30, Er…
Sep 16, 2018
66b5561
[test][libdotnet] refs #8 Init test cipher_encrypt_scrypt_chacha20pol…
Sep 17, 2018
71b5f49
[libdotnet][test] refs #8 Update submodule Tests run: 30, Errors: 0, …
Sep 19, 2018
eabe2c4
[libdotnet] refs #8 Added test cipher_hash Tests run: 34, Errors: 0, …
Sep 19, 2018
7eefb6e
[libdotnet][swig] Update submodule and add SWIGTYPE_p_UnspentOutputsS…
Sep 24, 2018
aef9c09
[libdotnet][test] Added test util.fee Tests run: 38, Errors: 0, Failu…
Sep 25, 2018
be76b55
[test] refs #8 Added goslice
Sep 26, 2018
18b17f6
[test] Update submodule and add transutils.cs
Sep 26, 2018
0720d94
[test] Finish test utils.fee Tests run: 39, Errors: 0, Failures: 0, I…
Sep 26, 2018
f261bab
[test] refs #8 Finish test utils.droplet Tests run: 41, Errors: 0, Fa…
Sep 26, 2018
960d8d4
[test] refs #8 Update submodule
Sep 27, 2018
f615366
[test] refs #8 Update submodule and add function coin_transactions
Sep 27, 2018
88d4877
[libdotnet][test] refs #8 Added test coin_transaction
Sep 28, 2018
390e4cd
[test] refs #8 Added functions in coin_transaction
Sep 28, 2018
cb39bca
[test] refs #8 Finish coin.math and coin.coin Tests run: 62, Errors: …
Sep 28, 2018
973cdc0
[test] refs #8 Added test coin.transaction Tests run: 76, Errors: 0, …
Oct 1, 2018
d84a9b4
[test] refs #8 Finish encrypt_scrypt_chacha20poly1305 and transaction…
Oct 2, 2018
919c86f
[swig] refs #1660 Init typemap callback
Oct 3, 2018
eab6c48
[test] refs #8 Finish coin without callback
Oct 4, 2018
9aea56e
[test] refs #8 Changes in functions by generate
Oct 4, 2018
15ca3e1
[test] refs #8 Added test cipher.bip39 Tests run: 93, Errors: 0, Fail…
Oct 7, 2018
ad7e225
[test] Added test cipher.bitcoin Tests run: 93, Errors: 0, Failures: …
Oct 10, 2018
5a304a5
[test] refs #8 Added submodule and test Tests run: 93, Errors: 0, Fai…
Oct 13, 2018
8de0b15
[test] refs #8 Added submodule and test Tests run: 93, Errors: 0, Fai…
Oct 13, 2018
c808036
[test][libdotnet] refs #8 Added update submodule and remove test sha2…
Oct 13, 2018
0597095
[test] refs #8 Test in typemap callback
Oct 14, 2018
f0da310
[test] refs #8 Testing data type callback
Oct 14, 2018
6153c16
[test] refs #8 Adapted data typein callback
Oct 14, 2018
08bed62
[test] refs #8 Added integrate callback
Oct 15, 2018
79bd953
[test] refs #8 Rename in function
Oct 15, 2018
916aee6
[test] #8 Finish cipher , coin and util Tests run: 93, Errors: 0, Fai…
Oct 16, 2018
37035be
[submodule] Update submodule
Oct 17, 2018
ea53d20
[submodule] refs #8 Update submodule
Oct 17, 2018
29be4a3
[test][libdotnet] Update submodule and change in test Tests run: 85, …
Nov 5, 2018
ac5f7b3
[submodule][swig] Added folder swig and update submodule Tests run: 8…
Nov 7, 2018
b46b73d
[swig][test] refs #8 Added typemap GoUint32 Tests run: 85, Errors: 0,…
Nov 10, 2018
dd69192
[test] refs #8 Rename functions Tests run: 85, Errors: 0, Failures: 0…
Nov 12, 2018
e3d5f42
[submodule] Update Submodule
Nov 16, 2018
e51b7ce
[test] refs #8 cleaning the library Tests run: 86, Errors: 0, Failure…
Nov 26, 2018
efbec75
[test] refs #8 Repair error in define Tests run: 86, Errors: 0, Failu…
Nov 27, 2018
3f92d19
[test] refs #8 Update Submodule Tests run: 86, Errors: 0, Failures: 0…
Nov 28, 2018
1b43afc
[travis][Makefile] refs #4 #8 Repair https://github.com/simelo/libsky…
Nov 29, 2018
26ba323
Merge branch 'develop' of https://github.com/simelo/libskycoin-dotnet…
Nov 29, 2018
53a91bc
[Makefile] refs #8 Changes in Makefile and rename skycoin.i => libdot…
Nov 29, 2018
1ac7ae7
[test] refs #8 Finish test param Tests run: 87, Errors: 0, Failures: …
Nov 29, 2018
c22c5aa
[ci] refs #8 - Restructure Makefile. make help . Travis = make test
olemis Nov 30, 2018
db74b80
[test] refs #8 - Remove redundant comments in test csproj
olemis Nov 30, 2018
387ecb1
[swig][makefile] refs #8 Repair https://github.com/simelo/libskycoin-…
Nov 30, 2018
342e5f3
[swig][project] refs #4 Changes in swig and csproj
Dec 5, 2018
7291709
[swig] refs #4 Repair error in merge and develop
Dec 8, 2018
185a60f
[swig][submodule][Makefile] refs #4 Changes in files Tests run: 87, E…
Dec 9, 2018
08d576b
Refs #8 Changes to be committed:
Dec 10, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.


# User-specific files
*.suo
*.user
Expand Down Expand Up @@ -68,6 +69,10 @@ artifacts/
*.pidb
*.svclog
*.scc
*.o
*.dll
*.so
*.exe

# Chutzpah Test files
_Chutzpah*
Expand Down Expand Up @@ -248,6 +253,10 @@ paket-files/
# JetBrains Rider
.idea/
*.sln.iml
testrunner/

# VSCODE
.angulardoc.json

#Temporary files
*.swp
Expand Down
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ language: csharp
solution: LibskycoinNet.sln

install:
- nuget restore LibskycoinNet.sln
- nuget install NUnit.Runners -Version 2.6.4 -OutputDirectory testrunner
- eval "$(gimme 1.10)"
- go version
- mkdir swig_build && cd swig_build && wget http://prdownloads.sourceforge.net/swig/swig-3.0.12.tar.gz && tar -zxf swig-3.0.12.tar.gz && cd swig-3.0.12 && sudo ./configure --prefix=/usr && sudo make && sudo make install && cd ../../ && sudo rm -rf swig_build

script:
- msbuild /p:Configuration=Release LibskycoinNet.sln
- mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe ./LibskycoinNetTest/bin/Release/LibskycoinNetTest.dll
- make test

notifications:
email: false
Expand Down
98 changes: 97 additions & 1 deletion LibskycoinNet/LibskycoinNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,103 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Skycoin.cs" />
<Compile Include="skycoin\GoInterface.cs" />
<Compile Include="skycoin\GoSlice.cs" />
<Compile Include="skycoin\SWIGTYPE_p_AddressUxOuts_Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_App__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_BalanceResult_Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_BlockBody__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_Block__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_BuildInfo_Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_Client__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_Config__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_Context__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_CreateTransactionResponse__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_CreatedTransactionInput__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_CreatedTransactionOutput__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_CreatedTransaction__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_FeeCalculator.cs" />
<Compile Include="skycoin\SWIGTYPE_p_GoSlice_.cs" />
<Compile Include="skycoin\SWIGTYPE_p_GoStringMap_.cs" />
<Compile Include="skycoin\SWIGTYPE_p_GoString_.cs" />
<Compile Include="skycoin\SWIGTYPE_p_Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_Number_Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_Options__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_PasswordReader__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_ReadableEntry__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_ReadableWallet__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_Signature_Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_SortableTransactionResult_Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_SpendResult_Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_StatusResult_Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_Strings__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_TransactionResult_Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_Transaction__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_Transactions__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_WalletResponse__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_Wallet__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_Wallets__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_WebRpcClient__Handle.cs" />
<Compile Include="skycoin\SWIGTYPE_p_long_long.cs" />
<Compile Include="skycoin\SWIGTYPE_p_p_coin__Block.cs" />
<Compile Include="skycoin\SWIGTYPE_p_p_coin__Transaction.cs" />
<Compile Include="skycoin\SWIGTYPE_p_unsigned_char.cs" />
<Compile Include="skycoin\SWIGTYPE_p_unsigned_int.cs" />
<Compile Include="skycoin\SWIGTYPE_p_unsigned_long_long.cs" />
<Compile Include="skycoin\SWIGTYPE_p_unsigned_short.cs" />
<Compile Include="skycoin\SWIGTYPE_p_void.cs" />
<Compile Include="skycoin\_GoString_.cs" />
<Compile Include="skycoin\api__RichlistParams.cs" />
<Compile Include="skycoin\cipher_Checksum.cs" />
<Compile Include="skycoin\cipher_PubKey.cs" />
<Compile Include="skycoin\cipher_PubKeys.cs" />
<Compile Include="skycoin\cipher_Ripemd160.cs" />
<Compile Include="skycoin\cipher_SHA256.cs" />
<Compile Include="skycoin\cipher_SHA256s.cs" />
<Compile Include="skycoin\cipher_SecKey.cs" />
<Compile Include="skycoin\cipher_SecKeys.cs" />
<Compile Include="skycoin\cipher_Sig.cs" />
<Compile Include="skycoin\cipher__Address.cs" />
<Compile Include="skycoin\cli__SendAmount.cs" />
<Compile Include="skycoin\coin_UxOutArray.cs" />
<Compile Include="skycoin\coin__Block.cs" />
<Compile Include="skycoin\coin__BlockBody.cs" />
<Compile Include="skycoin\coin__BlockHeader.cs" />
<Compile Include="skycoin\coin__SignedBlock.cs" />
<Compile Include="skycoin\coin__Transaction.cs" />
<Compile Include="skycoin\coin__TransactionOutput.cs" />
<Compile Include="skycoin\coin__UxBody.cs" />
<Compile Include="skycoin\coin__UxHead.cs" />
<Compile Include="skycoin\coin__UxOut.cs" />
<Compile Include="skycoin\encrypt__ScryptChacha20poly1305.cs" />
<Compile Include="skycoin\httphelper__Address.cs" />
<Compile Include="skycoin\skycoin.cs" />
<Compile Include="skycoin\skycoinPINVOKE.cs" />
<Compile Include="skycoin\wallet__Balance.cs" />
<Compile Include="skycoin\wallet__BalancePair.cs" />
<Compile Include="skycoin\wallet__Entry.cs" />
<Compile Include="skycoin\wallet__Note.cs" />
<Compile Include="skycoin\wallet__ReadableNote.cs" />
<Compile Include="skycoin\wallet__UxBalance.cs" />
<Compile Include="skycoin\SWIGTYPE_p_int.cs" />
<Compile Include="skycoin\SWIGTYPE_p_p_void.cs" />
<Compile Include="skycoin\SWIGTYPE_p_p_json_value.cs" />
<Compile Include="skycoin\wallet_register.cs" />
<Compile Include="skycoin\SWIGTYPE_p_FILE.cs" />
<Compile Include="skycoin\cipher_Addresses.cs" />
<Compile Include="skycoin\cipher__BitcoinAddress.cs" />
<Compile Include="skycoin\SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle.cs" />
<Compile Include="skycoin\api__NetworkConnectionsFilter.cs" />
<Compile Include="skycoin\SWIGTYPE_p_p_GoSlice_.cs" />
<Compile Include="skycoin\SWIGTYPE_p_GoUint32_.cs" />
<Compile Include="skycoin\SWIGTYPE_p_GoUint64_.cs" />
<Compile Include="skycoin\SWIGTYPE_p_GoUint8_.cs" />
<Compile Include="skycoin\SWIGTYPE_p_a_4__GoUint8_.cs" />
<Compile Include="skycoin\SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_.cs" />
<Compile Include="skycoin\SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_.cs" />
</ItemGroup>
<ItemGroup>
<None Include="skycoin\skycoinnet_wrap.c" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
Expand Down
14 changes: 0 additions & 14 deletions LibskycoinNet/Skycoin.cs

This file was deleted.

70 changes: 70 additions & 0 deletions LibskycoinNet/skycoin/Fee_Calculator.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (http://www.swig.org).
// Version 3.0.12
//
// Do not make changes to this file unless you know what you are doing--modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------

namespace skycoin {

public class Fee_Calculator : global::System.IDisposable {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
protected bool swigCMemOwn;

internal Fee_Calculator(global::System.IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}

internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Fee_Calculator obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}

~Fee_Calculator() {
Dispose();
}

public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != global::System.IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
skycoinPINVOKE.delete_Fee_Calculator(swigCPtr);
}
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
global::System.GC.SuppressFinalize(this);
}
}

public SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_ callback {
set {
skycoinPINVOKE.set_Fee_Calculator_callback(swigCPtr, SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_.getCPtr(value));
}
get {
global::System.IntPtr cPtr = skycoinPINVOKE.get_Fee_Calculator_callback(swigCPtr);
SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_(cPtr, false);
return ret;
}
}

public SWIGTYPE_p_void context {
set {
skycoinPINVOKE.set_Fee_Calculator_context(swigCPtr, SWIGTYPE_p_void.getCPtr(value));
}
get {
global::System.IntPtr cPtr = skycoinPINVOKE.get_Fee_Calculator_context(swigCPtr);
SWIGTYPE_p_void ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false);
return ret;
}
}

public Fee_Calculator() : this(skycoinPINVOKE.new_Fee_Calculator(), true) {
}

}

}
70 changes: 70 additions & 0 deletions LibskycoinNet/skycoin/GoInterface.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (http://www.swig.org).
// Version 3.0.12
//
// Do not make changes to this file unless you know what you are doing--modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------

namespace skycoin {

public class GoInterface : global::System.IDisposable {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
protected bool swigCMemOwn;

internal GoInterface(global::System.IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}

internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GoInterface obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}

~GoInterface() {
Dispose();
}

public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != global::System.IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
skycoinPINVOKE.delete_GoInterface(swigCPtr);
}
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
global::System.GC.SuppressFinalize(this);
}
}

public SWIGTYPE_p_void t {
set {
skycoinPINVOKE.set_GoInterface_t(swigCPtr, SWIGTYPE_p_void.getCPtr(value));
}
get {
global::System.IntPtr cPtr = skycoinPINVOKE.get_GoInterface_t(swigCPtr);
SWIGTYPE_p_void ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false);
return ret;
}
}

public SWIGTYPE_p_void v {
set {
skycoinPINVOKE.set_GoInterface_v(swigCPtr, SWIGTYPE_p_void.getCPtr(value));
}
get {
global::System.IntPtr cPtr = skycoinPINVOKE.get_GoInterface_v(swigCPtr);
SWIGTYPE_p_void ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false);
return ret;
}
}

public GoInterface() : this(skycoinPINVOKE.new_GoInterface(), true) {
}

}

}
Loading