Removed test DSDL files

This commit is contained in:
Pavel Kirienko 2014-03-06 13:35:21 +04:00
parent 451ea11795
commit a2d786fe5c
7 changed files with 2 additions and 54 deletions

View File

@ -1,7 +0,0 @@
#
# Test file
#
root_b.TypeInRootB foo
---
root_a.ns2.TypeInNs2[<12] foo

View File

@ -1,11 +0,0 @@
#
# Test file
#
int2 SMALL_CONST = -2
int61 CONST = -123456789
float16 FLOAT_CONST = 1.23
float16 FLOAT_CONST2 = nan
float16 FLOAT_CONST3 = -inf
root_b.TypeInRootB type_in_root_b
root_a.ns2.TypeInNs2[<5] type_in_ns_2

View File

@ -1,19 +0,0 @@
#
# Deliberately misformatted definition
#
root_a.TypeInRootA[<23] type_in_root_a
float64 CONST = 3.141592653589793 # 123
float16[<12] huge_array
bool a
int2 a_
---
bool a
float32 CONST = 1.23
bool ok
uint7[<=128] optional_error_message

View File

@ -1,6 +0,0 @@
int32 int32
truncated int2 truncated
saturated bool A = false
truncated bool B = true
float16 C = 70000 / 2
bool c

View File

@ -1 +0,0 @@
bool b = true + false

View File

@ -1 +0,0 @@
# Empty

View File

@ -516,16 +516,9 @@ if __name__ == '__main__':
if not sys.argv[1:]:
self_directory = os.path.dirname(__file__)
test_dir = os.path.join(self_directory, '..', '..', 'dsdl_test_data')
test_dir = os.path.normpath(test_dir)
# parser = Parser([os.path.join(test_dir, 'root_a'), os.path.join(test_dir, 'root_b')])
# t = parser.parse(os.path.join(test_dir, 'root_a', 'ns1', 'ns9', '425.BeginFirmwareUpdate.uavcan'))
t = parse_namespace(os.path.join(test_dir, 'root_a'), [os.path.join(test_dir, 'root_b')])
test_dir = os.path.join(self_directory, '..', '..', '..', 'dsdl', 'uavcan')
t = parse_namespace(test_dir, [])
print(len(t))
else:
t = parse_namespace(sys.argv[1], sys.argv[2:])
print(len(t))
# search_dirs = sys.argv[1:-1]
# filename = sys.argv[-1]
# parser = Parser(search_dirs)
# t = parser.parse(filename)