aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael <michaelbrockus@gmail.com>2020-03-02 08:38:22 -0800
committerJussi Pakkanen <jpakkane@gmail.com>2020-03-08 13:52:01 +0200
commita16db4e9185fcf060ea3e336cbffbe16018be934 (patch)
treead8a9de14cb15ac3782f70c0affcef040142201f
parent99202c9ccdcb35894b2743c9eb505791412b196b (diff)
downloadmeson-a16db4e9185fcf060ea3e336cbffbe16018be934.zip
meson-a16db4e9185fcf060ea3e336cbffbe16018be934.tar.gz
meson-a16db4e9185fcf060ea3e336cbffbe16018be934.tar.bz2
update test_templates
-rwxr-xr-xrun_unittests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 4ab2d75..e254d4a 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -3332,6 +3332,11 @@ int main(int argc, char **argv) {
with open(os.path.join(tmpdir, 'foo.' + lang), 'w') as f:
f.write('int main(void) {}')
self._run(self.meson_command + ['init', '-b'], workdir=tmpdir)
+ elif lang in ('java'):
+ with tempfile.TemporaryDirectory() as tmpdir:
+ with open(os.path.join(tmpdir, 'Foo.' + lang), 'w') as f:
+ f.write('public class Foo { public static void main() {} }')
+ self._run(self.meson_command + ['init', '-b'], workdir=tmpdir)
# The test uses mocking and thus requires that
# the current process is the one to run the Meson steps.