commit 2f998515cd50f7d48a4271ffa9ef1d9808dd8503
parent 1f62c6cf8be63082f9674cabd731a01790d0bc74
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Fri, 25 Sep 2015 14:41:43 +0200
Add update script for tests
Changes in the IR are common, and some of them may
fail all the test, so a scrip that update the tests
with the current output of cc1 is a good thing.
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/cc1/tests/update.sh b/cc1/tests/update.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+for i in *.c
+do
+ (echo '/^output/+;/^\*\//-c'
+ ../cc1 -w $i 2>&1
+ printf ".\nw\n") | ed -s $i
+done