Switch to testing on Ubuntu 16.04 and 22.04.
authorCarl Hetherington <cth@carlh.net>
Mon, 9 Oct 2023 22:50:57 +0000 (00:50 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 10 Oct 2023 08:58:39 +0000 (10:58 +0200)
cscript

diff --git a/cscript b/cscript
index f7e8e1bfdae05334c8c8f03d731161699c036a36..ab52e4d3631050b72d22089101c7e7380123b550 100644 (file)
--- a/cscript
+++ b/cscript
@@ -41,8 +41,8 @@ def build(target, options):
     cmd = './waf configure --disable-examples --disable-dumpimage --disable-benchmarks --prefix=%s' % target.directory
     if target.platform == 'linux':
         cmd += ' --static'
-        if not (target.distro == 'ubuntu' and target.version == '18.04'):
-            # We only build tests on Ubuntu 18.04
+        if target.distro != 'ubuntu' or not target.version in ('16.04', '22.04'):
+            # We only build tests on Ubuntu 16.04 and 22.04
             cmd += ' --disable-tests'
     elif target.platform == 'windows':
         cmd += f' --target-windows-{target.bits}'