aboutsummaryrefslogtreecommitdiffstats
path: root/test/externalTests.sh
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-09-19 20:39:59 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-02-13 07:26:07 +0800
commit4876842f69e9d59d102f8f26f4bb2f1fc37b4d36 (patch)
tree853295f7f84175a428b1ba81d3ec836af187d9af /test/externalTests.sh
parent32fdb1cd4b11b52924971fb6da22ea2c07ac1646 (diff)
downloaddexon-solidity-4876842f69e9d59d102f8f26f4bb2f1fc37b4d36.tar.gz
dexon-solidity-4876842f69e9d59d102f8f26f4bb2f1fc37b4d36.tar.zst
dexon-solidity-4876842f69e9d59d102f8f26f4bb2f1fc37b4d36.zip
Replace fixed-version pragmas in Gnosis
Diffstat (limited to 'test/externalTests.sh')
-rwxr-xr-xtest/externalTests.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/externalTests.sh b/test/externalTests.sh
index 5b889914..2a5ff7ef 100755
--- a/test/externalTests.sh
+++ b/test/externalTests.sh
@@ -54,6 +54,10 @@ function test_truffle
sed -i -e 's/CappedCrowdsale.new(this.startTime, this.endTime, rate, wallet, 0)/CappedCrowdsale.new(this.startTime, this.endTime, rate, wallet, 0, this.token.address)/' test/crowdsale/CappedCrowdsale.test.js
sed -i -e 's/RefundableCrowdsale.new(this.startTime, this.endTime, rate, wallet, 0, { from: owner })/RefundableCrowdsale.new(this.startTime, this.endTime, rate, wallet, 0, this.token.address, { from: owner })/' test/crowdsale/RefundableCrowdsale.test.js
fi
+ if [ "$name" == "Gnosis" ]; then
+ # Replace fixed-version pragmas in Gnosis (part of Consensys best practice)
+ find contracts test -name '*.sol' -type f -print0 | xargs -0 sed -i -e 's/pragma solidity 0/pragma solidity ^0/'
+ fi
npm run test
)
rm -rf "$DIR"