]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
busy porting tests.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 17 Jun 2008 15:21:48 +0000 (15:21 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 17 Jun 2008 15:21:48 +0000 (15:21 +0000)
git-svn-id: file:///svn/unbound/trunk@1125 be551aaa-1e26-0410-a405-d3ace91eadb9

testcode/mini_tpkg.sh
testcode/testbound.c

index 5b376432c159e1753c1f653674e4e165eb5bc896..6e89a3986f05a1905cbdecd897e769abfb356fd0 100755 (executable)
@@ -56,7 +56,11 @@ dir=$name.$$
 result=result.$name
 done=.done-$name
 success="no"
-shell="bash"
+if test -x "`which bash`"; then
+       shell="bash"
+else
+       shell="sh"
+fi
 
 # check already done
 if test -f .done-$name; then
index 78b14aafbfb7be3af5aec499f4b00ddf86adc374..fcb4ab8cd29011b6dfda981c997570b0408be808 100644 (file)
@@ -127,8 +127,13 @@ setup_config(FILE* in, char* configfile, int* lineno,
        char line[MAX_LINE_LEN];
        char* parse;
        FILE* cfg;
+#ifdef USE_WINSOCK
+       snprintf(configfile, MAX_LINE_LEN, "testbound_cfg_%u.tmp", 
+               (unsigned)getpid());
+#else
        snprintf(configfile, MAX_LINE_LEN, "/tmp/testbound_cfg_%u.tmp", 
                (unsigned)getpid());
+#endif
        add_opts("-c", pass_argc, pass_argv);
        add_opts(configfile, pass_argc, pass_argv);
        cfg = fopen(configfile, "w");