10f66f451Sopenharmony_ci#! /bin/sh 20f66f451Sopenharmony_ci 30f66f451Sopenharmony_ciif [ "$#" -lt 4 ]; then 40f66f451Sopenharmony_ci echo "usage: script.sh <bc> <test_output1> <test_output2> <script>" 50f66f451Sopenharmony_ci exit 1 60f66f451Sopenharmony_cifi 70f66f451Sopenharmony_ci 80f66f451Sopenharmony_ciset -e 90f66f451Sopenharmony_ci 100f66f451Sopenharmony_cibc="$1" 110f66f451Sopenharmony_cishift 120f66f451Sopenharmony_ci 130f66f451Sopenharmony_ciout1="$1" 140f66f451Sopenharmony_cishift 150f66f451Sopenharmony_ci 160f66f451Sopenharmony_ciout2="$1" 170f66f451Sopenharmony_cishift 180f66f451Sopenharmony_ci 190f66f451Sopenharmony_ciscript="$1" 200f66f451Sopenharmony_ci 210f66f451Sopenharmony_ciecho "quit" | bc -lq "$script" > "$out1" 220f66f451Sopenharmony_ciecho "quit" | "$bc" -lq "$script" > "$out2" 230f66f451Sopenharmony_ci 240f66f451Sopenharmony_cidiff "$out1" "$out2" 25