minor, import truf-test tool to do the opt-parsing for the test script

Signed-off-by: Sebastian Freundt <freundt@fresse.org>
test suite, copy over improved test suite from atem

Now our test suite equals to atem bff04492 minus the option parsing section
(because here they are parsed by ut-test binary).

The tests still need to be fixed and we have to re-add missing feautures (
REFFILE, hexdiff, CDMFILE, multiple SHA1 sums)

Signed-off-by: Sebastian Freundt <freundt@fresse.org>

Conflicts:
	test/ut-test.sh
chore, migrate .truftest files to new test environment

Signed-off-by: Sebastian Freundt <freundt@fresse.org>
tests, add clean rule for local tempdirs

They are not automatically removed when test fails.

Signed-off-by: Sebastian Freundt <freundt@fresse.org>

Conflicts:
	test/Makefile.am
chore, migrate .truftest files to new test environment

Signed-off-by: Sebastian Freundt <freundt@fresse.org>
minor, take schemas and series from ${srcdir}

Signed-off-by: Sebastian Freundt <freundt@fresse.org>
Merge branch 'test/optparser' into next

* test/optparser:
  minor, take schemas and series from ${srcdir}
  chore, migrate .truftest files to new test environment
  tests, add clean rule for local tempdirs
  chore, migrate .truftest files to new test environment
  test suite, copy over improved test suite from atem
  minor, import truf-test tool to do the opt-parsing for the test script
test, provide regressions for trod tool over simple schemas

Signed-off-by: Sebastian Freundt <freundt@fresse.org>
test, provide regressions for trod tool over schemas that span the years

Signed-off-by: Sebastian Freundt <freundt@fresse.org>
fix, PEBKAC, don't use mremap() in init_gq()

Signed-off-by: Sebastian Freundt <freundt@fresse.org>
minor, refactor obtaining the last instant off a troq into troq_last_inst()

Signed-off-by: Sebastian Freundt <freundt@fresse.org>
minor, use troq_last_inst() helper to determine if there was a year flip-over

Signed-off-by: Sebastian Freundt <freundt@fresse.org>
minor, introduce flip-over years (syntax: Mn->Mm for n > m) and detection thereofs

Signed-off-by: Sebastian Freundt <freundt@fresse.org>
minor, return least possible flip-over value

Signed-off-by: Sebastian Freundt <freundt@fresse.org>
minor, don't use flip-over values for the very first event

Signed-off-by: Sebastian Freundt <freundt@fresse.org>
Merge branch 'feat/trod' into next

* feat/trod:
  minor, don't use flip-over values for the very first event
  minor, return least possible flip-over value
  minor, introduce flip-over years (syntax: Mn->Mm for n > m) and detection thereofs
  minor, use troq_last_inst() helper to determine if there was a year flip-over
  minor, refactor obtaining the last instant off a troq into troq_last_inst()
  fix, PEBKAC, don't use mremap() in init_gq()
  test, provide regressions for trod tool over schemas that span the years
  test, provide regressions for trod tool over simple schemas
Merge branch 'next'

* next:
  minor, don't use flip-over values for the very first event
  minor, return least possible flip-over value
  minor, introduce flip-over years (syntax: Mn->Mm for n > m) and detection thereofs
  minor, use troq_last_inst() helper to determine if there was a year flip-over
  minor, refactor obtaining the last instant off a troq into troq_last_inst()
  fix, PEBKAC, don't use mremap() in init_gq()
  test, provide regressions for trod tool over schemas that span the years
  test, provide regressions for trod tool over simple schemas
  minor, take schemas and series from ${srcdir}
  chore, migrate .truftest files to new test environment
  tests, add clean rule for local tempdirs
  chore, migrate .truftest files to new test environment
  test suite, copy over improved test suite from atem
  minor, import truf-test tool to do the opt-parsing for the test script