source: trunk/lib_c/cpp2c/gen_output.sh @ 4051

Last change on this file since 4051 was 3393, checked in by linmengl, 6 years ago

add cpp2c.rb script offically, add testing framework

  • Property svn:executable set to *
File size: 453 bytes
Line 
1#!/bin/bash
2BASE_EXEC=./cpp2c.rb
3FILES=test_data/*
4
5rm -rf output
6mkdir output
7
8echo "--------------Generating output----------------"
9for f in $FILES
10do
11        filename=$(basename "$f")
12        echo "Processing $f file..."
13        $BASE_EXEC $f -o "output/$filename"
14done
15
16echo "--------------Diff result----------------------"
17for f in $FILES
18do
19        filename=$(basename "$f")
20        echo "Diff result of $filename file..."
21        diff "expected_output/$filename" "output/$filename"
22done
Note: See TracBrowser for help on using the repository browser.