[hackers] [scc] Add update script for tests || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Fri, 25 Sep 2015 14:44:25 +0200 (CEST)

commit 2f998515cd50f7d48a4271ffa9ef1d9808dd8503
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Sep 25 14:41:43 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Sep 25 14:41:43 2015 +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.

diff --git a/cc1/tests/update.sh b/cc1/tests/update.sh
new file mode 100755
index 0000000..780320f
--- /dev/null
+++ b/cc1/tests/update.sh
_AT_@ -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
Received on Fri Sep 25 2015 - 14:44:25 CEST

This archive was generated by hypermail 2.3.0 : Fri Sep 25 2015 - 14:48:14 CEST