<commit_before><commit_msg>tests: add integration test for deferred registration<commit_after>#!/bin/bash

# Create two normal IPCPs
rlite-ctl ipcp-create x normal xx || exit 1
#rlite-ctl ipcp-create y shim-loopback yy || exit 1  # TODO
rlite-ctl ipcp-create y normal yy || exit 1
# Register the one into the other
rlite-ctl ipcp-register x yy || exit 1
# Check that registration gets deferred
rlite-ctl regs-show | grep "\<name\>" | grep "\<x\>" && exit 1
# Enable the first one as an enroller
rlite-ctl ipcp-enroller-enable x || exit 1
# Check that the pending registration happened now
rlite-ctl regs-show | grep "\<name\>" | grep "\<x\>" || exit 1
{'fraction_non_alphanumeric': 0.11674347158218126, 'fraction_numerical': 0.010752688172043012, 'mean_word_length': 4.015384615384615, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1203817', 'n_tokens_mistral': 222, 'n_tokens_neox': 208, 'n_words': 85}