Correction to: Record which promise set each variable.

Our current Promise may be a copy, that'll be free()d at the end of
the current convergence pass; comparing this to the Promise of a later
assignment won't be equal even if it's the original (or another copy
of it); and dereferencing it during reporting shall be regrettable.
Fortunately, a Promise's .org_pp records the original in any copies,
so we can record that instead, bypassing both problems.
Make testall test what's in the current folder, not `dirname $0`.

This is so that it can be called directly from masterfiles.
Export variables to tests so we can find the enterprise plugin.
Redmine#1900: test basic template and trailing newline
tests/acceptance: improve default_check_strcmp and add default_check_regcmp
Redmine#3122: acceptance test for list interpolation order
Merge pull request #1289 from ediosyncratic/promise-fix

Correction to: Record which promise set each variable.
Merge pull request #1300 from tzz/test/readmine1900-cftemplate-newlines

Redmine#1900: test basic template and trailing newline
Merge pull request #1309 from kacfengine/testall_fixes

Testall fixes
Redmine#3184: acceptance test for editing immutable files
respect CFENGINE_COLOR=1 environment setting
tests: make 01_vars/02_functions/00[12].cf work under archlinux
Merge pull request #1315 from cdituri/core/make-tests-work-under-archlinux

tests: make 01_vars/02_functions/00[12].cf work under archlinux
Follow /bin/sh style of variable exporting.
remove group meta tag from variables, they should have their own group
proper group name for variables
tests/acceptance: s/difference/mismatch/
IsDir2().
Fixed documentation, added TODO.
remove inventory tag from classes that are covered by variables