patch 9.1.1524: tests: too many imports in the test suite

Problem:  tests: too many imports in the test suite
Solution: Clean up the imported scripts

Most tests make use of check.vim, so let's just source it once in
runtest.vim instead of having each test manually source it.

runtest.vim already sources shared.vim, which again sources
view_util.vim, so we don't need to source those two common
dependencies in all the other tests

And then check.vim sources term_util.vim already, so we can in addition
drop sourcing it explicitly in each single test script.

Note: test_expand_func.vim had to be updated to account for the changed
number of sourced files.

And finally check.vim uses line-continuation so let's also explicitly
enable line continuation via the 'cpo' option value.

related: #17677

Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/testdir/check.vim b/src/testdir/check.vim
index 76f6692..fd160b0 100644
--- a/src/testdir/check.vim
+++ b/src/testdir/check.vim
@@ -1,6 +1,10 @@
 source shared.vim
 source term_util.vim
 
+" uses line-continuation
+let s:cpo_save = &cpo
+set cpo&vim
+
 command -nargs=1 MissingFeature throw 'Skipped: ' .. <args> .. ' feature missing'
 
 " Command to check for the presence of a feature.
@@ -324,4 +328,7 @@
     throw "Skipped: FIXME: this test doesn't work on Github Actions CI"
   endif
 endfunc
+
+let &cpo = s:cpo_save
+unlet s:cpo_save
 " vim: shiftwidth=2 sts=2 expandtab