| 1103 | } |
| 1104 | |
| 1105 | int runUnityTests(void) { |
| 1106 | UNITY_BEGIN(); |
| 1107 | |
| 1108 | // Suite-level setup |
| 1109 | microStore::FileSystem filesystem{microStore::Adapters::UniversalFileSystem()}; |
| 1110 | filesystem.init(); |
| 1111 | RNS::Utilities::OS::register_filesystem(filesystem); |
| 1112 | |
| 1113 | // Run tests |
| 1114 | RUN_TEST(testWrite); |
| 1115 | RUN_TEST(testRead); |
| 1116 | RUN_TEST(testSerializeObject); |
| 1117 | RUN_TEST(testDeserializeObject); |
| 1118 | RUN_TEST(testSerializeVector); |
| 1119 | RUN_TEST(testDeserializeVector); |
| 1120 | RUN_TEST(testSerializeSet); |
| 1121 | RUN_TEST(testDeserializeSet); |
| 1122 | RUN_TEST(testSerializeMap); |
| 1123 | RUN_TEST(testDeserializeMap); |
| 1124 | |
| 1125 | RUN_TEST(testSerializeTimeOffset); |
| 1126 | |
| 1127 | RUN_TEST(testSerializeDestinationTable); |
| 1128 | RUN_TEST(testDeserializeDestinationTable); |
| 1129 | RUN_TEST(testDeserializeEmptyDestinationTable); |
| 1130 | |
| 1131 | RUN_TEST(testJsonMsgpackSerializeObject); |
| 1132 | RUN_TEST(testJsonMsgpackDeserializeObject); |
| 1133 | RUN_TEST(testJsonMsgpackSerializeArray); |
| 1134 | RUN_TEST(testJsonMsgpackDeserializeArray); |
| 1135 | |
| 1136 | RUN_TEST(testMsgpackSerializeObject); |
| 1137 | RUN_TEST(testMsgpackDeserializeObject); |
| 1138 | RUN_TEST(testMsgpackSerializeArray); |
| 1139 | RUN_TEST(testMsgpackDeserializeArray); |
| 1140 | RUN_TEST(testMsgpackSerializeSeries); |
| 1141 | RUN_TEST(testMsgpackDeserializeSeries); |
| 1142 | |
| 1143 | RUN_TEST(test_codec_destination_entry); |
| 1144 | |
| 1145 | // Suite-level teardown |
| 1146 | RNS::Utilities::OS::remove_file(test_file_path); |
| 1147 | RNS::Utilities::OS::remove_file(test_object_path); |
| 1148 | RNS::Utilities::OS::remove_file(test_map_path); |
| 1149 | RNS::Utilities::OS::remove_file(test_vector_path); |
| 1150 | RNS::Utilities::OS::remove_file(test_set_path); |
| 1151 | RNS::Utilities::OS::remove_file(test_path_table_path); |
| 1152 | RNS::Utilities::OS::remove_file(test_empty_path_table_path); |
| 1153 | RNS::Utilities::OS::remove_file(test_array_path); |
| 1154 | RNS::Utilities::OS::remove_file(test_series_path); |
| 1155 | RNS::Utilities::OS::deregister_filesystem(); |
| 1156 | |
| 1157 | return UNITY_END(); |
| 1158 | } |
| 1159 | |
| 1160 | // For native dev-platform or for some embedded frameworks |
| 1161 | int main(void) { |