Lines Matching refs:test_length
64 calculate_data(FILE *file, const int test_length) in calculate_data() argument
69 assert(test_length >= 4); in calculate_data()
71 (void) fprintf(file, "Testing with TEST_LENGTH = %d\n\n", test_length); in calculate_data()
76 for (i=0; i < test_length; i++) { in calculate_data()
81 bs = bit_alloc(test_length); in calculate_data()
82 clearbits(bs, test_length); in calculate_data()
85 for (i=0; i < test_length; i++) in calculate_data()
88 printbits(file, bs, test_length); in calculate_data()
91 for (i=0; i < test_length; i+=3) in calculate_data()
94 for (i=0; i < test_length; i++) in calculate_data()
97 printbits(file, bs, test_length); in calculate_data()
100 for (i=0; i < test_length; i+=6) in calculate_data()
103 for (i=0; i < test_length; i++) in calculate_data()
106 printbits(file, bs, test_length); in calculate_data()
110 for (i=0; i < test_length; i++) in calculate_data()
113 clearbits(bs, test_length); in calculate_data()
116 for (i=0; i < test_length; i++) in calculate_data()
119 printbits(file, bs, test_length); in calculate_data()
122 bit_nset(bs, 1, test_length - 2); in calculate_data()
124 for (i=0; i < test_length - 2; i++) in calculate_data()
127 printbits(file, bs, test_length); in calculate_data()
129 bit_nclear(bs, 2, test_length - 3); in calculate_data()
131 for (i=0; i < test_length - 4; i++) in calculate_data()
134 printbits(file, bs, test_length); in calculate_data()
136 bit_nclear(bs, 0, test_length - 1); in calculate_data()
138 for (i=0; i < test_length; i++) in calculate_data()
141 printbits(file, bs, test_length); in calculate_data()
142 bit_nset(bs, 0, test_length - 2); in calculate_data()
143 (void) fprintf(file, "be: %3d 0 ",test_length - 1); in calculate_data()
144 for (i=0; i < test_length - 1; i++) in calculate_data()
148 printbits(file, bs, test_length); in calculate_data()
149 bit_nclear(bs, 0, test_length - 1); in calculate_data()
151 for (i=0; i < test_length; i++) in calculate_data()
154 printbits(file, bs, test_length); in calculate_data()
158 for (i=0; i < test_length; i++) { in calculate_data()
159 bit_nclear(bs, 0, test_length - 1); in calculate_data()
160 bit_nset(bs, i, test_length - 1); in calculate_data()
161 (void) fprintf(file, "%3d ", i); printbits(file, bs, test_length); in calculate_data()
166 for (i=0; i < test_length; i++) { in calculate_data()
167 bit_nset(bs, 0, test_length - 1); in calculate_data()
168 bit_nclear(bs, i, test_length - 1); in calculate_data()
169 (void) fprintf(file, "%3d ", i); printbits(file, bs, test_length); in calculate_data()
174 for (i=0; i < test_length; i++) { in calculate_data()
175 bit_nclear(bs, 0, test_length - 1); in calculate_data()
176 bit_nset(bs, 0, test_length - 1 - i); in calculate_data()
177 (void) fprintf(file, "%3d ", i); printbits(file, bs, test_length); in calculate_data()
182 for (i=0; i < test_length; i++) { in calculate_data()
183 bit_nset(bs, 0, test_length - 1); in calculate_data()
184 bit_nclear(bs, 0, test_length - 1 - i); in calculate_data()
185 (void) fprintf(file, "%3d ", i); printbits(file, bs, test_length); in calculate_data()
190 for (i=0; i < test_length; i++) { in calculate_data()
191 bit_nset(bs, 0, test_length - 1); in calculate_data()
193 (void) fprintf(file, "%3d ", i); printbits(file, bs, test_length); in calculate_data()
198 for (i=0; i < test_length; i++) { in calculate_data()
199 bit_nclear(bs, 0, test_length - 1); in calculate_data()
201 (void) fprintf(file, "%3d ", i); printbits(file, bs, test_length); in calculate_data()
208 one_check(const atf_tc_t *tc, const int test_length) in one_check() argument
214 calculate_data(out, test_length); in one_check()
222 atf_tc_get_config_var(tc, "srcdir"), test_length); in one_check()