summaryrefslogtreecommitdiff
path: root/conformance/dotest
diff options
context:
space:
mode:
authorbehdad <behdad>2001-03-03 18:27:19 +0000
committerbehdad <behdad>2001-03-03 18:27:19 +0000
commit1ab9db4e0f57fd7217748fcfb833471d71169804 (patch)
tree90b7f4d94a9a3f7630a4e1e72f0d1bd687c320b9 /conformance/dotest
parentb20eaeeafbd5f8595ef4ac02cd7311c60cd45a26 (diff)
Tried to do what dov asked in
http://www.geocrawler.com/archives/3/8938/2001/2/0/5226724/ Also, cleaned some conformance-testing scripts.
Diffstat (limited to 'conformance/dotest')
-rwxr-xr-xconformance/dotest13
1 files changed, 10 insertions, 3 deletions
diff --git a/conformance/dotest b/conformance/dotest
index 8599244..6524257 100755
--- a/conformance/dotest
+++ b/conformance/dotest
@@ -1,5 +1,12 @@
#!/bin/sh
-# Generate and test a single test data
+# Generate and test a single test data.
-./test_gen_rand $1 > test.in
-cat test.in | ./test -clean $2 $3
+path=`dirname $0`
+
+if ! test -f "$path/test_gen_rand"; then
+ gcc -o $path/test_gen_rand $path/test_gen_rand.c
+fi
+
+$path/test_gen_rand $1 > $path/test.in
+shift
+cat $path/test.in | $path/test -clean $@