summaryrefslogtreecommitdiff
path: root/SDL_Core/src/thirdPartyLibs/jsoncpp/test/generate_expected.py
diff options
context:
space:
mode:
Diffstat (limited to 'SDL_Core/src/thirdPartyLibs/jsoncpp/test/generate_expected.py')
-rw-r--r--SDL_Core/src/thirdPartyLibs/jsoncpp/test/generate_expected.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/SDL_Core/src/thirdPartyLibs/jsoncpp/test/generate_expected.py b/SDL_Core/src/thirdPartyLibs/jsoncpp/test/generate_expected.py
new file mode 100644
index 000000000..5b215c467
--- /dev/null
+++ b/SDL_Core/src/thirdPartyLibs/jsoncpp/test/generate_expected.py
@@ -0,0 +1,11 @@
+import glob
+import os.path
+for path in glob.glob( '*.json' ):
+ text = file(path,'rt').read()
+ target = os.path.splitext(path)[0] + '.expected'
+ if os.path.exists( target ):
+ print 'skipping:', target
+ else:
+ print 'creating:', target
+ file(target,'wt').write(text)
+