cosmetic: refactor auc_compute_vectors(), add debug log
Make the generation logic easier to understand (hopefully).
Massively extend debug logging, which serves to illustrate the current AUTS
failure shown by auc_3g_test.
Since DAUC now logs the vectors, there is no need to print the vectors in
VEC_IS() in auc_3g_test and auc_ts_55_205_test_sets anymore. Adjust testlog
expectations accordingly.
Change-Id: Ifb36d010a4ac64c765517e15b9074424ec19cc60
diff --git a/tests/auc/auc_3g_test.c b/tests/auc/auc_3g_test.c
index f8ff67a..51184c5 100644
--- a/tests/auc/auc_3g_test.c
+++ b/tests/auc/auc_3g_test.c
@@ -69,7 +69,6 @@
#define VEC_IS(vec, expect) do { \
char *_is = vec_str(vec); \
- fprintf(stderr, "auth vector ==\n%s\n", _is); \
if (strcmp(_is, expect)) { \
fprintf(stderr, "MISMATCH! expected ==\n%s\n", \
expect); \
@@ -84,7 +83,8 @@
} \
} \
OSMO_ASSERT(false); \
- } \
+ } else \
+ fprintf(stderr, "vector matches expectations\n"); \
} while (0)
uint8_t fake_rand[16] = { 0 };