aboutsummaryrefslogtreecommitdiff
path: root/builder_test.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-02-23 13:18:56 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2013-02-23 13:18:56 +0200
commit603625b61c7b1aa073a4008a5b6ce812b56f8015 (patch)
tree0ad7326e0e774ad2ecc80b07e85cdf9eca5ccfc6 /builder_test.py
parent816752f51a5fad8200eefe17908903ccd11bd014 (diff)
downloadmeson-603625b61c7b1aa073a4008a5b6ce812b56f8015.zip
meson-603625b61c7b1aa073a4008a5b6ce812b56f8015.tar.gz
meson-603625b61c7b1aa073a4008a5b6ce812b56f8015.tar.bz2
Builder -> Meson renaming.
Diffstat (limited to 'builder_test.py')
-rwxr-xr-xbuilder_test.py38
1 files changed, 0 insertions, 38 deletions
diff --git a/builder_test.py b/builder_test.py
deleted file mode 100755
index 2cea912..0000000
--- a/builder_test.py
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/python3 -tt
-
-# Copyright 2013 Jussi Pakkanen
-
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-
-# http://www.apache.org/licenses/LICENSE-2.0
-
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-import sys, subprocess
-
-def run_tests(datafilename):
- for line in open(datafilename, 'r'):
- line = line.strip()
- if line == '':
- continue
- p = subprocess.Popen(line, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
- (stdo, stde) = p.communicate()
- if p.returncode != 0:
- print('Error running test.')
- print('Stdout:\n' + stdo)
- print('Stderr:\n' + stde)
- sys.exit(1)
- print('Test "%s": OK' % line)
-
-if __name__ == '__main__':
- if len(sys.argv) != 2:
- print('Test runner for Builder. Do not run on your own, mmm\'kay?')
- print('%s [data file]' % sys.argv[0])
- datafile = sys.argv[1]
- run_tests(datafile)