summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2009-05-28 13:15:34 +0100
committerRichard W.M. Jones <rjones@redhat.com>2009-05-28 13:15:34 +0100
commite2206733d1287f5809dbde954f3eb64420471b0d (patch)
tree0f8efec3202e0577e581aa87ac443be82b38ad71 /src
parenta1e8cdf2a254c5eddaf525cd7c34e4c937690204 (diff)
downloadlibguestfs-e2206733d1287f5809dbde954f3eb64420471b0d.tar.gz
libguestfs-e2206733d1287f5809dbde954f3eb64420471b0d.tar.xz
libguestfs-e2206733d1287f5809dbde954f3eb64420471b0d.zip
Move C API tests out of root build dir into 'capitests' subdir.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/generator.ml7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/generator.ml b/src/generator.ml
index 03439aa0..67415412 100755
--- a/src/generator.ml
+++ b/src/generator.ml
@@ -3717,10 +3717,7 @@ int main (int argc, char *argv[])
guestfs_set_error_handler (g, print_error, NULL);
- srcdir = getenv (\"srcdir\");
- if (!srcdir) srcdir = \".\";
- chdir (srcdir);
- guestfs_set_path (g, \"appliance\");
+ guestfs_set_path (g, \"../appliance\");
filename = \"test1.img\";
fd = open (filename, O_WRONLY|O_CREAT|O_NOCTTY|O_NONBLOCK|O_TRUNC, 0666);
@@ -7182,7 +7179,7 @@ Run it from the top source directory using the command
generate_daemon_actions ();
close ();
- let close = output_to "tests.c" in
+ let close = output_to "capitests/tests.c" in
generate_tests ();
close ();