run_tests.sh (6cec9cad762b6476313fb1f8e931a1647822db6b) run_tests.sh (a0409676120c1e558d0ade943019934e0f15118d)
1#!/bin/sh
2
3if [ $# -lt 1 ] ; then
4 echo 'Specify binary to run as the first argument'
5 exit 1
6fi
7
8

--- 5 unchanged lines hidden (view full) ---

14 cat $_t.out
15 rm $_t.out
16 exit 1
17 fi
18 if [ -f $_t.res ] ; then
19 diff -s $_t.out $_t.res -u 2>/dev/null
20 if [ $? -ne 0 ] ; then
21 rm $_t.out
1#!/bin/sh
2
3if [ $# -lt 1 ] ; then
4 echo 'Specify binary to run as the first argument'
5 exit 1
6fi
7
8

--- 5 unchanged lines hidden (view full) ---

14 cat $_t.out
15 rm $_t.out
16 exit 1
17 fi
18 if [ -f $_t.res ] ; then
19 diff -s $_t.out $_t.res -u 2>/dev/null
20 if [ $? -ne 0 ] ; then
21 rm $_t.out
22 echo "Test: $_t output missmatch"
22 echo "Test: $_t output mismatch"
23 exit 1
24 fi
25 fi
26 rm $_t.out
27done
28
29if [ $# -gt 2 ] ; then
30 $3 ${TEST_DIR}/generate.out
31 diff -s ${TEST_DIR}/generate.out ${TEST_DIR}/generate.res -u 2>/dev/null
32 if [ $? -ne 0 ] ; then
33 rm ${TEST_DIR}/generate.out
23 exit 1
24 fi
25 fi
26 rm $_t.out
27done
28
29if [ $# -gt 2 ] ; then
30 $3 ${TEST_DIR}/generate.out
31 diff -s ${TEST_DIR}/generate.out ${TEST_DIR}/generate.res -u 2>/dev/null
32 if [ $? -ne 0 ] ; then
33 rm ${TEST_DIR}/generate.out
34 echo "Test: generate.res output missmatch"
34 echo "Test: generate.res output mismatch"
35 exit 1
36 fi
37 rm ${TEST_DIR}/generate.out
38fi
39
40if [ $# -gt 3 ] ; then
41 rm /tmp/_ucl_test_schema.out ||true
42 for i in ${TEST_DIR}/schema/*.json ; do

--- 25 unchanged lines hidden ---
35 exit 1
36 fi
37 rm ${TEST_DIR}/generate.out
38fi
39
40if [ $# -gt 3 ] ; then
41 rm /tmp/_ucl_test_schema.out ||true
42 for i in ${TEST_DIR}/schema/*.json ; do

--- 25 unchanged lines hidden ---