From af1a266670d040d2f4083ff309d732d648afba2a Mon Sep 17 00:00:00 2001 From: Angelos Mouzakitis Date: Tue, 10 Oct 2023 14:33:42 +0000 Subject: Add submodule dependency files Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec --- meson/test cases/common/70 external test program/meson.build | 3 +++ meson/test cases/common/70 external test program/mytest.py | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 meson/test cases/common/70 external test program/meson.build create mode 100755 meson/test cases/common/70 external test program/mytest.py (limited to 'meson/test cases/common/70 external test program') diff --git a/meson/test cases/common/70 external test program/meson.build b/meson/test cases/common/70 external test program/meson.build new file mode 100644 index 000000000..d18ddcde5 --- /dev/null +++ b/meson/test cases/common/70 external test program/meson.build @@ -0,0 +1,3 @@ +project('test is external', 'c') + +test('external', find_program('mytest.py'), args : ['correct']) diff --git a/meson/test cases/common/70 external test program/mytest.py b/meson/test cases/common/70 external test program/mytest.py new file mode 100755 index 000000000..fee94e03f --- /dev/null +++ b/meson/test cases/common/70 external test program/mytest.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python3 + + +import sys + +if sys.argv[1] == 'correct': + print('Argument is correct.') + sys.exit(0) +print('Argument is incorrect:', sys.argv[1]) +sys.exit(1) -- cgit 1.2.3-korg