From 3f0a0c1582f55e0da950a7a321d25ffcf240ec6f Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Wed, 27 Jan 2021 20:01:43 +0200 Subject: Can read project version from a file. --- run_unittests.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'run_unittests.py') diff --git a/run_unittests.py b/run_unittests.py index ffd20d5f3..e2c108faf 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -5212,6 +5212,12 @@ class AllPlatformTests(BasePlatformTests): os.utime(str(cmakefile)) self.assertReconfiguredBuildIsNoop() + def test_version_file(self): + srcdir = os.path.join(self.common_test_dir, '2 cpp') + self.init(srcdir) + projinfo = self.introspect('--projectinfo') + self.assertEqual(projinfo['version'], '1.0.0') + class FailureTests(BasePlatformTests): ''' -- cgit v1.3