mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 04:43:34 +08:00
Removed test DSDL files
This commit is contained in:
@@ -1,7 +0,0 @@
|
|||||||
#
|
|
||||||
# Test file
|
|
||||||
#
|
|
||||||
|
|
||||||
root_b.TypeInRootB foo
|
|
||||||
---
|
|
||||||
root_a.ns2.TypeInNs2[<12] foo
|
|
||||||
@@ -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
|
|
||||||
@@ -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
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
int32 int32
|
|
||||||
truncated int2 truncated
|
|
||||||
saturated bool A = false
|
|
||||||
truncated bool B = true
|
|
||||||
float16 C = 70000 / 2
|
|
||||||
bool c
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
bool b = true + false
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
# Empty
|
|
||||||
@@ -516,16 +516,9 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
if not sys.argv[1:]:
|
if not sys.argv[1:]:
|
||||||
self_directory = os.path.dirname(__file__)
|
self_directory = os.path.dirname(__file__)
|
||||||
test_dir = os.path.join(self_directory, '..', '..', 'dsdl_test_data')
|
test_dir = os.path.join(self_directory, '..', '..', '..', 'dsdl', 'uavcan')
|
||||||
test_dir = os.path.normpath(test_dir)
|
t = parse_namespace(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')])
|
|
||||||
print(len(t))
|
print(len(t))
|
||||||
else:
|
else:
|
||||||
t = parse_namespace(sys.argv[1], sys.argv[2:])
|
t = parse_namespace(sys.argv[1], sys.argv[2:])
|
||||||
print(len(t))
|
print(len(t))
|
||||||
# search_dirs = sys.argv[1:-1]
|
|
||||||
# filename = sys.argv[-1]
|
|
||||||
# parser = Parser(search_dirs)
|
|
||||||
# t = parser.parse(filename)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user