2020-11-25 17:08:28 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
truffle compile --all
|
|
|
|
|
|
|
|
|
|
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-01-08 17:19:23 +08:00
|
|
|
# if [ "$1"x = "route-incentive"x ]
|
|
|
|
|
# then
|
|
|
|
|
# truffle test ./test/Route/Incentive.test.ts
|
|
|
|
|
# fi
|
|
|
|
|
|
|
|
|
|
# if [ "$1"x = "route"x ]
|
|
|
|
|
# then
|
|
|
|
|
# truffle test ./test/Route/route.test.ts
|
|
|
|
|
# fi
|