2020-11-25 17:08:28 +08:00
|
|
|
#!/bin/bash
|
2021-09-28 14:38:53 +08:00
|
|
|
truffle compile --all
|
2020-11-25 17:08:28 +08:00
|
|
|
|
|
|
|
|
if [ "$1"x = "proxy-dpp"x ]
|
|
|
|
|
then
|
2021-01-08 17:19:23 +08:00
|
|
|
truffle test ./test/V2Proxy/proxy.dpp.test.ts
|
2020-11-25 17:08:28 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ "$1"x = "proxy-dvm"x ]
|
|
|
|
|
then
|
2021-01-08 17:19:23 +08:00
|
|
|
truffle test ./test/V2Proxy/proxy.dvm.test.ts
|
2020-11-25 17:08:28 +08:00
|
|
|
fi
|
|
|
|
|
|
2020-11-30 11:36:36 +08:00
|
|
|
if [ "$1"x = "proxy-mix"x ]
|
|
|
|
|
then
|
2021-01-08 17:19:23 +08:00
|
|
|
truffle test ./test/V2Proxy/proxy.mix.test.ts
|
2020-11-30 11:36:36 +08:00
|
|
|
fi
|
|
|
|
|
|
2020-12-01 01:47:22 +08:00
|
|
|
if [ "$1"x = "proxy-classical"x ]
|
|
|
|
|
then
|
2021-01-08 17:19:23 +08:00
|
|
|
truffle test ./test/V2Proxy/proxy.classical.test.ts
|
2020-12-01 01:47:22 +08:00
|
|
|
fi
|
2020-11-30 11:36:36 +08:00
|
|
|
|
2020-12-15 01:07:15 +08:00
|
|
|
if [ "$1"x = "proxy-cp"x ]
|
|
|
|
|
then
|
2021-01-08 17:19:23 +08:00
|
|
|
truffle test ./test/V2Proxy/proxy.cp.test.ts
|
2020-12-15 01:07:15 +08:00
|
|
|
fi
|
|
|
|
|
|
2021-01-08 17:19:23 +08:00
|
|
|
if [ "$1"x = "proxy-incentive"x ]
|
2021-01-05 18:01:51 +08:00
|
|
|
then
|
2021-01-08 17:19:23 +08:00
|
|
|
truffle test ./test/V2Proxy/proxy.incentive.test.ts
|
2021-01-05 18:01:51 +08:00
|
|
|
fi
|
|
|
|
|
|
2021-03-14 16:49:33 +08:00
|
|
|
if [ "$1"x = "proxy-incentive-bsc"x ]
|
|
|
|
|
then
|
|
|
|
|
truffle test ./test/V2Proxy/proxy.incentive.bsc.test.ts
|
|
|
|
|
fi
|
|
|
|
|
|
2021-01-19 17:10:46 +08:00
|
|
|
if [ "$1"x = "proxy-twap"x ]
|
|
|
|
|
then
|
|
|
|
|
truffle test ./test/V2Proxy/proxy.twap.test.ts
|
|
|
|
|
fi
|
|
|
|
|
|
2021-02-02 18:55:22 +08:00
|
|
|
if [ "$1"x = "vdodo-mintRedeem"x ]
|
|
|
|
|
then
|
|
|
|
|
truffle test ./test/vDODO/mintRedeem.test.ts
|
|
|
|
|
fi
|
|
|
|
|
|
2021-03-26 15:01:10 +08:00
|
|
|
if [ "$1"x = "erc20-mine"x ]
|
|
|
|
|
then
|
|
|
|
|
truffle test ./test/DODOMineV2/erc20Mine.test.ts
|
|
|
|
|
fi
|
2021-03-27 00:50:26 +08:00
|
|
|
|
|
|
|
|
if [ "$1"x = "vdodo-mine"x ]
|
|
|
|
|
then
|
|
|
|
|
truffle test ./test/DODOMineV2/vDODOMine.test.ts
|
|
|
|
|
fi
|
|
|
|
|
|
2021-04-09 00:27:53 +08:00
|
|
|
if [ "$1"x = "nft"x ]
|
|
|
|
|
then
|
|
|
|
|
truffle test ./test/DODONFT/nftMainFlow.test.ts
|
|
|
|
|
fi
|
|
|
|
|
|
2021-04-15 22:59:15 +08:00
|
|
|
if [ "$1"x = "boxV1"x ]
|
|
|
|
|
then
|
|
|
|
|
truffle test ./test/DODONFT/mysteryBoxV1.test.ts
|
|
|
|
|
fi
|
2021-04-09 00:27:53 +08:00
|
|
|
|
2021-05-24 20:32:05 +08:00
|
|
|
if [ "$1"x = "boxV2"x ]
|
|
|
|
|
then
|
2021-05-25 18:30:50 +08:00
|
|
|
truffle test ./test/DODODrops/dropsV2.test.ts
|
2021-05-24 20:32:05 +08:00
|
|
|
fi
|
|
|
|
|
|
2021-09-20 14:52:23 +08:00
|
|
|
if [ "$1"x = "erc721NFTPool"x ]
|
2021-09-13 14:31:23 +08:00
|
|
|
then
|
2021-09-20 14:52:23 +08:00
|
|
|
truffle test ./test/NFTPool/erc721NftPool.test.ts
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ "$1"x = "erc1155NFTPool"x ]
|
|
|
|
|
then
|
|
|
|
|
truffle test ./test/NFTPool/erc1155NftPool.test.ts
|
2021-09-13 14:31:23 +08:00
|
|
|
fi
|