diff options
author | max99x <max99x@gmail.com> | 2011-07-22 21:36:14 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-07-22 23:31:57 +0300 |
commit | 5f9646ca267736036e87afc965e665539eed3578 (patch) | |
tree | 29f7928e8e37fc7a968434b8fad87d25ce2b5e8f /tests/runner.py | |
parent | 4f25c5b69954137557da89973f10d121cdb4a980 (diff) |
Added FS.analyzePath() which will simplify some library functions.
Diffstat (limited to 'tests/runner.py')
-rw-r--r-- | tests/runner.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index 99ab9974..b673b45c 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -2404,6 +2404,17 @@ if 'benchmark' not in sys.argv: ''' self.do_test(src, re.sub('(^|\n)\s+', '\\1', expected), post_build=addPreRunAndChecks) + def test_fs_base(self): + global INCLUDE_FULL_LIBRARY; INCLUDE_FULL_LIBRARY = 1 + def addJS(filename): + src = open(filename, 'r').read().replace( + '// {{PRE_RUN_ADDITIONS}}', + open(path_from_root('tests', 'filesystem', 'src.js'), 'r').read()) + open(filename, 'w').write(src) + src = 'int main() {return 0;}\n' + expected = open(path_from_root('tests', 'filesystem', 'output.txt'), 'r').read() + self.do_test(src, expected, post_build=addJS) + ### 'Big' tests def test_fannkuch(self): |