aboutsummaryrefslogtreecommitdiff
path: root/test cases/common/137 build by default/mygen.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2017-01-26 18:37:34 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2017-01-28 01:05:19 +0530
commit4677f37366b2b57053e065d9bb188191dddfa5e9 (patch)
tree320575107fcc812053cbd55f9e5f6c390075bf9a /test cases/common/137 build by default/mygen.py
parent01547e8c613dfcdef6e38802b384df4eddaf062c (diff)
downloadmeson-4677f37366b2b57053e065d9bb188191dddfa5e9.zip
meson-4677f37366b2b57053e065d9bb188191dddfa5e9.tar.gz
meson-4677f37366b2b57053e065d9bb188191dddfa5e9.tar.bz2
tests: Move build-by-default unit test to common tests
Also add a test() that can be run on all platforms. Currently unit tests are only run on Linux, so this was only testing the Ninja backend. This change reveals that build-by-default was broken with the Visual Studio backend.
Diffstat (limited to 'test cases/common/137 build by default/mygen.py')
-rw-r--r--test cases/common/137 build by default/mygen.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test cases/common/137 build by default/mygen.py b/test cases/common/137 build by default/mygen.py
new file mode 100644
index 0000000..5a74153
--- /dev/null
+++ b/test cases/common/137 build by default/mygen.py
@@ -0,0 +1,8 @@
+#!/usr/bin/env python3
+
+import sys
+
+ifile = open(sys.argv[1])
+ofile = open(sys.argv[2], 'w')
+
+ofile.write(ifile.read())