add test data and basic tests

Former-commit-id: 6001acf1d4
pull/1161/head
Dakota Benjamin 2016-02-04 10:13:33 -05:00
rodzic 504b1a164a
commit 0c96d18b2b
49 zmienionych plików z 113 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1 @@
322863f1a4f423abc6561c9a5c4abc177d6aaeb3

Wyświetl plik

@ -0,0 +1 @@
a62cb0a625829aa196aad18aa7a51f41895177ba

Wyświetl plik

@ -0,0 +1 @@
0cef97596da60d5582b5a0c46ba95cb5cb304701

Wyświetl plik

@ -0,0 +1 @@
9bca16ae1e7907588df72473e0c6928662b29c55

Wyświetl plik

@ -0,0 +1 @@
e6b6023b1329c1141b6ed15179c4d5dc48785148

Wyświetl plik

@ -0,0 +1 @@
8461ae84d56951a1abd1d638411c489a37b17327

Wyświetl plik

@ -0,0 +1 @@
100387e39c2b0313041a8b744b28c97370f3753d

Wyświetl plik

@ -0,0 +1 @@
9a0df836dc3a03dd1f8a152ababea7260336301a

Wyświetl plik

@ -0,0 +1 @@
04a60ba0b9e62ea3de0c99ba8e0baa38296651ec

Wyświetl plik

@ -0,0 +1 @@
0d2e4e4fbf0bf440fc43c777d7a14c7b7189f5be

Wyświetl plik

@ -0,0 +1 @@
d3678f735e41ac1ce0a1e09d37f369782f40e5da

Wyświetl plik

@ -0,0 +1 @@
42e08f62c585e224c18d574d3d4e5580203d7fad

Wyświetl plik

@ -0,0 +1 @@
c811ae0346ef3b87ba986da82c64e3168c45bde4

Wyświetl plik

@ -0,0 +1 @@
1548f77cc7cfae1afd0bdd89b8297d8a70b647d9

Wyświetl plik

@ -0,0 +1 @@
b4f83d60673537bb4146b0540ffc581025ff1d2e

Wyświetl plik

@ -0,0 +1 @@
3d273bc3240b16ec81cb284a9f0ab282c792a57c

Wyświetl plik

@ -0,0 +1 @@
9fa87bb8706bb323b779d084b94b868520483d78

Wyświetl plik

@ -0,0 +1 @@
24ae34f54157fff2c09e4d1ec99d5af357ce6127

Wyświetl plik

@ -0,0 +1 @@
acddee260be85b5b602ad381d7e6b4af334079c8

Wyświetl plik

@ -0,0 +1 @@
78d8feaeec9e6c2d0d3a33c80c3c5dd9dc8b76ff

Wyświetl plik

@ -0,0 +1 @@
4f321f0e89236f95b8df1e6363ea3cd2fc37ba87

Wyświetl plik

@ -0,0 +1 @@
00b038e7e886b4d94c6434d7a93a587f4595181d

Wyświetl plik

@ -0,0 +1 @@
f94a4a433d800d0ce32aead3eec57c8f32834a62

Wyświetl plik

@ -0,0 +1 @@
753bf217b9d94585dad515aaa54d89f5b1d467fe

Wyświetl plik

@ -0,0 +1 @@
9cf4255340b09fe2daa81f5025e3395149864a36

Wyświetl plik

@ -0,0 +1 @@
2a7ea6e37bf5ca3b5d909d58b55feef193133f8f

Wyświetl plik

@ -0,0 +1 @@
08b6f9d3e1092799bd6b7cc1a1651d177c9b4fd4

Wyświetl plik

@ -0,0 +1 @@
005bd715add5ec88c0b8930a6630f7da4509678c

Wyświetl plik

@ -0,0 +1 @@
ffc4b51785003201e6e5c5f0a0066492de8e359f

Wyświetl plik

@ -0,0 +1 @@
f05474b555d8495ef23dfd0250a5901db60575ab

Wyświetl plik

@ -0,0 +1 @@
2d1cafa1b3d949cb1a02d587ccaea9b79a41702c

Wyświetl plik

@ -0,0 +1 @@
9bdfdc91707e59c6984d8bc0ab37c62d0f3ea185

Wyświetl plik

@ -0,0 +1 @@
057686ad6b291590d9604614e13526f44c75a272

Wyświetl plik

@ -0,0 +1 @@
d3fb93ce082b26bcac2e974cff2b8b0ccfd724b3

Wyświetl plik

@ -0,0 +1 @@
32d2a0a343c21e765b2f046b8ff53901a1ba2e29

Wyświetl plik

@ -0,0 +1 @@
2afcb0b0b94b8954f336634a6aa80a048e20ec52

Wyświetl plik

@ -0,0 +1 @@
2ac23aab319de143aeb1267ca4cf3d99d74e5dcf

Wyświetl plik

@ -0,0 +1 @@
1b3d624ab1d9f13d6f039b55764a90fb745fa788

Wyświetl plik

@ -0,0 +1 @@
2143e2846711b244b5ef52f991c0f2aa7238990e

Wyświetl plik

@ -0,0 +1 @@
9a272dc6e22850263bc5c37cbb62c346ab0a8e50

Wyświetl plik

@ -0,0 +1 @@
0d992afe7116e897f5f85d2a536e8ae1dc7a6780

Wyświetl plik

@ -0,0 +1 @@
d0bb1c3d6bc30097ee9d052a2f589964526d5a82

Wyświetl plik

@ -0,0 +1 @@
272838e76e75f2a84645ed33ef705d28bebbd8bf

Wyświetl plik

@ -0,0 +1 @@
c1f79db356aa1bdb77e2efaae97003cc81a70e10

Wyświetl plik

@ -0,0 +1 @@
0237ffd565d5c2239edf73b0b570779f14ec126c

Wyświetl plik

@ -0,0 +1 @@
9e17fda3cab9cfdb15a5a1be2ccd9fd066b61e3b

Wyświetl plik

@ -0,0 +1 @@
68080e67f46192435f2e2218df99f7c18dc63a9f

28
tests/test_odm.py 100644
Wyświetl plik

@ -0,0 +1,28 @@
import sys
from opendm import config
import ecto
from scripts.odm_app import ODMApp
err = sys.stderr
# Fixture functions
app = None
def setup_odm():
# initialize ecto
global app
app = ODMApp(args=config.args)
plasm = ecto.Plasm()
plasm.insert(app)
err.write('MODULE SETUP\n')
def teardown_odm():
# teardown ecto
err.write('MODULE TEARDOWN\n')
# The tests
def test_config():
# check the args
test_args = 'tests/test_data' # sample test args
assert test_args == config.args.get('project_path')

Wyświetl plik

@ -0,0 +1,38 @@
from opendm import config
from opendm import context
from opendm import log
from opendm import system
import sys
import ecto
from scripts.odm_app import ODMApp
from scripts.opensfm import ODMOpenSfMCell
def setup_app(self):
# # set up test folder
# mkdir_p test folder
# git clone test_photos.git
# # create ODMApp object
# app = ODMApp(args=config.args)
def teardown_app(self):
# Delete the test folder
class TestOpenSfM:
def setUp(self):
# # create opensfm cell
# opensfm = ODMOpenSfMCell(use_exif_size=False,
# feature_process_size=config.args['resize_to'],
# feature_min_frames=config.args['min_num_features'],
# processes=context.num_cores,
# matching_gps_neighbors=config.args['matcher_k']),
def test_prematching_config(self):
# assert that relevant run args are what they say they are
def test_opensfm_config_file(self):
# assert that the args i nthe opensfm config file match those it is set to
# when metcher_distance > 0
# when the arg is out of bounds