2019-11-12 19:23:59 +00:00
|
|
|
package vm_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2020-02-27 22:17:08 +00:00
|
|
|
vsuites "github.com/filecoin-project/chain-validation/suites"
|
2019-11-12 19:23:59 +00:00
|
|
|
|
2020-02-27 22:17:08 +00:00
|
|
|
vfactory "github.com/filecoin-project/lotus/chain/validation"
|
2019-11-12 19:23:59 +00:00
|
|
|
)
|
|
|
|
|
2020-02-27 22:17:08 +00:00
|
|
|
func TestChainValidationSuite(t *testing.T) {
|
|
|
|
f := vfactory.NewFactories()
|
2019-11-12 19:23:59 +00:00
|
|
|
|
2020-02-27 22:17:08 +00:00
|
|
|
vsuites.TestValueTransferSimple(t, f)
|
|
|
|
vsuites.TestValueTransferAdvance(t, f)
|
|
|
|
vsuites.TestAccountActorCreation(t, f)
|
|
|
|
|
|
|
|
vsuites.TestInitActorSequentialIDAddressCreate(t, f)
|
|
|
|
|
|
|
|
// Skipping since multisig address resolution breaks tests
|
|
|
|
// https://github.com/filecoin-project/specs-actors/issues/184
|
|
|
|
// vsuites.TestMultiSigActor(t, f)
|
|
|
|
|
|
|
|
// Skipping since payment channel because runtime sys calls are not implemented in runtime adapter
|
|
|
|
// vsuites.TestPaych(t, f)
|
2019-11-12 19:23:59 +00:00
|
|
|
}
|
|
|
|
|
2020-02-27 22:17:08 +00:00
|
|
|
func TestMessageApplication(t *testing.T) {
|
|
|
|
f := vfactory.NewFactories()
|
|
|
|
|
|
|
|
vsuites.TestMessageApplicationEdgecases(t, f)
|
2019-11-12 19:23:59 +00:00
|
|
|
}
|
2019-12-09 17:55:24 +00:00
|
|
|
|
2020-02-27 22:20:28 +00:00
|
|
|
func TestTipSetApplication(t *testing.T) {
|
2020-02-27 22:17:08 +00:00
|
|
|
f := vfactory.NewFactories()
|
|
|
|
|
|
|
|
vsuites.TestBlockMessageInfoApplication(t, f)
|
2019-12-16 11:47:11 +00:00
|
|
|
}
|