Home | History | Annotate | Download | only in preprocessor
      1 set -e
      2 
      3 function run_test {
      4   SRC=$1
      5   DST=$2
      6   rm -rf $2
      7   versioner $1 -i -o $2
      8   diff -q -w -B $2 expected
      9 }
     10 
     11 run_test headers out
     12 run_test headers/ out
     13 run_test headers out/
     14 run_test headers/ out/
     15 
     16 run_test `pwd`/headers out
     17 run_test `pwd`/headers/ out
     18 run_test `pwd`/headers out/
     19 run_test `pwd`/headers/ out/
     20 
     21 run_test headers `pwd`/out
     22 run_test headers/ `pwd`/out
     23 run_test headers `pwd`/out/
     24 run_test headers/ `pwd`/out/
     25 
     26 run_test `pwd`/headers `pwd`/out
     27 run_test `pwd`/headers/ `pwd`/out
     28 run_test `pwd`/headers `pwd`/out/
     29 run_test `pwd`/headers/ `pwd`/out/
     30