[db][tests] variables
This commit is contained in:
parent
4c0576377b
commit
6aa3cc37ae
8 changed files with 198 additions and 10 deletions
13
db/test_variable_values.sql
Normal file
13
db/test_variable_values.sql
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
INSERT INTO var_value (type, address, value) VALUES
|
||||
('A', 10, 42),
|
||||
('A', 11, 24),
|
||||
('A', 10, 20),
|
||||
('A', 10, 0),
|
||||
('I', 5010, 42),
|
||||
('I', 5011, 24),
|
||||
('I', 5010, 20),
|
||||
('I', 5010, 0),
|
||||
('D', 10, 1),
|
||||
('D', 11, 1),
|
||||
('D', 10, 1),
|
||||
('D', 10, 0);
|
||||
13
db/test_variables.sql
Normal file
13
db/test_variables.sql
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
INSERT INTO variable (type, address, unit) VALUES
|
||||
('A', 10, 'deg'),
|
||||
('A', 11, 'deg'),
|
||||
('A', 12, 'deg'),
|
||||
('A', 13, 'deg'),
|
||||
('I', 5010, 'deg'),
|
||||
('I', 5011, 'deg'),
|
||||
('I', 5012, 'deg'),
|
||||
('I', 5013, 'deg'),
|
||||
('D', 10, 'bit'),
|
||||
('D', 11, 'bit'),
|
||||
('D', 12, 'bit'),
|
||||
('D', 13, 'bit');
|
||||
Loading…
Add table
Add a link
Reference in a new issue