tlv: Import osmo_shift_* and osmo_match_shift_* from openbsc

These routines have nothing to do with specifically the BSC, so import
them to the TLV parser we keep in libosmogsm.
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 902c1fc..762b10a 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -184,3 +184,9 @@
 cat $abs_srcdir/timer/timer_test.ok > expout
 AT_CHECK([$abs_top_builddir/tests/timer/timer_test -s 5], [0], [expout], [ignore])
 AT_CLEANUP
+
+AT_SETUP([tlv])
+AT_KEYWORDS([tlv])
+cat $abs_srcdir/tlv/tlv_test.ok > expout
+AT_CHECK([$abs_top_builddir/tests/tlv/tlv_test], [0], [expout], [ignore])
+AT_CLEANUP