source: subversion/applications/utils/osmapitest/run_osm_test.rb @ 29844

Last change on this file since 29844 was 2313, checked in by nickb, 12 years ago

OSMAPITEST - test the OSM API

File size: 551 bytes
Line 
1#! /bin/ruby
2#
3require 'osmapitest'
4
5#Get a new test object
6#bbox = [minlon, maxlon, minlat, laxlat]
7test = OSMAPITEST::CreateTest.new([bbox], 'www.openstreetmap.org')
8
9i = 0 
10n = 1
11
12#Test until interrupted
13while i < n
14
15#Select a random number of nodes for a way
16nodes = rand 1000
17#Select a random incrementation for x and y
18xinc = rand 100
19yinc = rand 100
20
21puts "At #{Time.now}, attempting with nodes = #{nodes}, xinc = #{xinc}, yinc = #{yinc}"
22
23   res = test.makenode(nodes,xinc,yinc)
24
25   segs = test.makeseg(res)
26
27   ways = test.makeway(segs)
28
29end
Note: See TracBrowser for help on using the repository browser.