Commit graph

116 commits

Author SHA1 Message Date
Steven Armstrong
d4e715f052 close file handles opened with tempfile.mkstemp
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-21 15:26:27 +02:00
Steven Armstrong
1e354387f9 add missing import
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-21 14:48:47 +02:00
Steven Armstrong
97ab6effa4 introduce new cdist.test.CdistTestCase base class which handles common tasks
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 17:59:21 +02:00
Steven Armstrong
b56925d24a /__object_fq/__object_name/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 15:15:05 +02:00
Steven Armstrong
eb5b80d132 remove legacy tests
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 15:02:17 +02:00
Steven Armstrong
1fb96c0fc2 update test for upcomming change: /__debug/__cdist_debug/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 14:58:25 +02:00
Steven Armstrong
ef5eb34274 update test for upcomming change: /__debug/__cdist_debug/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 14:57:32 +02:00
Steven Armstrong
f732220e77 remove legacy tests
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 14:54:38 +02:00
Steven Armstrong
4f398a834f /ran/done/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 14:53:06 +02:00
Steven Armstrong
02de396905 tests for Object state
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-19 14:50:16 +02:00
Steven Armstrong
205cd7b28a fix the test
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-18 15:07:58 +02:00
Steven Armstrong
2a5465c03c test that emulator fails if requirement has illegal object_id
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-18 15:07:58 +02:00
Steven Armstrong
af367a76f8 test for: .cdist may not be used in object_id
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-18 15:07:58 +02:00
Steven Armstrong
1805c16fd4 --debug
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-18 15:07:58 +02:00
Steven Armstrong
a946b5cf59 verify manifest environment
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-18 15:07:58 +02:00
Steven Armstrong
64edfc4640 add tests for emulator
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-18 13:19:37 +02:00
Steven Armstrong
bd81045caf test for nonexistent type
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-18 12:43:14 +02:00
Nico Schottelius
50cb8807bf fix tests to work (not code :-)
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-18 09:57:50 +02:00
Steven Armstrong
c38959699f test for: transfer_type_explorers_only_once
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 23:42:16 +02:00
Nico Schottelius
df8be73c10 test for debug in manifest
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 23:18:58 +02:00
Nico Schottelius
db04ec0473 test whether debug is setup in explorer env
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 23:11:57 +02:00
Nico Schottelius
dd05a9b0d7 add test to verify code setups debug env
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 23:02:47 +02:00
Nico Schottelius
422800ab98 get back some constants needed for testing
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 22:45:23 +02:00
Nico Schottelius
92ff7e630d add banner to tests again
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 21:50:16 +02:00
Nico Schottelius
6b653b29fc Merge remote-tracking branch 'steven/master' 2011-10-14 16:43:03 +02:00
Steven Armstrong
d1930e983c update test: run_*_manifest should no longer return output
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 16:14:04 +02:00
Steven Armstrong
63ad882512 update test: run_code* should no longer return output
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 15:58:42 +02:00
Steven Armstrong
86cb65cd9c update test: dont return command output by default
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 15:51:40 +02:00
Steven Armstrong
e715dbb801 update test: dont return command output by default
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 15:50:10 +02:00
Nico Schottelius
6d7620582d run all test suites, if called as main
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 14:16:15 +02:00
Nico Schottelius
97da16f4bc load test suites
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 12:12:06 +02:00
Nico Schottelius
9aa064a0ae remove obsolete test
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 12:10:21 +02:00
Nico Schottelius
588d789ee2 empty init
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 12:03:44 +02:00
Nico Schottelius
2194368c0c load all test classes
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 12:03:03 +02:00
Steven Armstrong
9640c3a098 test for illegal object_id
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 11:21:12 +02:00
Nico Schottelius
8ac1406020 stage away obsolete tests
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-14 10:49:28 +02:00
Steven Armstrong
8e224b43c3 fix imports
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 09:05:22 +02:00
Steven Armstrong
f6adefddec test for Object object_from_name
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 09:03:18 +02:00
Steven Armstrong
f4b1252063 add test for Type base_path
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 08:58:34 +02:00
Steven Armstrong
be02dc5ff1 create object directory befor accessing it
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-14 00:35:23 +02:00
Steven Armstrong
1b7ebc5885 more tests for different ways to access object.explorers
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 21:23:04 +02:00
Steven Armstrong
7abb338381 bugfix test case
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 17:11:03 +02:00
Steven Armstrong
4f7d75e604 remove/fix copy paste stuff
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 16:27:07 +02:00
Steven Armstrong
7bc68476a1 test for run_code_remote
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 15:09:05 +02:00
Steven Armstrong
12e5b3e8dc test for run_code_local
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 15:00:07 +02:00
Steven Armstrong
5055afe0c0 test for test_transfer_code_remote
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 14:57:09 +02:00
Steven Armstrong
01ab81a446 -- duplicate code
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 14:50:50 +02:00
Steven Armstrong
df57b5188b tests for code
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 14:26:36 +02:00
Steven Armstrong
6f7528c411 test for code_remote
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:42:45 +02:00
Steven Armstrong
8e55e74bc2 test for code_local
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-13 13:40:20 +02:00