Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(409)

Unified Diff: doxypypy/doxypypy/test/make_samples.sh

Issue 1574883002: add doxypypy and py_filter so this will turn google style (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: doxypypy/doxypypy/test/make_samples.sh
diff --git a/doxypypy/doxypypy/test/make_samples.sh b/doxypypy/doxypypy/test/make_samples.sh
new file mode 100755
index 0000000000000000000000000000000000000000..f720dacc1b2a96c5969752a25c5075bbe2d7122a
--- /dev/null
+++ b/doxypypy/doxypypy/test/make_samples.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+# This script will recreate all the "gold standard" output files based on
+# a run of the existing software. DO NOT RUN THIS UNLESS YOU ARE WILLING
+# TO MANUALLY INSPECT ALL OUTPUT FILES AFTER EXECUTION. FAILING TO DO SO
+# WILL MAKE THE RELEVANT TESTS USELESS.
+
+for sample in sample_*.py;do
+ case $sample in
+ *.out*.py) :;;
+ *) sampleBase=`basename -s .py $sample`
+ echo "Processing" $sampleBase
+ ../doxypypy.py --autocode --autobrief --ns=$sampleBase $sample > $sampleBase.out.py
+ ../doxypypy.py --autocode --autobrief $sample > $sampleBase.outnn.py
+ ../doxypypy.py --autobrief --ns=$sampleBase $sample > $sampleBase.outnc.py
+ ../doxypypy.py $sample > $sampleBase.outbare.py
+ esac
+done
+
+echo "Processing complete."
+echo
+echo "Now you must visually inspect each output file and verify that"
+echo "it will properly serve as a new gold standard for future"
+echo "comparisons. Failing to do so will make all the comparison"
+echo "tests a waste of time."
+

Powered by Google App Engine
This is Rietveld 408576698