summaryrefslogtreecommitdiffstats
path: root/haskell
Commit message (Collapse)AuthorAgeFilesLines
* generator: Rename 'add_drive_opts' API to 'add_drive'.Richard W.M. Jones2012-07-141-1/+1
| | | | | | By using the once_had_no_optargs flag, this change is backwards compatible for callers (except Haskell, PHP and GObject as discussed in earlier commit).
* tests: Reformat TESTS_ENVIRONMENT so all use a standard format.Richard W.M. Jones2012-06-281-3/+1
| | | | No functional change.
* tests: Add ./run --test option.Richard W.M. Jones2012-06-261-1/+1
| | | | | | | This option, when added via TESTS_ENVIRONMENT = [...] $(top_builddir)/run --test allows us to run the tests and only print the full output (including debugging etc) when the test fails.
* maint: use $var notation rather than ${var} when possibleJim Meyering2012-01-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I noticed some uses of ${srcdir} in shell scripts. That is almost always better written as $srcdir. The patch below converts most such variable references. Here are the few remaining candidates: $ git grep -i -E '\$\{[a-zA-Z_0-9]+\}'|grep -v Makefile.in.in configure.ac: JAR_INSTALL_DIR=\${prefix}/share/java configure.ac: JNI_INSTALL_DIR=\${libdir} debian/rules: for TEST in ${DEBIAN_SKIP_TEST}; do \ debian/rules:# mv $${mod} $$(dirname $${mod})/libguestfsmod.so; \ java/Makefile.am:libguestfs_jar_DATA = libguestfs-${VERSION}.jar java/Makefile.am:libguestfs-${VERSION}.jar: $(libguestfs_jar_class_files) perl/lib/Sys/Guestfs/Lib.pm: "-f", '${Package} ${Version} ${Architecture} ${Status}\n', perl/typemap: croak (\"${Package}::$func_name(): called on a closed handle\"); perl/typemap: croak (\"${Package}::$func_name(): $var is not a blessed HV reference\"); tests/data/Makefile.am: echo "$${i}abcdefghijklmnopqrstuvwxyz"; \ We could change all of those, too, except the ones in configure.ac and Makefile.am, since they refer to Make variables. Even those should be changed, but to use the preferred Makefile notation: $(prefix), $(libdir), $(VERSION). >From a86770ecd45666232a94d76c8725c8f9b1c76e3a Mon Sep 17 00:00:00 2001 From: Jim Meyering <meyering@redhat.com> Date: Mon, 23 Jan 2012 11:15:12 +0100 Subject: [PATCH libguestfs] maint: use $var notation rather than ${var} when possible The only case to avoid in a shell script is when the byte after the "}" is word-constituent, and concatenating it would thus change the name of the variable. These changes were induced by running this command: git grep -l -i -E '\$\{(srcdir|md)' \ |xargs perl -pi -e 's/\$\{(srcdir|md)\}($|\w)/\$$1$2/gi' The "g" was needed because there was one line with two instances. The "i" is to handle ${SRCDIR}. The ($|\w) ensures that concatenating whatever follows the "}" won't change semantics. * gobject/run-bindtests: Use "$srcdir", not "${srcdir}". * haskell/run-bindtests: Likewise. * java/run-bindtests: Likewise. * ocaml/run-bindtests: Likewise. * perl/run-bindtests: Likewise. * python/run-bindtests: Likewise. * ruby/run-bindtests: Likewise. * tests/guests/guest-aux/make-debian-img.sh: Likewise, but $SRCDIR. * tests/guests/guest-aux/make-ubuntu-img.sh: Likewise. * tests/guests/guest-aux/make-windows-img.sh: Likewise. * tests/md/test-mdadm.sh: Likewise, but $md.
* Do not run appliance-related checks if not building applianceHilko Bengen2012-01-231-0/+2
|
* Replace setting of environment variables with usage of local run scriptHilko Bengen2012-01-231-3/+1
| | | | (Includes fix by RWMJ)
* bindtests: Test optargs in test0Matthew Booth2012-01-201-3/+5
| | | | | | | | Note that this change disables compiling and running the haskell bindtests. The haskell bindings do not implement optargs, and adding optargs to test0 causes that method not to be bound in the haskell bindings. This prevents the haskell bindtests from compiling. These should be re-enabled when optargs are implemented.
* Tempus fugit.Richard W.M. Jones2012-01-181-1/+1
| | | | Update all copyright dates to 2012.
* out of tree build: haskellHilko Bengen2011-11-161-6/+6
|
* Update FSF address.Matthew Booth2011-11-084-4/+4
|
* out-of-tree build: fixed bindtests and inspectorHilko Bengen2011-10-211-1/+1
|
* build: Set TMPDIR for local testing.Richard W.M. Jones2011-08-081-0/+1
| | | | | | This avoids conflicts with the globally installed libguestfs appliance, or lets us build in multiple local directories at the same time without conflicts.
* haskell: Small fixes for ghc 7.Richard W.M. Jones2011-03-181-1/+1
|
* haskell: Combine tests to reduce number of launches.Richard W.M. Jones2010-11-303-42/+6
|
* build: Fix parallel build of haskell bindingsMatthew Booth2009-11-191-7/+13
| | | | | | | ghc isn't clever enough not to stomp on itself when building dependencies. This change makes the 1 dependency explicit. It also adds a dependency on src/libguestfs.la.
* build: Fix inter-directory dependenciesMatthew Booth2009-11-191-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds an explicit dependency on generator.ml for every file it generates, except java files. Java is left for another time because it's considerably trickier. It also adds a build rule for src/libguestfs.la so it can be rebuilt as required from other directories. It does this by creating a top level make file, subdir-rules.mk, which can be included from sub-directories. sub-directories need to define 'generator_built' to include local files which are built by generator.ml, and they will be updated automatically. This fixes parallel make, and will automatically re-create generated files when make is run from any directory. It also fixes the problem which efad4f53 was targetting. Specifically, src/guestfs_protocol.(c|h) had an erroneous dependency on stamp-generator, and therefore generator.ml, despite not being directly created by it. This caused them to be recreated every time generator.ml ran rather than only when src/guestfs_protocol.x was updated, which cascaded into a daemon and therefore appliance update. This patch also changes the contents of the distribution tarball by including files created by rpcgen.
* Remove guestfs_wait_ready (turn it into a no-op).Richard Jones2009-09-212-2/+0
| | | | | | | | | | | | | | This commit changes guestfs_launch so that it both launches the appliance and waits until it is ready (ie. the daemon communicates back to us). Since we removed the pretence that we could implement a low-level asynchronous API, the need to call launch() followed by wait_ready() has looked a bit silly. Now guestfs_wait_ready() is basically a no-op. It is left in the API for backwards compatibility. Any calls to guestfs_wait_ready() can be removed from client code.
* build: remove trailing blank lines; enable the syntax-check ruleJim Meyering2009-08-041-1/+0
| | | | | | | | | | | | | | * cfg.mk (disable_temporarily): Remove sc_prohibit_trailing_blank_lines. * appliance/Makefile.am: Remove trailing blank line(s). * appliance/debian/modules/y0_install-guestfsd: Likewise. * appliance/make.sh.in: Likewise. * appliance/packagelist.in: Likewise. * appliance/update.sh.in: Likewise. * haskell/run-bindtests: Likewise. * ocaml/run-bindtests: Likewise. * python/run-python-tests: Likewise. * recipes/squashfs.example: Likewise. * ruby/run-ruby-tests: Likewise.
* Make it possible to build in a separate directoryMatthew Booth2009-07-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | This patch allows you to do: mkdir build cd build ../configure ... make This will output all generated files to the build directory. Given that autogen automatically runs configure, you can also do: BUILDDIR=./build ./autogen.sh which will do the right thing. Also: * Fix a dependency bug which means that guestfs_protocol.h isn't automatically rebuilt. * Re-running autogen.sh with no arguments won't blow away your previous configure arguments.
* Remove generated code from git.Richard W.M. Jones2009-07-022-1520/+0
| | | | | | | | Git users now require the OCaml compiler in order to regenerate the generated code after a checkout. Generated code will remain in the tarball, so users of the source tarball will not need the OCaml compiler.
* Generated code for mknod, mkfifo, mknod_b, mknod_c, umask.Richard W.M. Jones2009-06-301-1/+66
|
* Generated code for 'set_memsize'/'get_memsize' calls.Richard W.M. Jones2009-06-301-0/+26
|
* Generated code for the 'mkswap*' commands.Richard W.M. Jones2009-06-291-1/+40
|
* Generated code for mount-loop command.Richard W.M. Jones2009-06-291-1/+14
|
* Generated code for 'du' command.Richard W.M. Jones2009-06-291-1/+14
|
* Generated code for head/tail commands.Richard W.M. Jones2009-06-291-2/+2
|
* Generated code for 'wc_*' commands.Richard W.M. Jones2009-06-291-1/+40
|
* Haskell bindings: Implement bindtests.Richard W.M. Jones2009-06-284-2/+70
|
* Haskell bindings: Int and Int64 return types.Richard W.M. Jones2009-06-281-0/+169
|
* Haskell bindings: fix boolean arguments.Richard W.M. Jones2009-06-281-0/+78
|
* Haskell bindings: Fix integer arguments.Richard W.M. Jones2009-06-281-0/+144
|
* Generated code for 'scrub-*' commands.Richard W.M. Jones2009-06-231-1/+40
|
* Generated code for 'add_drive_ro' call.Richard Jones2009-06-021-0/+13
|
* Add tests for bindings parameters, fix several broken bindings.Richard W.M. Jones2009-05-281-0/+0
|
* Move the appliance and build scripts into new appliance/ subdirectory.Richard W.M. Jones2009-05-281-2/+2
|
* Generated code for e2fsck-f command.Richard Jones2009-05-211-1/+14
|
* Generated code for lvresize, resize2fs.Richard Jones2009-05-181-1/+14
|
* Add: pvresize, sfdisk-N, sfdisk-l, sfdisk-kernel-geomtry, ↵Richard W.M. Jones2009-05-151-1/+14
| | | | sfdisk-disk-geometry commands. Pass --no-reread flag to sfdisk.
* Add support for zerofree command.Richard W.M. Jones2009-05-141-1/+14
|
* Add 'append', LIBGUESTFS_APPEND to set additional kernel options.Richard W.M. Jones2009-05-131-0/+13
|
* Partial Haskell bindings.Richard Jones2009-05-105-0/+916