File: update.feature

package info (click to toggle)
osm2pgsql 2.2.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,772 kB
  • sloc: cpp: 60,940; python: 1,115; ansic: 763; sh: 25; makefile: 14
file content (85 lines) | stat: -rw-r--r-- 2,966 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
Feature: Updates to the test database

    Background:
        Given the input file 'liechtenstein-2013-08-03.osm.pbf'

    Scenario Outline: Simple updates with various parameters
        When running osm2pgsql pgsql with parameters
            | --slim   |
            | <param1> |
            | <param2> |
            | <param3> |

        Given the input file '000466354.osc.gz'
        When running osm2pgsql pgsql with parameters
            | -a       |
            | --slim   |
            | <param1> |
            | <param2> |
            | <param3> |

        Then table planet_osm_point has 1457 rows
        And table planet_osm_line has 3274 rows
        And table planet_osm_roads has 380 rows
        And table planet_osm_polygon has 4277 rows
        And table osm2pgsql_properties has 13 rows

        Examples:
            | param1             | param2 | param3 |
            |                    |        |        |
            | --number-processes | 15     |        |
            | --number-processes | 8      | -C1    |
            | -C0                |        |        |
            | -z                 | name:  |        |
            | --hstore-match-only| -k     |        |
            | --hstore-match-only| -k     | -x     |

       Examples: with tablespaces
            | param1                 | param2         | param3 |
            | --tablespace-main-data | tablespacetest |        |
            | --tablespace-main-index| tablespacetest |        |
            | --tablespace-slim-data | tablespacetest |        |
            | --tablespace-slim-index| tablespacetest |        |


    Scenario Outline: Simple updates with hstore
        When running osm2pgsql pgsql with parameters
            | --slim   |
            | <param1> |
            | <param2> |

        Given the input file '000466354.osc.gz'
        When running osm2pgsql pgsql with parameters
            | -a       |
            | --slim   |
            | <param1> |
            | <param2> |

        Then table planet_osm_point has 1475 rows
        And table planet_osm_line has 3297 rows
        And table planet_osm_roads has 380 rows
        And table planet_osm_polygon has 4278 rows

        Examples:
            | param1             | param2   |
            | -k                 |          |
            | -j                 |          |
            | -j                 | -x       |
            | --hstore-add-index | --hstore |


    Scenario: Simple updates with lua tagtransform
        Given the default lua tagtransform
        When running osm2pgsql pgsql with parameters
            | --slim   |

        Given the input file '000466354.osc.gz'
        When running osm2pgsql pgsql with parameters
            | -a       |
            | --slim   |

        Then table planet_osm_point has 1457 rows
        And table planet_osm_line has 3274 rows
        And table planet_osm_roads has 380 rows
        And table planet_osm_polygon has 4283 rows