Skip to content

Commit 93cbab4

Browse files
committed
tests: integration: test dapp---use and seth---use
1 parent ceda76e commit 93cbab4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/dapp-tests/integration/tests.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,24 @@ test_custom_solc_json() {
226226
assert "[[ -f out/dapp.sol.json ]]"
227227
}
228228

229+
test_dapp_use() {
230+
# init custom json
231+
dapp mk-standard-json > config.json
232+
233+
# build with custom json
234+
DAPP_STANDARD_JSON="config.json" dapp --use solc:"0.5.15" build
235+
assert "[[ -f out/dapp.sol.json ]]"
236+
}
237+
238+
test_seth_use() {
239+
# init custom json
240+
dapp mk-standard-json > config.json
241+
242+
# build with custom json
243+
DAPP_STANDARD_JSON="config.json" dapp --use solc:"0.5.15" build
244+
assert "[[ -f out/dapp.sol.json ]]"
245+
}
246+
229247
test_gas_snapshots() {
230248
tmp=$(mktemp -d)
231249

0 commit comments

Comments
 (0)