~ubuntu-branches/ubuntu/utopic/strongswan/utopic

« back to all changes in this revision

Viewing changes to src/libstrongswan/tests/suites/test_ecdsa.c

  • Committer: Package Import Robot
  • Author(s): Jonathan Davies
  • Date: 2014-01-20 19:00:59 UTC
  • mfrom: (1.2.6)
  • Revision ID: package-import@ubuntu.com-20140120190059-z8e4dl3g8cd09yi5
Tags: 5.1.2~dr3+git20130120-0ubuntu1
* Upstream Git snapshot for build fixes with regards to entropy.
* debian/rules:
  - Enforcing DEB_BUILD_OPTIONS=nostrip for library integrity checking.
  - Set TESTS_REDUCED_KEYLENGTHS to one generate smallest key-lengths in
    tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
222
222
{
223
223
        Suite *s;
224
224
        TCase *tc;
 
225
        int gen_count = countof(key_sizes);
225
226
 
226
227
        s = suite_create("ecdsa");
227
228
 
 
229
        if (getenv("TESTS_REDUCED_KEYLENGTHS") != NULL)
 
230
        {
 
231
                gen_count = min(1, gen_count);
 
232
        }
 
233
 
228
234
        tc = tcase_create("generate");
229
 
        tcase_add_loop_test(tc, test_gen, 0, countof(key_sizes));
 
235
        tcase_add_loop_test(tc, test_gen, 0, gen_count);
230
236
        suite_add_tcase(s, tc);
231
237
 
232
238
        tc = tcase_create("load");