From: Peter Verthez Date: Wed, 4 Dec 2002 09:45:36 +0000 (+0000) Subject: Little change, so that test script don't need test name hardcoded. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=c637187356219bc074232a0f4b57481c472b1818;p=gedcom-parse.git Little change, so that test script don't need test name hardcoded. --- diff --git a/t/allged.test b/t/allged.test index 6c16af4..82293f4 100755 --- a/t/allged.test +++ b/t/allged.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_script -2 allged 0 allged.ged +$srcdir/src/test_script -2 $0 0 allged.ged diff --git a/t/allged_gom.test b/t/allged_gom.test index 03b2465..3965063 100755 --- a/t/allged_gom.test +++ b/t/allged_gom.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_gom allged_gom 0 allged.ged +$srcdir/src/test_gom $0 0 allged.ged diff --git a/t/ansel.test b/t/ansel.test index 6b58c4b..d727616 100755 --- a/t/ansel.test +++ b/t/ansel.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_script -2 ansel 0 ansel.ged +$srcdir/src/test_script -2 $0 0 ansel.ged diff --git a/t/ansel_gom.test b/t/ansel_gom.test index d3fb7d5..bccb090 100755 --- a/t/ansel_gom.test +++ b/t/ansel_gom.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_gom ansel_gom 0 ansel.ged +$srcdir/src/test_gom $0 0 ansel.ged diff --git a/t/bogus.test b/t/bogus.test index 43d1cbf..e5b3ac2 100755 --- a/t/bogus.test +++ b/t/bogus.test @@ -1,7 +1,7 @@ #!/bin/sh cp $srcdir/input/bogus.ged bogus.ged -$srcdir/src/test_script -2 -b bogus 0 minimal.ged +$srcdir/src/test_script -2 -b $0 0 minimal.ged result=$? rm bogus.ged exit $result diff --git a/t/dates.test b/t/dates.test index c2ab030..17f4a56 100755 --- a/t/dates.test +++ b/t/dates.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_script -2 dates 0 dates.ged +$srcdir/src/test_script -2 $0 0 dates.ged diff --git a/t/dates_gom.test b/t/dates_gom.test index f413664..604c798 100755 --- a/t/dates_gom.test +++ b/t/dates_gom.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_gom dates_gom 0 dates.ged +$srcdir/src/test_gom $0 0 dates.ged diff --git a/t/encoding_error.test b/t/encoding_error.test index 58f0b2f..38cf328 100755 --- a/t/encoding_error.test +++ b/t/encoding_error.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_script -2 -fn encoding_error 0 encoding_error.ged +$srcdir/src/test_script -2 -fn $0 0 encoding_error.ged diff --git a/t/file_not_exist.test b/t/file_not_exist.test index 941b538..5ae2a13 100755 --- a/t/file_not_exist.test +++ b/t/file_not_exist.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_script file_not_exist 1 ./file_not_exist.ged +$srcdir/src/test_script $0 1 ./file_not_exist.ged diff --git a/t/intl.test b/t/intl.test index 1f6ce7d..e8e1205 100755 --- a/t/intl.test +++ b/t/intl.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_intl intl 0 +$srcdir/src/test_intl $0 0 diff --git a/t/line_nr.test b/t/line_nr.test index 786994c..ae4012f 100755 --- a/t/line_nr.test +++ b/t/line_nr.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_script -2 line_nr 1 line_nr.ged +$srcdir/src/test_script -2 $0 1 line_nr.ged diff --git a/t/minimal.test b/t/minimal.test index 658b3f8..9156dfd 100755 --- a/t/minimal.test +++ b/t/minimal.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_script -2 minimal 0 minimal.ged +$srcdir/src/test_script -2 $0 0 minimal.ged diff --git a/t/src/test_prologue.sh b/t/src/test_prologue.sh index 979c2ae..5a5f330 100644 --- a/t/src/test_prologue.sh +++ b/t/src/test_prologue.sh @@ -13,7 +13,7 @@ do shift done -test_name=$1 +test_name=`echo $1 | sed "s:.*/::" | sed "s:.test::"` shift expected_result=$1 shift diff --git a/t/uhlbomcl.test b/t/uhlbomcl.test index ac9a5f9..cae80fd 100755 --- a/t/uhlbomcl.test +++ b/t/uhlbomcl.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_script -2 uhlbomcl 0 uhlbomcl.ged +$srcdir/src/test_script -2 $0 0 uhlbomcl.ged diff --git a/t/uhlbomcl_gom.test b/t/uhlbomcl_gom.test index 73439b4..1a2fb13 100755 --- a/t/uhlbomcl_gom.test +++ b/t/uhlbomcl_gom.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_gom uhlbomcl_gom 0 uhlbomcl.ged +$srcdir/src/test_gom $0 0 uhlbomcl.ged diff --git a/t/uhlcl.test b/t/uhlcl.test index d64a30c..acf9917 100755 --- a/t/uhlcl.test +++ b/t/uhlcl.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_script -2 uhlcl 0 uhlcl.ged +$srcdir/src/test_script -2 $0 0 uhlcl.ged diff --git a/t/uhlcl_gom.test b/t/uhlcl_gom.test index eb736d0..3618967 100755 --- a/t/uhlcl_gom.test +++ b/t/uhlcl_gom.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_gom uhlcl_gom 0 uhlcl.ged +$srcdir/src/test_gom $0 0 uhlcl.ged diff --git a/t/ulhbomcl.test b/t/ulhbomcl.test index 84f63be..73fc28a 100755 --- a/t/ulhbomcl.test +++ b/t/ulhbomcl.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_script -2 ulhbomcl 0 ulhbomcl.ged +$srcdir/src/test_script -2 $0 0 ulhbomcl.ged diff --git a/t/ulhbomcl_gom.test b/t/ulhbomcl_gom.test index ce3a064..f6e56b6 100755 --- a/t/ulhbomcl_gom.test +++ b/t/ulhbomcl_gom.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_gom ulhbomcl_gom 0 ulhbomcl.ged +$srcdir/src/test_gom $0 0 ulhbomcl.ged diff --git a/t/ulhc.test b/t/ulhc.test index bf415a1..e1d8a45 100755 --- a/t/ulhc.test +++ b/t/ulhc.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_script -2 ulhc 0 ulhc.ged +$srcdir/src/test_script -2 $0 0 ulhc.ged diff --git a/t/ulhc_gom.test b/t/ulhc_gom.test index bec812d..fe92d93 100755 --- a/t/ulhc_gom.test +++ b/t/ulhc_gom.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_gom ulhc_gom 0 ulhc.ged +$srcdir/src/test_gom $0 0 ulhc.ged diff --git a/t/ulhcl.test b/t/ulhcl.test index b0e3dc8..f6e5824 100755 --- a/t/ulhcl.test +++ b/t/ulhcl.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_script -2 ulhcl 0 ulhcl.ged +$srcdir/src/test_script -2 $0 0 ulhcl.ged diff --git a/t/ulhcl_gom.test b/t/ulhcl_gom.test index 77e1688..70c1be5 100755 --- a/t/ulhcl_gom.test +++ b/t/ulhcl_gom.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_gom ulhcl_gom 0 ulhcl.ged +$srcdir/src/test_gom $0 0 ulhcl.ged diff --git a/t/ulhl.test b/t/ulhl.test index c9e4e68..4d80c7c 100755 --- a/t/ulhl.test +++ b/t/ulhl.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_script -2 ulhl 0 ulhl.ged +$srcdir/src/test_script -2 $0 0 ulhl.ged diff --git a/t/ulhl_gom.test b/t/ulhl_gom.test index 5011738..1354f96 100755 --- a/t/ulhl_gom.test +++ b/t/ulhl_gom.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_gom ulhl_gom 0 ulhl.ged +$srcdir/src/test_gom $0 0 ulhl.ged diff --git a/t/ulhlc.test b/t/ulhlc.test index 3ecbe1f..3a91bb5 100755 --- a/t/ulhlc.test +++ b/t/ulhlc.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_script -2 ulhlc 0 ulhlc.ged +$srcdir/src/test_script -2 $0 0 ulhlc.ged diff --git a/t/ulhlc_gom.test b/t/ulhlc_gom.test index 482175e..e6f11d0 100755 --- a/t/ulhlc_gom.test +++ b/t/ulhlc_gom.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_gom ulhlc_gom 0 ulhlc.ged +$srcdir/src/test_gom $0 0 ulhlc.ged diff --git a/t/unknown.test b/t/unknown.test index cfcd4bc..d9fdb13 100755 --- a/t/unknown.test +++ b/t/unknown.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_script unknown 1 unknown.ged +$srcdir/src/test_script $0 1 unknown.ged diff --git a/t/unknown_ignore_errors.test b/t/unknown_ignore_errors.test index 760b163..9ec556c 100755 --- a/t/unknown_ignore_errors.test +++ b/t/unknown_ignore_errors.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_script -fn unknown_ignore_errors 0 unknown.ged +$srcdir/src/test_script -fn $0 0 unknown.ged diff --git a/t/update_basic.test b/t/update_basic.test index 8dd4b05..91435a8 100755 --- a/t/update_basic.test +++ b/t/update_basic.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_update update_basic 0 +$srcdir/src/test_update $0 0 diff --git a/t/update_gom.test b/t/update_gom.test index da1f127..83e74fd 100755 --- a/t/update_gom.test +++ b/t/update_gom.test @@ -1,3 +1,3 @@ #!/bin/sh -$srcdir/src/test_updategom update_gom 0 +$srcdir/src/test_updategom $0 0