Little change, so that test script don't need test name hardcoded.
authorPeter Verthez <Peter.Verthez@advalvas.be>
Wed, 4 Dec 2002 09:45:36 +0000 (09:45 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Wed, 4 Dec 2002 09:45:36 +0000 (09:45 +0000)
31 files changed:
t/allged.test
t/allged_gom.test
t/ansel.test
t/ansel_gom.test
t/bogus.test
t/dates.test
t/dates_gom.test
t/encoding_error.test
t/file_not_exist.test
t/intl.test
t/line_nr.test
t/minimal.test
t/src/test_prologue.sh
t/uhlbomcl.test
t/uhlbomcl_gom.test
t/uhlcl.test
t/uhlcl_gom.test
t/ulhbomcl.test
t/ulhbomcl_gom.test
t/ulhc.test
t/ulhc_gom.test
t/ulhcl.test
t/ulhcl_gom.test
t/ulhl.test
t/ulhl_gom.test
t/ulhlc.test
t/ulhlc_gom.test
t/unknown.test
t/unknown_ignore_errors.test
t/update_basic.test
t/update_gom.test

index 6c16af490a0894413bf4cf1440c7cb1f78fb066a..82293f43c798fc549d325fe5fca24a5f13edb336 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-$srcdir/src/test_script -2 allged 0 allged.ged
+$srcdir/src/test_script -2 $0 0 allged.ged
index 03b24655ac7dc2976373a22ec7570ff3498773d3..3965063dd7d89ae127a767699484d5ba12b84ae0 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-$srcdir/src/test_gom allged_gom 0 allged.ged
+$srcdir/src/test_gom $0 0 allged.ged
index 6b58c4bcb82ae8290e72aa6291518a3bd97ce83d..d727616d9fe996ea03757d7eac11a248cccf9eff 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-$srcdir/src/test_script -2 ansel 0 ansel.ged
+$srcdir/src/test_script -2 $0 0 ansel.ged
index d3fb7d5ca536d12a36127135e9f8b148e2f6af84..bccb090eb249bbc36e391f451f8a411144069ee5 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-$srcdir/src/test_gom ansel_gom 0 ansel.ged
+$srcdir/src/test_gom $0 0 ansel.ged
index 43d1cbffa0fec139362ab37c9a986d81caf7360e..e5b3ac2aaa5173a59814b77215f83ada872e4120 100755 (executable)
@@ -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
index c2ab03052ea0e6c04c5ff4e5e1e3cf615457920f..17f4a56233a0187c744703b02d3deaaeb5442374 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-$srcdir/src/test_script -2 dates 0 dates.ged
+$srcdir/src/test_script -2 $0 0 dates.ged
index f4136640d2d35cf84af5ff2a6de34167b1dd6c5f..604c79809a86128582c4733cf419e71efd1b46fe 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-$srcdir/src/test_gom dates_gom 0 dates.ged
+$srcdir/src/test_gom $0 0 dates.ged
index 58f0b2f98c5065b4d8c5982316d17de9e12d2c32..38cf3289f0e0e1b8db97ce157f654e4890aa0f26 100755 (executable)
@@ -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
index 941b5386861aa23898f40e477d01048f304f998e..5ae2a134da936ba1c77361a9d7d503ccfad6b585 100755 (executable)
@@ -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
index 1f6ce7d9c6104c726eb8e616a13508cd61db9437..e8e1205ae10d1c0f3ccab7840483327b6dae6f7b 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-$srcdir/src/test_intl intl 0
+$srcdir/src/test_intl $0 0
index 786994c257f94558a2bf8565f9f4abc2a4b4dafd..ae4012f0062ad6329b8876d8930c0e2df329ffe2 100755 (executable)
@@ -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
index 658b3f8999b943be517817fe0051dcd0a5e74bd2..9156dfdf1154360996ad6f3f0c578bfc2d4b0720 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-$srcdir/src/test_script -2 minimal 0 minimal.ged
+$srcdir/src/test_script -2 $0 0 minimal.ged
index 979c2ae09a10f4067c497a07685401de496065a8..5a5f330bc8a73badcfc4fe54ab4df25b03f64a60 100644 (file)
@@ -13,7 +13,7 @@ do
   shift
 done
 
-test_name=$1
+test_name=`echo $1 | sed "s:.*/::" | sed "s:.test::"`
 shift
 expected_result=$1
 shift
index ac9a5f96208de8b7e749219ab5eed4862a76dbcd..cae80fd6af3b3465891d34306c93b4dce709b205 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-$srcdir/src/test_script -2 uhlbomcl 0 uhlbomcl.ged
+$srcdir/src/test_script -2 $0 0 uhlbomcl.ged
index 73439b4927567c8f30a455b411be30ccce0ecf10..1a2fb138dc458721de621aac5d5534eb37c4e06e 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-$srcdir/src/test_gom uhlbomcl_gom 0 uhlbomcl.ged
+$srcdir/src/test_gom $0 0 uhlbomcl.ged
index d64a30c825d021c6c8ba5b3304de2e2830b17e0c..acf99171e0834a4ec808e02aa4a5be0e10f8d2d4 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-$srcdir/src/test_script -2 uhlcl 0 uhlcl.ged
+$srcdir/src/test_script -2 $0 0 uhlcl.ged
index eb736d0f643789e3ace6281367770056c79499cc..36189672c9db9544ae8dc685a71013a3cbff444d 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-$srcdir/src/test_gom uhlcl_gom 0 uhlcl.ged
+$srcdir/src/test_gom $0 0 uhlcl.ged
index 84f63be6f5d409f383bf35098b79b70744896f5b..73fc28ae4cb5a8333adedd88eb08c15b4aef67b5 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-$srcdir/src/test_script -2 ulhbomcl 0 ulhbomcl.ged
+$srcdir/src/test_script -2 $0 0 ulhbomcl.ged
index ce3a064743c6739a95e033f2aeb8b7673dfee675..f6e56b65928113f6a56231e52aec2011a3e17e49 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-$srcdir/src/test_gom ulhbomcl_gom 0 ulhbomcl.ged
+$srcdir/src/test_gom $0 0 ulhbomcl.ged
index bf415a1808da93268c83a3184a28005b7d7f4354..e1d8a45f4dd13b8cecd0e470640b0e39c37290ea 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-$srcdir/src/test_script -2 ulhc 0 ulhc.ged
+$srcdir/src/test_script -2 $0 0 ulhc.ged
index bec812d412e6857c7738636b3fa900a75fee8ac3..fe92d93f6d06fe8743b2a1b3aa692720d98c200c 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-$srcdir/src/test_gom ulhc_gom 0 ulhc.ged
+$srcdir/src/test_gom $0 0 ulhc.ged
index b0e3dc8eb2780d615e513d0e73b3f49574f1ef6b..f6e5824522995b0616c3c8362144e0b4d1e66377 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-$srcdir/src/test_script -2 ulhcl 0 ulhcl.ged
+$srcdir/src/test_script -2 $0 0 ulhcl.ged
index 77e16885d1b2f952622162528a260278bacf7638..70c1be5e5939d0bd959a72db68887c0fa1aa676d 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-$srcdir/src/test_gom ulhcl_gom 0 ulhcl.ged
+$srcdir/src/test_gom $0 0 ulhcl.ged
index c9e4e683b3fe7558bb51fd91daf191d65081e2ce..4d80c7c860b161d1537385d2539fdd5ba7c13606 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-$srcdir/src/test_script -2 ulhl 0 ulhl.ged
+$srcdir/src/test_script -2 $0 0 ulhl.ged
index 50117385e44aa5ee448ecb1b6a34c12f8fc11d03..1354f96b05e41de8871d1bae1614f8f1ad93ec33 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-$srcdir/src/test_gom ulhl_gom 0 ulhl.ged
+$srcdir/src/test_gom $0 0 ulhl.ged
index 3ecbe1fd271d1b6ded381e00a8221e35bd2b5e0d..3a91bb5b166b4ae0ce5b9b64cbedca483e4834c8 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-$srcdir/src/test_script -2 ulhlc 0 ulhlc.ged
+$srcdir/src/test_script -2 $0 0 ulhlc.ged
index 482175e75fb31c80446deacc0a2bda893735a885..e6f11d090e1391df3eb1bf39813879ff14c84486 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-$srcdir/src/test_gom ulhlc_gom 0 ulhlc.ged
+$srcdir/src/test_gom $0 0 ulhlc.ged
index cfcd4bc7def786bf56025a8cfa68ece7c935c8ac..d9fdb13b1b0bb042fef2b9d4010ba58ac0c84e2f 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-$srcdir/src/test_script unknown 1 unknown.ged
+$srcdir/src/test_script $0 1 unknown.ged
index 760b16311c0fffc7ceb9a0052d55079b0ef3a772..9ec556c3903de522492cdba809f605cd27ae0bb4 100755 (executable)
@@ -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
index 8dd4b05cbfdf1342d132b4f9f7292179a16c3b7d..91435a8f211096a8e408f94d2800bed8b3c7350c 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-$srcdir/src/test_update update_basic 0
+$srcdir/src/test_update $0 0
index da1f127805362b168a7799e57fb607bbb4d4138b..83e74fd4b844707def2f27ff0469163f30afa302 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-$srcdir/src/test_updategom update_gom 0
+$srcdir/src/test_updategom $0 0