libvips/test
John Cupitt 4c5873809f experiment with renaming stream
rename as VipsConnection, VipsSource, VipsTarget etc.

see https://github.com/libvips/libvips/issues/1494#issuecomment-569498619

renamed with this script:

```

set -e

edit() {
        sed -i -E "$1" rename
}

for i in $*; do
        cp $i rename

        edit s/VIPS_STREAMOU/VIPS_TARGET_CUSTOM/g
        edit s/VIPS_STREAMO/VIPS_TARGET/g
        edit s/VIPS_STREAMIU/VIPS_SOURCE_CUSTOM/g
        edit s/VIPS_STREAMI/VIPS_SOURCE/g
        edit s/VIPS_STREAM/VIPS_CONNECTION/g

        edit s/vips_streamou/vips_target_custom/g
        edit s/vips_streamo/vips_target/g
        edit s/vips_streamiu/vips_source_custom/g
        edit s/vips_streami/vips_source/g
        edit s/vips_stream/vips_connection/g

        edit s/VipsStreamou/VipsTargetCustom/g
        edit s/VipsStreamo/VipsTarget/g
        edit s/VipsStreamiu/VipsSourceCustom/g
        edit s/VipsStreami/VipsSource/g
        edit s/VipsStream/VipsConnection/g

        # eg. VIPS_TYPE_STREAM or VIPS_IS_STREAM
        edit "s/VIPS_([A-Z]+)_STREAMOU/VIPS_\1_TARGET_CUSTOM/g"
        edit "s/VIPS_([A-Z]+)_STREAMO/VIPS_\1_TARGET/g"
        edit "s/VIPS_([A-Z]+)_STREAMIU/VIPS_\1_SOURCE_CUSTOM/g"
        edit "s/VIPS_([A-Z]+)_STREAMI/VIPS_\1_SOURCE/g"
        edit "s/VIPS_([A-Z]+)_STREAM/VIPS_\1_CONNECTION/g"

        edit s/streamou/target_custom/g
        edit s/streamo/target/g
        edit s/streamiu/source_custom/g
        edit s/streami/source/g

        # various identifiers which also change
        edit s/is_a_stream/is_a_source/g
        edit s/find_load_stream/find_load_source/g
        edit s/find_save_stream/find_save_target/g
        edit s/new_from_stream/new_from_source/g
        edit s/write_to_stream/write_to_target/g
        edit s/vips_thumbnail_stream/vips_thumbnail_source/g

        # eg. vips_webpload_stream
        edit "s/vips_([a-z]+)load_stream/vips_\1load_source/g"

        # eg. vips_webpsave_stream
        edit "s/vips_([a-z]+)save_stream/vips_\1save_target/g"

        mv rename $i
done
```
2019-12-29 21:40:21 +00:00
..
test-suite relax text test render threshold 2019-12-26 14:11:15 +00:00
.gitignore Update C++ binding and function list 2019-11-29 14:51:03 +01:00
Makefile.am experiment with renaming stream 2019-12-29 21:40:21 +00:00
README.md
test_cli.sh
test_connections experiment with renaming stream 2019-12-29 21:40:21 +00:00
test_connections.c experiment with renaming stream 2019-12-29 21:40:21 +00:00
test_connections.sh experiment with renaming stream 2019-12-29 21:40:21 +00:00
test_descriptors.c experiment with renaming stream 2019-12-29 21:40:21 +00:00
test_descriptors.sh add note in test_desc about ppm loader 2019-12-23 14:58:22 +00:00
test_formats.sh
test_seq.sh
test_stall.sh "squash" to tiffsave now does lab as well 2019-12-18 17:29:34 +00:00
test_threading.sh
test_thumbnail.sh
variables.sh.in update jpg name in variables.sh.in as well 2019-11-27 08:58:30 +00:00

README.md

libvips test suite

This is in two parts: a few simple bash scripts in this directory are run on "make check", and a fancier Python test suite that's run by Travis on each commit.