symm/: Eliminate the remaining checked-in stubby source files.
[catacomb] / symm / safer.c
index a75e614..569eb83 100644 (file)
@@ -318,6 +318,29 @@ void safer_dblk(const safer_ctx *k, const uint32 *src, uint32 *dst)
   PACK(dst, a, b, c, d, e, f, g, h);
 }
 
-BLKC_TEST(SAFER, safer)
+/*----- Test rig ----------------------------------------------------------*/
+
+#ifdef TEST_RIG
+
+#include <mLib/testrig.h>
+
+#define CIPHERS(_)                                                     \
+  _(SAFER, safer)                                                      \
+  _(SAFERSK, safersk)
+
+CIPHERS(BLKC_VERIFY)
+
+static const test_chunk defs[] = {
+  CIPHERS(BLKC_TESTDEFS)
+  { 0, 0, { 0 } }
+};
+
+int main(int argc, char *argv[])
+{
+  test_run(argc, argv, defs, SRCDIR "/t/safer");
+  return (0);
+}
+
+#endif
 
 /*----- That's all, folks -------------------------------------------------*/