diff options
author | Björn Gustavsson <[email protected]> | 2014-05-05 11:43:45 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2014-06-05 13:46:27 +0200 |
commit | 11c9fe198466c8307085478ead2146e077c68098 (patch) | |
tree | 260c26e22e9cda44980e4fa8a3126be080e0da2d /lib/asn1/test/testNBAPsystem.erl | |
parent | 4e52582561f16a8c4ccd131f3421003714ccfebd (diff) | |
download | otp-11c9fe198466c8307085478ead2146e077c68098.tar.gz otp-11c9fe198466c8307085478ead2146e077c68098.tar.bz2 otp-11c9fe198466c8307085478ead2146e077c68098.zip |
Test suites: Add support for running Dialyzer on generated code
Running dialyzer on test suites is good for finding both bugs and
useless dialyzer warnings. Add a mechanism in asn1_test_lib for
turning on running of dialyzer on all generated code.
Turned off by default, because it is slow and because there are
still a few dialyzer warnings left.
Diffstat (limited to 'lib/asn1/test/testNBAPsystem.erl')
-rw-r--r-- | lib/asn1/test/testNBAPsystem.erl | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/asn1/test/testNBAPsystem.erl b/lib/asn1/test/testNBAPsystem.erl index 57cb483374..e37e22163a 100644 --- a/lib/asn1/test/testNBAPsystem.erl +++ b/lib/asn1/test/testNBAPsystem.erl @@ -79,13 +79,14 @@ powerRaiseLimit, dLPowerAveragingWindowSize, 'iE-Extensions' = asn1_NOVALUE}). compile(Config, Options) -> - [asn1_test_lib:compile(filename:join([nbapsystem, M]), Config, Options) - || M <- ["NBAP-CommonDataTypes.asn", - "NBAP-IEs.asn", - "NBAP-PDU-Contents.asn", - "NBAP-PDU-Discriptions.asn", - "NBAP-Constants.asn", - "NBAP-Containers.asn"]], + Fs = [filename:join("nbapsystem", M) || + M <- ["NBAP-CommonDataTypes.asn", + "NBAP-IEs.asn", + "NBAP-PDU-Contents.asn", + "NBAP-PDU-Discriptions.asn", + "NBAP-Constants.asn", + "NBAP-Containers.asn"]], + asn1_test_lib:compile_all(Fs, Config, Options), ok. |