summaryrefslogtreecommitdiffstats
path: root/test cases/common/69 configure file in custom target/src/mycompiler.py
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/common/69 configure file in custom target/src/mycompiler.py')
-rw-r--r--test cases/common/69 configure file in custom target/src/mycompiler.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test cases/common/69 configure file in custom target/src/mycompiler.py b/test cases/common/69 configure file in custom target/src/mycompiler.py
new file mode 100644
index 0000000..b00c862
--- /dev/null
+++ b/test cases/common/69 configure file in custom target/src/mycompiler.py
@@ -0,0 +1,9 @@
+#!/usr/bin/env python3
+
+import sys
+
+with open(sys.argv[1]) as ifile:
+ if ifile.readline().strip() != '42':
+ print('Incorrect input')
+with open(sys.argv[2], 'w') as ofile:
+ ofile.write('Success\n')