aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author8000ff <clementmallejac@gmail.com>2018-07-20 10:47:28 +0200
committer8000ff <clementmallejac@gmail.com>2018-07-20 11:26:52 +0200
commite8eba1c53e1bbccc8c3ae21958e885586bb3c260 (patch)
tree0a4a0077f7fe716a01de3cb4eb23174b9ed8bb19
parent2b11138a150dd2e27cbf49231157f4560d536196 (diff)
Improved testing procedures
- Deleted deprecated low-can-tests.lua - Renamed low-can-coverage.lua as it does not describe its purpose - Added 2 new canreplay files - Added new test file for testing subscription filters - Edited the test configuration to play the new test file Change-Id: I11315581a5fac7428ed17d3ef299a9f0e96ce7f4 Signed-off-by: 8000ff <clementmallejac@gmail.com>
-rw-r--r--test/afb-test/etc/aft-low-can_config.json2
-rw-r--r--test/afb-test/fixtures/testFilter01filteredOut.canreplay508
-rw-r--r--test/afb-test/fixtures/testFilter01pass.canreplay508
-rw-r--r--test/afb-test/tests/low-can-tests.lua50
-rw-r--r--test/afb-test/tests/low-can_BasicAPITest.lua (renamed from test/afb-test/tests/low-can-coverage.lua)40
-rw-r--r--test/afb-test/tests/low-can_FilterTest01.lua56
6 files changed, 1096 insertions, 68 deletions
diff --git a/test/afb-test/etc/aft-low-can_config.json b/test/afb-test/etc/aft-low-can_config.json
index 7bf85dbf..3fd06d4c 100644
--- a/test/afb-test/etc/aft-low-can_config.json
+++ b/test/afb-test/etc/aft-low-can_config.json
@@ -16,7 +16,7 @@
"action": "lua://AFT#_launch_test",
"args": {
"trace": "low-can",
- "files": "low-can-coverage.lua"
+ "files": ["low-can_BasicAPITest.lua", "low-can_FilterTest01.lua"]
}
}
}
diff --git a/test/afb-test/fixtures/testFilter01filteredOut.canreplay b/test/afb-test/fixtures/testFilter01filteredOut.canreplay
new file mode 100644
index 00000000..9f84ec81
--- /dev/null
+++ b/test/afb-test/fixtures/testFilter01filteredOut.canreplay
@@ -0,0 +1,508 @@
+(1520951000.000000) can0 3D9#004B8813000000
+(1520951000.200000) can0 3D9#004B8813000000
+(1520951000.400000) can0 3D9#004B8813000000
+(1520951000.600000) can0 3D9#004B8813000000
+(1520951000.800000) can0 3D9#004B8813000000
+(1520951001.000000) can0 3D9#004B8813000000
+(1520951001.200000) can0 3D9#004B8813000000
+(1520951001.400000) can0 3D9#004B8813000000
+(1520951001.600000) can0 3D9#004B8813000000
+(1520951001.800000) can0 3D9#004B8813000000
+(1520951002.000000) can0 3D9#004B8813000000
+(1520951002.200000) can0 3D9#004B8813000000
+(1520951002.400000) can0 3D9#004B8813000000
+(1520951002.600000) can0 3D9#004B8813000000
+(1520951002.800000) can0 3D9#004B8813000000
+(1520951003.000000) can0 3D9#004B8813000000
+(1520951003.200000) can0 3D9#004B8813000000
+(1520951003.400000) can0 3D9#004B8813000000
+(1520951003.600000) can0 3D9#004B8813000000
+(1520951003.800000) can0 3D9#004B8813000000
+(1520951004.000000) can0 3D9#004B8813000000
+(1520951004.200000) can0 3D9#004B8813000000
+(1520951004.400000) can0 3D9#004B8813000000
+(1520951004.600000) can0 3D9#004B8813000000
+(1520951004.800000) can0 3D9#004B8813000000
+(1520951005.000000) can0 3D9#004B8813000000
+(1520951005.200000) can0 3D9#004B8813000000
+(1520951005.400000) can0 3D9#004B8813000000
+(1520951005.600000) can0 3D9#004B8813000000
+(1520951005.800000) can0 3D9#004B8813000000
+(1520951006.000000) can0 3D9#004B8813000000
+(1520951006.200000) can0 3D9#004B8813000000
+(1520951006.400000) can0 3D9#004B8813000000
+(1520951006.600000) can0 3D9#004B8813000000
+(1520951006.800000) can0 3D9#004B8813000000
+(1520951007.000000) can0 3D9#004B8813000000
+(1520951007.200000) can0 3D9#004B8813000000
+(1520951007.400000) can0 3D9#004B8813000000
+(1520951007.600000) can0 3D9#004B8813000000
+(1520951007.800000) can0 3D9#004B8813000000
+(1520951008.000000) can0 3D9#004B8813000000
+(1520951008.200000) can0 3D9#004B8813000000
+(1520951008.400000) can0 3D9#004B8813000000
+(1520951008.600000) can0 3D9#004B8813000000
+(1520951008.800000) can0 3D9#004B8813000000
+(1520951009.000000) can0 3D9#004B8813000000
+(1520951009.200000) can0 3D9#004B8813000000
+(1520951009.400000) can0 3D9#004B8813000000
+(1520951009.600000) can0 3D9#004B8813000000
+(1520951009.800000) can0 3D9#004B8813000000
+(1520951010.000000) can0 3D9#004B8813000000
+(1520951010.200000) can0 3D9#004B8813000000
+(1520951010.400000) can0 3D9#004B8813000000
+(1520951010.600000) can0 3D9#004B8813000000
+(1520951010.800000) can0 3D9#004B8813000000
+(1520951011.000000) can0 3D9#004B8813000000
+(1520951011.200000) can0 3D9#004B8813000000
+(1520951011.400000) can0 3D9#004B8813000000
+(1520951011.600000) can0 3D9#004B8813000000
+(1520951011.800000) can0 3D9#004B8813000000
+(1520951012.000000) can0 3D9#004B8813000000
+(1520951012.200000) can0 3D9#004B8813000000
+(1520951012.400000) can0 3D9#004B8813000000
+(1520951012.600000) can0 3D9#004B8813000000
+(1520951012.800000) can0 3D9#004B8813000000
+(1520951013.000000) can0 3D9#004B8813000000
+(1520951013.200000) can0 3D9#004B8813000000
+(1520951013.400000) can0 3D9#004B8813000000
+(1520951013.600000) can0 3D9#004B8813000000
+(1520951013.800000) can0 3D9#004B8813000000
+(1520951014.000000) can0 3D9#004B8813000000
+(1520951014.200000) can0 3D9#004B8813000000
+(1520951014.400000) can0 3D9#004B8813000000
+(1520951014.600000) can0 3D9#004B8813000000
+(1520951014.800000) can0 3D9#004B8813000000
+(1520951015.000000) can0 3D9#004B8813000000
+(1520951015.200000) can0 3D9#004B8813000000
+(1520951015.400000) can0 3D9#004B8813000000
+(1520951015.600000) can0 3D9#004B8813000000
+(1520951015.800000) can0 3D9#004B8813000000
+(1520951016.000000) can0 3D9#004B8813000000
+(1520951016.200000) can0 3D9#004B8813000000
+(1520951016.400000) can0 3D9#004B8813000000
+(1520951016.600000) can0 3D9#004B8813000000
+(1520951016.800000) can0 3D9#004B8813000000
+(1520951017.000000) can0 3D9#004B8813000000
+(1520951017.200000) can0 3D9#004B8813000000
+(1520951017.400000) can0 3D9#004B8813000000
+(1520951017.600000) can0 3D9#004B8813000000
+(1520951017.800000) can0 3D9#004B8813000000
+(1520951018.000000) can0 3D9#004B8813000000
+(1520951018.200000) can0 3D9#004B8813000000
+(1520951018.400000) can0 3D9#004B8813000000
+(1520951018.600000) can0 3D9#004B8813000000
+(1520951018.800000) can0 3D9#004B8813000000
+(1520951019.000000) can0 3D9#004B8813000000
+(1520951019.200000) can0 3D9#004B8813000000
+(1520951019.400000) can0 3D9#004B8813000000
+(1520951019.600000) can0 3D9#004B8813000000
+(1520951019.800000) can0 3D9#004B8813000000
+
+
+(1520951020.000000) can0 3D9#004B8813000000
+(1520951020.200000) can0 3D9#004B8813000000
+(1520951020.400000) can0 3D9#004B8813000000
+(1520951020.600000) can0 3D9#004B8813000000
+(1520951020.800000) can0 3D9#004B8813000000
+(1520951021.000000) can0 3D9#004B8813000000
+(1520951021.200000) can0 3D9#004B8813000000
+(1520951021.400000) can0 3D9#004B8813000000
+(1520951021.600000) can0 3D9#004B8813000000
+(1520951021.800000) can0 3D9#004B8813000000
+(1520951022.000000) can0 3D9#004B8813000000
+(1520951022.200000) can0 3D9#004B8813000000
+(1520951022.400000) can0 3D9#004B8813000000
+(1520951022.600000) can0 3D9#004B8813000000
+(1520951022.800000) can0 3D9#004B8813000000
+(1520951023.000000) can0 3D9#004B8813000000
+(1520951023.200000) can0 3D9#004B8813000000
+(1520951023.400000) can0 3D9#004B8813000000
+(1520951023.600000) can0 3D9#004B8813000000
+(1520951023.800000) can0 3D9#004B8813000000
+(1520951024.000000) can0 3D9#004B8813000000
+(1520951024.200000) can0 3D9#004B8813000000
+(1520951024.400000) can0 3D9#004B8813000000
+(1520951024.600000) can0 3D9#004B8813000000
+(1520951024.800000) can0 3D9#004B8813000000
+(1520951025.000000) can0 3D9#004B8813000000
+(1520951025.200000) can0 3D9#004B8813000000
+(1520951025.400000) can0 3D9#004B8813000000
+(1520951025.600000) can0 3D9#004B8813000000
+(1520951025.800000) can0 3D9#004B8813000000
+(1520951026.000000) can0 3D9#004B8813000000
+(1520951026.200000) can0 3D9#004B8813000000
+(1520951026.400000) can0 3D9#004B8813000000
+(1520951026.600000) can0 3D9#004B8813000000
+(1520951026.800000) can0 3D9#004B8813000000
+(1520951027.000000) can0 3D9#004B8813000000
+(1520951027.200000) can0 3D9#004B8813000000
+(1520951027.400000) can0 3D9#004B8813000000
+(1520951027.600000) can0 3D9#004B8813000000
+(1520951027.800000) can0 3D9#004B8813000000
+(1520951028.000000) can0 3D9#004B8813000000
+(1520951028.200000) can0 3D9#004B8813000000
+(1520951028.400000) can0 3D9#004B8813000000
+(1520951028.600000) can0 3D9#004B8813000000
+(1520951028.800000) can0 3D9#004B8813000000
+(1520951029.000000) can0 3D9#004B8813000000
+(1520951029.200000) can0 3D9#004B8813000000
+(1520951029.400000) can0 3D9#004B8813000000
+(1520951029.600000) can0 3D9#004B8813000000
+(1520951029.800000) can0 3D9#004B8813000000
+(1520951030.000000) can0 3D9#004B8813000000
+(1520951030.200000) can0 3D9#004B8813000000
+(1520951030.400000) can0 3D9#004B8813000000
+(1520951030.600000) can0 3D9#004B8813000000
+(1520951030.800000) can0 3D9#004B8813000000
+(1520951031.000000) can0 3D9#004B8813000000
+(1520951031.200000) can0 3D9#004B8813000000
+(1520951031.400000) can0 3D9#004B8813000000
+(1520951031.600000) can0 3D9#004B8813000000
+(1520951031.800000) can0 3D9#004B8813000000
+(1520951032.000000) can0 3D9#004B8813000000
+(1520951032.200000) can0 3D9#004B8813000000
+(1520951032.400000) can0 3D9#004B8813000000
+(1520951032.600000) can0 3D9#004B8813000000
+(1520951032.800000) can0 3D9#004B8813000000
+(1520951033.000000) can0 3D9#004B8813000000
+(1520951033.200000) can0 3D9#004B8813000000
+(1520951033.400000) can0 3D9#004B8813000000
+(1520951033.600000) can0 3D9#004B8813000000
+(1520951033.800000) can0 3D9#004B8813000000
+(1520951034.000000) can0 3D9#004B8813000000
+(1520951034.200000) can0 3D9#004B8813000000
+(1520951034.400000) can0 3D9#004B8813000000
+(1520951034.600000) can0 3D9#004B8813000000
+(1520951034.800000) can0 3D9#004B8813000000
+(1520951035.000000) can0 3D9#004B8813000000
+(1520951035.200000) can0 3D9#004B8813000000
+(1520951035.400000) can0 3D9#004B8813000000
+(1520951035.600000) can0 3D9#004B8813000000
+(1520951035.800000) can0 3D9#004B8813000000
+(1520951036.000000) can0 3D9#004B8813000000
+(1520951036.200000) can0 3D9#004B8813000000
+(1520951036.400000) can0 3D9#004B8813000000
+(1520951036.600000) can0 3D9#004B8813000000
+(1520951036.800000) can0 3D9#004B8813000000
+(1520951037.000000) can0 3D9#004B8813000000
+(1520951037.200000) can0 3D9#004B8813000000
+(1520951037.400000) can0 3D9#004B8813000000
+(1520951037.600000) can0 3D9#004B8813000000
+(1520951037.800000) can0 3D9#004B8813000000
+(1520951038.000000) can0 3D9#004B8813000000
+(1520951038.200000) can0 3D9#004B8813000000
+(1520951038.400000) can0 3D9#004B8813000000
+(1520951038.600000) can0 3D9#004B8813000000
+(1520951038.800000) can0 3D9#004B8813000000
+(1520951039.000000) can0 3D9#004B8813000000
+(1520951039.200000) can0 3D9#004B8813000000
+(1520951039.400000) can0 3D9#004B8813000000
+(1520951039.600000) can0 3D9#004B8813000000
+(1520951039.800000) can0 3D9#004B8813000000
+
+
+(1520951040.000000) can0 3D9#004B8813000000
+(1520951040.200000) can0 3D9#004B8813000000
+(1520951040.400000) can0 3D9#004B8813000000
+(1520951040.600000) can0 3D9#004B8813000000
+(1520951040.800000) can0 3D9#004B8813000000
+(1520951041.000000) can0 3D9#004B8813000000
+(1520951041.200000) can0 3D9#004B8813000000
+(1520951041.400000) can0 3D9#004B8813000000
+(1520951041.600000) can0 3D9#004B8813000000
+(1520951041.800000) can0 3D9#004B8813000000
+(1520951042.000000) can0 3D9#004B8813000000
+(1520951042.200000) can0 3D9#004B8813000000
+(1520951042.400000) can0 3D9#004B8813000000
+(1520951042.600000) can0 3D9#004B8813000000
+(1520951042.800000) can0 3D9#004B8813000000
+(1520951043.000000) can0 3D9#004B8813000000
+(1520951043.200000) can0 3D9#004B8813000000
+(1520951043.400000) can0 3D9#004B8813000000
+(1520951043.600000) can0 3D9#004B8813000000
+(1520951043.800000) can0 3D9#004B8813000000
+(1520951044.000000) can0 3D9#004B8813000000
+(1520951044.200000) can0 3D9#004B8813000000
+(1520951044.400000) can0 3D9#004B8813000000
+(1520951044.600000) can0 3D9#004B8813000000
+(1520951044.800000) can0 3D9#004B8813000000
+(1520951045.000000) can0 3D9#004B8813000000
+(1520951045.200000) can0 3D9#004B8813000000
+(1520951045.400000) can0 3D9#004B8813000000
+(1520951045.600000) can0 3D9#004B8813000000
+(1520951045.800000) can0 3D9#004B8813000000
+(1520951046.000000) can0 3D9#004B8813000000
+(1520951046.200000) can0 3D9#004B8813000000
+(1520951046.400000) can0 3D9#004B8813000000
+(1520951046.600000) can0 3D9#004B8813000000
+(1520951046.800000) can0 3D9#004B8813000000
+(1520951047.000000) can0 3D9#004B8813000000
+(1520951047.200000) can0 3D9#004B8813000000
+(1520951047.400000) can0 3D9#004B8813000000
+(1520951047.600000) can0 3D9#004B8813000000
+(1520951047.800000) can0 3D9#004B8813000000
+(1520951048.000000) can0 3D9#004B8813000000
+(1520951048.200000) can0 3D9#004B8813000000
+(1520951048.400000) can0 3D9#004B8813000000
+(1520951048.600000) can0 3D9#004B8813000000
+(1520951048.800000) can0 3D9#004B8813000000
+(1520951049.000000) can0 3D9#004B8813000000
+(1520951049.200000) can0 3D9#004B8813000000
+(1520951049.400000) can0 3D9#004B8813000000
+(1520951049.600000) can0 3D9#004B8813000000
+(1520951049.800000) can0 3D9#004B8813000000
+(1520951050.000000) can0 3D9#004B8813000000
+(1520951050.200000) can0 3D9#004B8813000000
+(1520951050.400000) can0 3D9#004B8813000000
+(1520951050.600000) can0 3D9#004B8813000000
+(1520951050.800000) can0 3D9#004B8813000000
+(1520951051.000000) can0 3D9#004B8813000000
+(1520951051.200000) can0 3D9#004B8813000000
+(1520951051.400000) can0 3D9#004B8813000000
+(1520951051.600000) can0 3D9#004B8813000000
+(1520951051.800000) can0 3D9#004B8813000000
+(1520951052.000000) can0 3D9#004B8813000000
+(1520951052.200000) can0 3D9#004B8813000000
+(1520951052.400000) can0 3D9#004B8813000000
+(1520951052.600000) can0 3D9#004B8813000000
+(1520951052.800000) can0 3D9#004B8813000000
+(1520951053.000000) can0 3D9#004B8813000000
+(1520951053.200000) can0 3D9#004B8813000000
+(1520951053.400000) can0 3D9#004B8813000000
+(1520951053.600000) can0 3D9#004B8813000000
+(1520951053.800000) can0 3D9#004B8813000000
+(1520951054.000000) can0 3D9#004B8813000000
+(1520951054.200000) can0 3D9#004B8813000000
+(1520951054.400000) can0 3D9#004B8813000000
+(1520951054.600000) can0 3D9#004B8813000000
+(1520951054.800000) can0 3D9#004B8813000000
+(1520951055.000000) can0 3D9#004B8813000000
+(1520951055.200000) can0 3D9#004B8813000000
+(1520951055.400000) can0 3D9#004B8813000000
+(1520951055.600000) can0 3D9#004B8813000000
+(1520951055.800000) can0 3D9#004B8813000000
+(1520951056.000000) can0 3D9#004B8813000000
+(1520951056.200000) can0 3D9#004B8813000000
+(1520951056.400000) can0 3D9#004B8813000000
+(1520951056.600000) can0 3D9#004B8813000000
+(1520951056.800000) can0 3D9#004B8813000000
+(1520951057.000000) can0 3D9#004B8813000000
+(1520951057.200000) can0 3D9#004B8813000000
+(1520951057.400000) can0 3D9#004B8813000000
+(1520951057.600000) can0 3D9#004B8813000000
+(1520951057.800000) can0 3D9#004B8813000000
+(1520951058.000000) can0 3D9#004B8813000000
+(1520951058.200000) can0 3D9#004B8813000000
+(1520951058.400000) can0 3D9#004B8813000000
+(1520951058.600000) can0 3D9#004B8813000000
+(1520951058.800000) can0 3D9#004B8813000000
+(1520951059.000000) can0 3D9#004B8813000000
+(1520951059.200000) can0 3D9#004B8813000000
+(1520951059.400000) can0 3D9#004B8813000000
+(1520951059.600000) can0 3D9#004B8813000000
+(1520951059.800000) can0 3D9#004B8813000000
+
+
+(1520951060.000000) can0 3D9#004B8813000000
+(1520951060.200000) can0 3D9#004B8813000000
+(1520951060.400000) can0 3D9#004B8813000000
+(1520951060.600000) can0 3D9#004B8813000000
+(1520951060.800000) can0 3D9#004B8813000000
+(1520951061.000000) can0 3D9#004B8813000000
+(1520951061.200000) can0 3D9#004B8813000000
+(1520951061.400000) can0 3D9#004B8813000000
+(1520951061.600000) can0 3D9#004B8813000000
+(1520951061.800000) can0 3D9#004B8813000000
+(1520951062.000000) can0 3D9#004B8813000000
+(1520951062.200000) can0 3D9#004B8813000000
+(1520951062.400000) can0 3D9#004B8813000000
+(1520951062.600000) can0 3D9#004B8813000000
+(1520951062.800000) can0 3D9#004B8813000000
+(1520951063.000000) can0 3D9#004B8813000000
+(1520951063.200000) can0 3D9#004B8813000000
+(1520951063.400000) can0 3D9#004B8813000000
+(1520951063.600000) can0 3D9#004B8813000000
+(1520951063.800000) can0 3D9#004B8813000000
+(1520951064.000000) can0 3D9#004B8813000000
+(1520951064.200000) can0 3D9#004B8813000000
+(1520951064.400000) can0 3D9#004B8813000000
+(1520951064.600000) can0 3D9#004B8813000000
+(1520951064.800000) can0 3D9#004B8813000000
+(1520951065.000000) can0 3D9#004B8813000000
+(1520951065.200000) can0 3D9#004B8813000000
+(1520951065.400000) can0 3D9#004B8813000000
+(1520951065.600000) can0 3D9#004B8813000000
+(1520951065.800000) can0 3D9#004B8813000000
+(1520951066.000000) can0 3D9#004B8813000000
+(1520951066.200000) can0 3D9#004B8813000000
+(1520951066.400000) can0 3D9#004B8813000000
+(1520951066.600000) can0 3D9#004B8813000000
+(1520951066.800000) can0 3D9#004B8813000000
+(1520951067.000000) can0 3D9#004B8813000000
+(1520951067.200000) can0 3D9#004B8813000000
+(1520951067.400000) can0 3D9#004B8813000000
+(1520951067.600000) can0 3D9#004B8813000000
+(1520951067.800000) can0 3D9#004B8813000000
+(1520951068.000000) can0 3D9#004B8813000000
+(1520951068.200000) can0 3D9#004B8813000000
+(1520951068.400000) can0 3D9#004B8813000000
+(1520951068.600000) can0 3D9#004B8813000000
+(1520951068.800000) can0 3D9#004B8813000000
+(1520951069.000000) can0 3D9#004B8813000000
+(1520951069.200000) can0 3D9#004B8813000000
+(1520951069.400000) can0 3D9#004B8813000000
+(1520951069.600000) can0 3D9#004B8813000000
+(1520951069.800000) can0 3D9#004B8813000000
+(1520951070.000000) can0 3D9#004B8813000000
+(1520951070.200000) can0 3D9#004B8813000000
+(1520951070.400000) can0 3D9#004B8813000000
+(1520951070.600000) can0 3D9#004B8813000000
+(1520951070.800000) can0 3D9#004B8813000000
+(1520951071.000000) can0 3D9#004B8813000000
+(1520951071.200000) can0 3D9#004B8813000000
+(1520951071.400000) can0 3D9#004B8813000000
+(1520951071.600000) can0 3D9#004B8813000000
+(1520951071.800000) can0 3D9#004B8813000000
+(1520951072.000000) can0 3D9#004B8813000000
+(1520951072.200000) can0 3D9#004B8813000000
+(1520951072.400000) can0 3D9#004B8813000000
+(1520951072.600000) can0 3D9#004B8813000000
+(1520951072.800000) can0 3D9#004B8813000000
+(1520951073.000000) can0 3D9#004B8813000000
+(1520951073.200000) can0 3D9#004B8813000000
+(1520951073.400000) can0 3D9#004B8813000000
+(1520951073.600000) can0 3D9#004B8813000000
+(1520951073.800000) can0 3D9#004B8813000000
+(1520951074.000000) can0 3D9#004B8813000000
+(1520951074.200000) can0 3D9#004B8813000000
+(1520951074.400000) can0 3D9#004B8813000000
+(1520951074.600000) can0 3D9#004B8813000000
+(1520951074.800000) can0 3D9#004B8813000000
+(1520951075.000000) can0 3D9#004B8813000000
+(1520951075.200000) can0 3D9#004B8813000000
+(1520951075.400000) can0 3D9#004B8813000000
+(1520951075.600000) can0 3D9#004B8813000000
+(1520951075.800000) can0 3D9#004B8813000000
+(1520951076.000000) can0 3D9#004B8813000000
+(1520951076.200000) can0 3D9#004B8813000000
+(1520951076.400000) can0 3D9#004B8813000000
+(1520951076.600000) can0 3D9#004B8813000000
+(1520951076.800000) can0 3D9#004B8813000000
+(1520951077.000000) can0 3D9#004B8813000000
+(1520951077.200000) can0 3D9#004B8813000000
+(1520951077.400000) can0 3D9#004B8813000000
+(1520951077.600000) can0 3D9#004B8813000000
+(1520951077.800000) can0 3D9#004B8813000000
+(1520951078.000000) can0 3D9#004B8813000000
+(1520951078.200000) can0 3D9#004B8813000000
+(1520951078.400000) can0 3D9#004B8813000000
+(1520951078.600000) can0 3D9#004B8813000000
+(1520951078.800000) can0 3D9#004B8813000000
+(1520951079.000000) can0 3D9#004B8813000000
+(1520951079.200000) can0 3D9#004B8813000000
+(1520951079.400000) can0 3D9#004B8813000000
+(1520951079.600000) can0 3D9#004B8813000000
+(1520951079.800000) can0 3D9#004B8813000000
+
+
+(1520951080.000000) can0 3D9#004B8813000000
+(1520951080.200000) can0 3D9#004B8813000000
+(1520951080.400000) can0 3D9#004B8813000000
+(1520951080.600000) can0 3D9#004B8813000000
+(1520951080.800000) can0 3D9#004B8813000000
+(1520951081.000000) can0 3D9#004B8813000000
+(1520951081.200000) can0 3D9#004B8813000000
+(1520951081.400000) can0 3D9#004B8813000000
+(1520951081.600000) can0 3D9#004B8813000000
+(1520951081.800000) can0 3D9#004B8813000000
+(1520951082.000000) can0 3D9#004B8813000000
+(1520951082.200000) can0 3D9#004B8813000000
+(1520951082.400000) can0 3D9#004B8813000000
+(1520951082.600000) can0 3D9#004B8813000000
+(1520951082.800000) can0 3D9#004B8813000000
+(1520951083.000000) can0 3D9#004B8813000000
+(1520951083.200000) can0 3D9#004B8813000000
+(1520951083.400000) can0 3D9#004B8813000000
+(1520951083.600000) can0 3D9#004B8813000000
+(1520951083.800000) can0 3D9#004B8813000000
+(1520951084.000000) can0 3D9#004B8813000000
+(1520951084.200000) can0 3D9#004B8813000000
+(1520951084.400000) can0 3D9#004B8813000000
+(1520951084.600000) can0 3D9#004B8813000000
+(1520951084.800000) can0 3D9#004B8813000000
+(1520951085.000000) can0 3D9#004B8813000000
+(1520951085.200000) can0 3D9#004B8813000000
+(1520951085.400000) can0 3D9#004B8813000000
+(1520951085.600000) can0 3D9#004B8813000000
+(1520951085.800000) can0 3D9#004B8813000000
+(1520951086.000000) can0 3D9#004B8813000000
+(1520951086.200000) can0 3D9#004B8813000000
+(1520951086.400000) can0 3D9#004B8813000000
+(1520951086.600000) can0 3D9#004B8813000000
+(1520951086.800000) can0 3D9#004B8813000000
+(1520951087.000000) can0 3D9#004B8813000000
+(1520951087.200000) can0 3D9#004B8813000000
+(1520951087.400000) can0 3D9#004B8813000000
+(1520951087.600000) can0 3D9#004B8813000000
+(1520951087.800000) can0 3D9#004B8813000000
+(1520951088.000000) can0 3D9#004B8813000000
+(1520951088.200000) can0 3D9#004B8813000000
+(1520951088.400000) can0 3D9#004B8813000000
+(1520951088.600000) can0 3D9#004B8813000000
+(1520951088.800000) can0 3D9#004B8813000000
+(1520951089.000000) can0 3D9#004B8813000000
+(1520951089.200000) can0 3D9#004B8813000000
+(1520951089.400000) can0 3D9#004B8813000000
+(1520951089.600000) can0 3D9#004B8813000000
+(1520951089.800000) can0 3D9#004B8813000000
+(1520951090.000000) can0 3D9#004B8813000000
+(1520951090.200000) can0 3D9#004B8813000000
+(1520951090.400000) can0 3D9#004B8813000000
+(1520951090.600000) can0 3D9#004B8813000000
+(1520951090.800000) can0 3D9#004B8813000000
+(1520951091.000000) can0 3D9#004B8813000000
+(1520951091.200000) can0 3D9#004B8813000000
+(1520951091.400000) can0 3D9#004B8813000000
+(1520951091.600000) can0 3D9#004B8813000000
+(1520951091.800000) can0 3D9#004B8813000000
+(1520951092.000000) can0 3D9#004B8813000000
+(1520951092.200000) can0 3D9#004B8813000000
+(1520951092.400000) can0 3D9#004B8813000000
+(1520951092.600000) can0 3D9#004B8813000000
+(1520951092.800000) can0 3D9#004B8813000000
+(1520951093.000000) can0 3D9#004B8813000000
+(1520951093.200000) can0 3D9#004B8813000000
+(1520951093.400000) can0 3D9#004B8813000000
+(1520951093.600000) can0 3D9#004B8813000000
+(1520951093.800000) can0 3D9#004B8813000000
+(1520951094.000000) can0 3D9#004B8813000000
+(1520951094.200000) can0 3D9#004B8813000000
+(1520951094.400000) can0 3D9#004B8813000000
+(1520951094.600000) can0 3D9#004B8813000000
+(1520951094.800000) can0 3D9#004B8813000000
+(1520951095.000000) can0 3D9#004B8813000000
+(1520951095.200000) can0 3D9#004B8813000000
+(1520951095.400000) can0 3D9#004B8813000000
+(1520951095.600000) can0 3D9#004B8813000000
+(1520951095.800000) can0 3D9#004B8813000000
+(1520951096.000000) can0 3D9#004B8813000000
+(1520951096.200000) can0 3D9#004B8813000000
+(1520951096.400000) can0 3D9#004B8813000000
+(1520951096.600000) can0 3D9#004B8813000000
+(1520951096.800000) can0 3D9#004B8813000000
+(1520951097.000000) can0 3D9#004B8813000000
+(1520951097.200000) can0 3D9#004B8813000000
+(1520951097.400000) can0 3D9#004B8813000000
+(1520951097.600000) can0 3D9#004B8813000000
+(1520951097.800000) can0 3D9#004B8813000000
+(1520951098.000000) can0 3D9#004B8813000000
+(1520951098.200000) can0 3D9#004B8813000000
+(1520951098.400000) can0 3D9#004B8813000000
+(1520951098.600000) can0 3D9#004B8813000000
+(1520951098.800000) can0 3D9#004B8813000000
+(1520951099.000000) can0 3D9#004B8813000000
+(1520951099.200000) can0 3D9#004B8813000000
+(1520951099.400000) can0 3D9#004B8813000000
+(1520951099.600000) can0 3D9#004B8813000000
+(1520951099.800000) can0 3D9#004B8813000000
diff --git a/test/afb-test/fixtures/testFilter01pass.canreplay b/test/afb-test/fixtures/testFilter01pass.canreplay
new file mode 100644
index 00000000..9770f758
--- /dev/null
+++ b/test/afb-test/fixtures/testFilter01pass.canreplay
@@ -0,0 +1,508 @@
+(1520951000.000000) can0 3D9#00410080000000
+(1520951000.200000) can0 3D9#00410080000000
+(1520951000.400000) can0 3D9#00410080000000
+(1520951000.600000) can0 3D9#00410080000000
+(1520951000.800000) can0 3D9#00410080000000
+(1520951001.000000) can0 3D9#00410080000000
+(1520951001.200000) can0 3D9#00410080000000
+(1520951001.400000) can0 3D9#00410080000000
+(1520951001.600000) can0 3D9#00410080000000
+(1520951001.800000) can0 3D9#00410080000000
+(1520951002.000000) can0 3D9#00410080000000
+(1520951002.200000) can0 3D9#00410080000000
+(1520951002.400000) can0 3D9#00410080000000
+(1520951002.600000) can0 3D9#00410080000000
+(1520951002.800000) can0 3D9#00410080000000
+(1520951003.000000) can0 3D9#00410080000000
+(1520951003.200000) can0 3D9#00410080000000
+(1520951003.400000) can0 3D9#00410080000000
+(1520951003.600000) can0 3D9#00410080000000
+(1520951003.800000) can0 3D9#00410080000000
+(1520951004.000000) can0 3D9#00410080000000
+(1520951004.200000) can0 3D9#00410080000000
+(1520951004.400000) can0 3D9#00410080000000
+(1520951004.600000) can0 3D9#00410080000000
+(1520951004.800000) can0 3D9#00410080000000
+(1520951005.000000) can0 3D9#00410080000000
+(1520951005.200000) can0 3D9#00410080000000
+(1520951005.400000) can0 3D9#00410080000000
+(1520951005.600000) can0 3D9#00410080000000
+(1520951005.800000) can0 3D9#00410080000000
+(1520951006.000000) can0 3D9#00410080000000
+(1520951006.200000) can0 3D9#00410080000000
+(1520951006.400000) can0 3D9#00410080000000
+(1520951006.600000) can0 3D9#00410080000000
+(1520951006.800000) can0 3D9#00410080000000
+(1520951007.000000) can0 3D9#00410080000000
+(1520951007.200000) can0 3D9#00410080000000
+(1520951007.400000) can0 3D9#00410080000000
+(1520951007.600000) can0 3D9#00410080000000
+(1520951007.800000) can0 3D9#00410080000000
+(1520951008.000000) can0 3D9#00410080000000
+(1520951008.200000) can0 3D9#00410080000000
+(1520951008.400000) can0 3D9#00410080000000
+(1520951008.600000) can0 3D9#00410080000000
+(1520951008.800000) can0 3D9#00410080000000
+(1520951009.000000) can0 3D9#00410080000000
+(1520951009.200000) can0 3D9#00410080000000
+(1520951009.400000) can0 3D9#00410080000000
+(1520951009.600000) can0 3D9#00410080000000
+(1520951009.800000) can0 3D9#00410080000000
+(1520951010.000000) can0 3D9#00410080000000
+(1520951010.200000) can0 3D9#00410080000000
+(1520951010.400000) can0 3D9#00410080000000
+(1520951010.600000) can0 3D9#00410080000000
+(1520951010.800000) can0 3D9#00410080000000
+(1520951011.000000) can0 3D9#00410080000000
+(1520951011.200000) can0 3D9#00410080000000
+(1520951011.400000) can0 3D9#00410080000000
+(1520951011.600000) can0 3D9#00410080000000
+(1520951011.800000) can0 3D9#00410080000000
+(1520951012.000000) can0 3D9#00410080000000
+(1520951012.200000) can0 3D9#00410080000000
+(1520951012.400000) can0 3D9#00410080000000
+(1520951012.600000) can0 3D9#00410080000000
+(1520951012.800000) can0 3D9#00410080000000
+(1520951013.000000) can0 3D9#00410080000000
+(1520951013.200000) can0 3D9#00410080000000
+(1520951013.400000) can0 3D9#00410080000000
+(1520951013.600000) can0 3D9#00410080000000
+(1520951013.800000) can0 3D9#00410080000000
+(1520951014.000000) can0 3D9#00410080000000
+(1520951014.200000) can0 3D9#00410080000000
+(1520951014.400000) can0 3D9#00410080000000
+(1520951014.600000) can0 3D9#00410080000000
+(1520951014.800000) can0 3D9#00410080000000
+(1520951015.000000) can0 3D9#00410080000000
+(1520951015.200000) can0 3D9#00410080000000
+(1520951015.400000) can0 3D9#00410080000000
+(1520951015.600000) can0 3D9#00410080000000
+(1520951015.800000) can0 3D9#00410080000000
+(1520951016.000000) can0 3D9#00410080000000
+(1520951016.200000) can0 3D9#00410080000000
+(1520951016.400000) can0 3D9#00410080000000
+(1520951016.600000) can0 3D9#00410080000000
+(1520951016.800000) can0 3D9#00410080000000
+(1520951017.000000) can0 3D9#00410080000000
+(1520951017.200000) can0 3D9#00410080000000
+(1520951017.400000) can0 3D9#00410080000000
+(1520951017.600000) can0 3D9#00410080000000
+(1520951017.800000) can0 3D9#00410080000000
+(1520951018.000000) can0 3D9#00410080000000
+(1520951018.200000) can0 3D9#00410080000000
+(1520951018.400000) can0 3D9#00410080000000
+(1520951018.600000) can0 3D9#00410080000000
+(1520951018.800000) can0 3D9#00410080000000
+(1520951019.000000) can0 3D9#00410080000000
+(1520951019.200000) can0 3D9#00410080000000
+(1520951019.400000) can0 3D9#00410080000000
+(1520951019.600000) can0 3D9#00410080000000
+(1520951019.800000) can0 3D9#00410080000000
+
+
+(1520951020.000000) can0 3D9#00410080000000
+(1520951020.200000) can0 3D9#00410080000000
+(1520951020.400000) can0 3D9#00410080000000
+(1520951020.600000) can0 3D9#00410080000000
+(1520951020.800000) can0 3D9#00410080000000
+(1520951021.000000) can0 3D9#00410080000000
+(1520951021.200000) can0 3D9#00410080000000
+(1520951021.400000) can0 3D9#00410080000000
+(1520951021.600000) can0 3D9#00410080000000
+(1520951021.800000) can0 3D9#00410080000000
+(1520951022.000000) can0 3D9#00410080000000
+(1520951022.200000) can0 3D9#00410080000000
+(1520951022.400000) can0 3D9#00410080000000
+(1520951022.600000) can0 3D9#00410080000000
+(1520951022.800000) can0 3D9#00410080000000
+(1520951023.000000) can0 3D9#00410080000000
+(1520951023.200000) can0 3D9#00410080000000
+(1520951023.400000) can0 3D9#00410080000000
+(1520951023.600000) can0 3D9#00410080000000
+(1520951023.800000) can0 3D9#00410080000000
+(1520951024.000000) can0 3D9#00410080000000
+(1520951024.200000) can0 3D9#00410080000000
+(1520951024.400000) can0 3D9#00410080000000
+(1520951024.600000) can0 3D9#00410080000000
+(1520951024.800000) can0 3D9#00410080000000
+(1520951025.000000) can0 3D9#00410080000000
+(1520951025.200000) can0 3D9#00410080000000
+(1520951025.400000) can0 3D9#00410080000000
+(1520951025.600000) can0 3D9#00410080000000
+(1520951025.800000) can0 3D9#00410080000000
+(1520951026.000000) can0 3D9#00410080000000
+(1520951026.200000) can0 3D9#00410080000000
+(1520951026.400000) can0 3D9#00410080000000
+(1520951026.600000) can0 3D9#00410080000000
+(1520951026.800000) can0 3D9#00410080000000
+(1520951027.000000) can0 3D9#00410080000000
+(1520951027.200000) can0 3D9#00410080000000
+(1520951027.400000) can0 3D9#00410080000000
+(1520951027.600000) can0 3D9#00410080000000
+(1520951027.800000) can0 3D9#00410080000000
+(1520951028.000000) can0 3D9#00410080000000
+(1520951028.200000) can0 3D9#00410080000000
+(1520951028.400000) can0 3D9#00410080000000
+(1520951028.600000) can0 3D9#00410080000000
+(1520951028.800000) can0 3D9#00410080000000
+(1520951029.000000) can0 3D9#00410080000000
+(1520951029.200000) can0 3D9#00410080000000
+(1520951029.400000) can0 3D9#00410080000000
+(1520951029.600000) can0 3D9#00410080000000
+(1520951029.800000) can0 3D9#00410080000000
+(1520951030.000000) can0 3D9#00410080000000
+(1520951030.200000) can0 3D9#00410080000000
+(1520951030.400000) can0 3D9#00410080000000
+(1520951030.600000) can0 3D9#00410080000000
+(1520951030.800000) can0 3D9#00410080000000
+(1520951031.000000) can0 3D9#00410080000000
+(1520951031.200000) can0 3D9#00410080000000
+(1520951031.400000) can0 3D9#00410080000000
+(1520951031.600000) can0 3D9#00410080000000
+(1520951031.800000) can0 3D9#00410080000000
+(1520951032.000000) can0 3D9#00410080000000
+(1520951032.200000) can0 3D9#00410080000000
+(1520951032.400000) can0 3D9#00410080000000
+(1520951032.600000) can0 3D9#00410080000000
+(1520951032.800000) can0 3D9#00410080000000
+(1520951033.000000) can0 3D9#00410080000000
+(1520951033.200000) can0 3D9#00410080000000
+(1520951033.400000) can0 3D9#00410080000000
+(1520951033.600000) can0 3D9#00410080000000
+(1520951033.800000) can0 3D9#00410080000000
+(1520951034.000000) can0 3D9#00410080000000
+(1520951034.200000) can0 3D9#00410080000000
+(1520951034.400000) can0 3D9#00410080000000
+(1520951034.600000) can0 3D9#00410080000000
+(1520951034.800000) can0 3D9#00410080000000
+(1520951035.000000) can0 3D9#00410080000000
+(1520951035.200000) can0 3D9#00410080000000
+(1520951035.400000) can0 3D9#00410080000000
+(1520951035.600000) can0 3D9#00410080000000
+(1520951035.800000) can0 3D9#00410080000000
+(1520951036.000000) can0 3D9#00410080000000
+(1520951036.200000) can0 3D9#00410080000000
+(1520951036.400000) can0 3D9#00410080000000
+(1520951036.600000) can0 3D9#00410080000000
+(1520951036.800000) can0 3D9#00410080000000
+(1520951037.000000) can0 3D9#00410080000000
+(1520951037.200000) can0 3D9#00410080000000
+(1520951037.400000) can0 3D9#00410080000000
+(1520951037.600000) can0 3D9#00410080000000
+(1520951037.800000) can0 3D9#00410080000000
+(1520951038.000000) can0 3D9#00410080000000
+(1520951038.200000) can0 3D9#00410080000000
+(1520951038.400000) can0 3D9#00410080000000
+(1520951038.600000) can0 3D9#00410080000000
+(1520951038.800000) can0 3D9#00410080000000
+(1520951039.000000) can0 3D9#00410080000000
+(1520951039.200000) can0 3D9#00410080000000
+(1520951039.400000) can0 3D9#00410080000000
+(1520951039.600000) can0 3D9#00410080000000
+(1520951039.800000) can0 3D9#00410080000000
+
+
+(1520951040.000000) can0 3D9#00410080000000
+(1520951040.200000) can0 3D9#00410080000000
+(1520951040.400000) can0 3D9#00410080000000
+(1520951040.600000) can0 3D9#00410080000000
+(1520951040.800000) can0 3D9#00410080000000
+(1520951041.000000) can0 3D9#00410080000000
+(1520951041.200000) can0 3D9#00410080000000
+(1520951041.400000) can0 3D9#00410080000000
+(1520951041.600000) can0 3D9#00410080000000
+(1520951041.800000) can0 3D9#00410080000000
+(1520951042.000000) can0 3D9#00410080000000
+(1520951042.200000) can0 3D9#00410080000000
+(1520951042.400000) can0 3D9#00410080000000
+(1520951042.600000) can0 3D9#00410080000000
+(1520951042.800000) can0 3D9#00410080000000
+(1520951043.000000) can0 3D9#00410080000000
+(1520951043.200000) can0 3D9#00410080000000
+(1520951043.400000) can0 3D9#00410080000000
+(1520951043.600000) can0 3D9#00410080000000
+(1520951043.800000) can0 3D9#00410080000000
+(1520951044.000000) can0 3D9#00410080000000
+(1520951044.200000) can0 3D9#00410080000000
+(1520951044.400000) can0 3D9#00410080000000
+(1520951044.600000) can0 3D9#00410080000000
+(1520951044.800000) can0 3D9#00410080000000
+(1520951045.000000) can0 3D9#00410080000000
+(1520951045.200000) can0 3D9#00410080000000
+(1520951045.400000) can0 3D9#00410080000000
+(1520951045.600000) can0 3D9#00410080000000
+(1520951045.800000) can0 3D9#00410080000000
+(1520951046.000000) can0 3D9#00410080000000
+(1520951046.200000) can0 3D9#00410080000000
+(1520951046.400000) can0 3D9#00410080000000
+(1520951046.600000) can0 3D9#00410080000000
+(1520951046.800000) can0 3D9#00410080000000
+(1520951047.000000) can0 3D9#00410080000000
+(1520951047.200000) can0 3D9#00410080000000
+(1520951047.400000) can0 3D9#00410080000000
+(1520951047.600000) can0 3D9#00410080000000
+(1520951047.800000) can0 3D9#00410080000000
+(1520951048.000000) can0 3D9#00410080000000
+(1520951048.200000) can0 3D9#00410080000000
+(1520951048.400000) can0 3D9#00410080000000
+(1520951048.600000) can0 3D9#00410080000000
+(1520951048.800000) can0 3D9#00410080000000
+(1520951049.000000) can0 3D9#00410080000000
+(1520951049.200000) can0 3D9#00410080000000
+(1520951049.400000) can0 3D9#00410080000000
+(1520951049.600000) can0 3D9#00410080000000
+(1520951049.800000) can0 3D9#00410080000000
+(1520951050.000000) can0 3D9#00410080000000
+(1520951050.200000) can0 3D9#00410080000000
+(1520951050.400000) can0 3D9#00410080000000
+(1520951050.600000) can0 3D9#00410080000000
+(1520951050.800000) can0 3D9#00410080000000
+(1520951051.000000) can0 3D9#00410080000000
+(1520951051.200000) can0 3D9#00410080000000
+(1520951051.400000) can0 3D9#00410080000000
+(1520951051.600000) can0 3D9#00410080000000
+(1520951051.800000) can0 3D9#00410080000000
+(1520951052.000000) can0 3D9#00410080000000
+(1520951052.200000) can0 3D9#00410080000000
+(1520951052.400000) can0 3D9#00410080000000
+(1520951052.600000) can0 3D9#00410080000000
+(1520951052.800000) can0 3D9#00410080000000
+(1520951053.000000) can0 3D9#00410080000000
+(1520951053.200000) can0 3D9#00410080000000
+(1520951053.400000) can0 3D9#00410080000000
+(1520951053.600000) can0 3D9#00410080000000
+(1520951053.800000) can0 3D9#00410080000000
+(1520951054.000000) can0 3D9#00410080000000
+(1520951054.200000) can0 3D9#00410080000000
+(1520951054.400000) can0 3D9#00410080000000
+(1520951054.600000) can0 3D9#00410080000000
+(1520951054.800000) can0 3D9#00410080000000
+(1520951055.000000) can0 3D9#00410080000000
+(1520951055.200000) can0 3D9#00410080000000
+(1520951055.400000) can0 3D9#00410080000000
+(1520951055.600000) can0 3D9#00410080000000
+(1520951055.800000) can0 3D9#00410080000000
+(1520951056.000000) can0 3D9#00410080000000
+(1520951056.200000) can0 3D9#00410080000000
+(1520951056.400000) can0 3D9#00410080000000
+(1520951056.600000) can0 3D9#00410080000000
+(1520951056.800000) can0 3D9#00410080000000
+(1520951057.000000) can0 3D9#00410080000000
+(1520951057.200000) can0 3D9#00410080000000
+(1520951057.400000) can0 3D9#00410080000000
+(1520951057.600000) can0 3D9#00410080000000
+(1520951057.800000) can0 3D9#00410080000000
+(1520951058.000000) can0 3D9#00410080000000
+(1520951058.200000) can0 3D9#00410080000000
+(1520951058.400000) can0 3D9#00410080000000
+(1520951058.600000) can0 3D9#00410080000000
+(1520951058.800000) can0 3D9#00410080000000
+(1520951059.000000) can0 3D9#00410080000000
+(1520951059.200000) can0 3D9#00410080000000
+(1520951059.400000) can0 3D9#00410080000000
+(1520951059.600000) can0 3D9#00410080000000
+(1520951059.800000) can0 3D9#00410080000000
+
+
+(1520951060.000000) can0 3D9#00410080000000
+(1520951060.200000) can0 3D9#00410080000000
+(1520951060.400000) can0 3D9#00410080000000
+(1520951060.600000) can0 3D9#00410080000000
+(1520951060.800000) can0 3D9#00410080000000
+(1520951061.000000) can0 3D9#00410080000000
+(1520951061.200000) can0 3D9#00410080000000
+(1520951061.400000) can0 3D9#00410080000000
+(1520951061.600000) can0 3D9#00410080000000
+(1520951061.800000) can0 3D9#00410080000000
+(1520951062.000000) can0 3D9#00410080000000
+(1520951062.200000) can0 3D9#00410080000000
+(1520951062.400000) can0 3D9#00410080000000
+(1520951062.600000) can0 3D9#00410080000000
+(1520951062.800000) can0 3D9#00410080000000
+(1520951063.000000) can0 3D9#00410080000000
+(1520951063.200000) can0 3D9#00410080000000
+(1520951063.400000) can0 3D9#00410080000000
+(1520951063.600000) can0 3D9#00410080000000
+(1520951063.800000) can0 3D9#00410080000000
+(1520951064.000000) can0 3D9#00410080000000
+(1520951064.200000) can0 3D9#00410080000000
+(1520951064.400000) can0 3D9#00410080000000
+(1520951064.600000) can0 3D9#00410080000000
+(1520951064.800000) can0 3D9#00410080000000
+(1520951065.000000) can0 3D9#00410080000000
+(1520951065.200000) can0 3D9#00410080000000
+(1520951065.400000) can0 3D9#00410080000000
+(1520951065.600000) can0 3D9#00410080000000
+(1520951065.800000) can0 3D9#00410080000000
+(1520951066.000000) can0 3D9#00410080000000
+(1520951066.200000) can0 3D9#00410080000000
+(1520951066.400000) can0 3D9#00410080000000
+(1520951066.600000) can0 3D9#00410080000000
+(1520951066.800000) can0 3D9#00410080000000
+(1520951067.000000) can0 3D9#00410080000000
+(1520951067.200000) can0 3D9#00410080000000
+(1520951067.400000) can0 3D9#00410080000000
+(1520951067.600000) can0 3D9#00410080000000
+(1520951067.800000) can0 3D9#00410080000000
+(1520951068.000000) can0 3D9#00410080000000
+(1520951068.200000) can0 3D9#00410080000000
+(1520951068.400000) can0 3D9#00410080000000
+(1520951068.600000) can0 3D9#00410080000000
+(1520951068.800000) can0 3D9#00410080000000
+(1520951069.000000) can0 3D9#00410080000000
+(1520951069.200000) can0 3D9#00410080000000
+(1520951069.400000) can0 3D9#00410080000000
+(1520951069.600000) can0 3D9#00410080000000
+(1520951069.800000) can0 3D9#00410080000000
+(1520951070.000000) can0 3D9#00410080000000
+(1520951070.200000) can0 3D9#00410080000000
+(1520951070.400000) can0 3D9#00410080000000
+(1520951070.600000) can0 3D9#00410080000000
+(1520951070.800000) can0 3D9#00410080000000
+(1520951071.000000) can0 3D9#00410080000000
+(1520951071.200000) can0 3D9#00410080000000
+(1520951071.400000) can0 3D9#00410080000000
+(1520951071.600000) can0 3D9#00410080000000
+(1520951071.800000) can0 3D9#00410080000000
+(1520951072.000000) can0 3D9#00410080000000
+(1520951072.200000) can0 3D9#00410080000000
+(1520951072.400000) can0 3D9#00410080000000
+(1520951072.600000) can0 3D9#00410080000000
+(1520951072.800000) can0 3D9#00410080000000
+(1520951073.000000) can0 3D9#00410080000000
+(1520951073.200000) can0 3D9#00410080000000
+(1520951073.400000) can0 3D9#00410080000000
+(1520951073.600000) can0 3D9#00410080000000
+(1520951073.800000) can0 3D9#00410080000000
+(1520951074.000000) can0 3D9#00410080000000
+(1520951074.200000) can0 3D9#00410080000000
+(1520951074.400000) can0 3D9#00410080000000
+(1520951074.600000) can0 3D9#00410080000000
+(1520951074.800000) can0 3D9#00410080000000
+(1520951075.000000) can0 3D9#00410080000000
+(1520951075.200000) can0 3D9#00410080000000
+(1520951075.400000) can0 3D9#00410080000000
+(1520951075.600000) can0 3D9#00410080000000
+(1520951075.800000) can0 3D9#00410080000000
+(1520951076.000000) can0 3D9#00410080000000
+(1520951076.200000) can0 3D9#00410080000000
+(1520951076.400000) can0 3D9#00410080000000
+(1520951076.600000) can0 3D9#00410080000000
+(1520951076.800000) can0 3D9#00410080000000
+(1520951077.000000) can0 3D9#00410080000000
+(1520951077.200000) can0 3D9#00410080000000
+(1520951077.400000) can0 3D9#00410080000000
+(1520951077.600000) can0 3D9#00410080000000
+(1520951077.800000) can0 3D9#00410080000000
+(1520951078.000000) can0 3D9#00410080000000
+(1520951078.200000) can0 3D9#00410080000000
+(1520951078.400000) can0 3D9#00410080000000
+(1520951078.600000) can0 3D9#00410080000000
+(1520951078.800000) can0 3D9#00410080000000
+(1520951079.000000) can0 3D9#00410080000000
+(1520951079.200000) can0 3D9#00410080000000
+(1520951079.400000) can0 3D9#00410080000000
+(1520951079.600000) can0 3D9#00410080000000
+(1520951079.800000) can0 3D9#00410080000000
+
+
+(1520951080.000000) can0 3D9#00410080000000
+(1520951080.200000) can0 3D9#00410080000000
+(1520951080.400000) can0 3D9#00410080000000
+(1520951080.600000) can0 3D9#00410080000000
+(1520951080.800000) can0 3D9#00410080000000
+(1520951081.000000) can0 3D9#00410080000000
+(1520951081.200000) can0 3D9#00410080000000
+(1520951081.400000) can0 3D9#00410080000000
+(1520951081.600000) can0 3D9#00410080000000
+(1520951081.800000) can0 3D9#00410080000000
+(1520951082.000000) can0 3D9#00410080000000
+(1520951082.200000) can0 3D9#00410080000000
+(1520951082.400000) can0 3D9#00410080000000
+(1520951082.600000) can0 3D9#00410080000000
+(1520951082.800000) can0 3D9#00410080000000
+(1520951083.000000) can0 3D9#00410080000000
+(1520951083.200000) can0 3D9#00410080000000
+(1520951083.400000) can0 3D9#00410080000000
+(1520951083.600000) can0 3D9#00410080000000
+(1520951083.800000) can0 3D9#00410080000000
+(1520951084.000000) can0 3D9#00410080000000
+(1520951084.200000) can0 3D9#00410080000000
+(1520951084.400000) can0 3D9#00410080000000
+(1520951084.600000) can0 3D9#00410080000000
+(1520951084.800000) can0 3D9#00410080000000
+(1520951085.000000) can0 3D9#00410080000000
+(1520951085.200000) can0 3D9#00410080000000
+(1520951085.400000) can0 3D9#00410080000000
+(1520951085.600000) can0 3D9#00410080000000
+(1520951085.800000) can0 3D9#00410080000000
+(1520951086.000000) can0 3D9#00410080000000
+(1520951086.200000) can0 3D9#00410080000000
+(1520951086.400000) can0 3D9#00410080000000
+(1520951086.600000) can0 3D9#00410080000000
+(1520951086.800000) can0 3D9#00410080000000
+(1520951087.000000) can0 3D9#00410080000000
+(1520951087.200000) can0 3D9#00410080000000
+(1520951087.400000) can0 3D9#00410080000000
+(1520951087.600000) can0 3D9#00410080000000
+(1520951087.800000) can0 3D9#00410080000000
+(1520951088.000000) can0 3D9#00410080000000
+(1520951088.200000) can0 3D9#00410080000000
+(1520951088.400000) can0 3D9#00410080000000
+(1520951088.600000) can0 3D9#00410080000000
+(1520951088.800000) can0 3D9#00410080000000
+(1520951089.000000) can0 3D9#00410080000000
+(1520951089.200000) can0 3D9#00410080000000
+(1520951089.400000) can0 3D9#00410080000000
+(1520951089.600000) can0 3D9#00410080000000
+(1520951089.800000) can0 3D9#00410080000000
+(1520951090.000000) can0 3D9#00410080000000
+(1520951090.200000) can0 3D9#00410080000000
+(1520951090.400000) can0 3D9#00410080000000
+(1520951090.600000) can0 3D9#00410080000000
+(1520951090.800000) can0 3D9#00410080000000
+(1520951091.000000) can0 3D9#00410080000000
+(1520951091.200000) can0 3D9#00410080000000
+(1520951091.400000) can0 3D9#00410080000000
+(1520951091.600000) can0 3D9#00410080000000
+(1520951091.800000) can0 3D9#00410080000000
+(1520951092.000000) can0 3D9#00410080000000
+(1520951092.200000) can0 3D9#00410080000000
+(1520951092.400000) can0 3D9#00410080000000
+(1520951092.600000) can0 3D9#00410080000000
+(1520951092.800000) can0 3D9#00410080000000
+(1520951093.000000) can0 3D9#00410080000000
+(1520951093.200000) can0 3D9#00410080000000
+(1520951093.400000) can0 3D9#00410080000000
+(1520951093.600000) can0 3D9#00410080000000
+(1520951093.800000) can0 3D9#00410080000000
+(1520951094.000000) can0 3D9#00410080000000
+(1520951094.200000) can0 3D9#00410080000000
+(1520951094.400000) can0 3D9#00410080000000
+(1520951094.600000) can0 3D9#00410080000000
+(1520951094.800000) can0 3D9#00410080000000
+(1520951095.000000) can0 3D9#00410080000000
+(1520951095.200000) can0 3D9#00410080000000
+(1520951095.400000) can0 3D9#00410080000000
+(1520951095.600000) can0 3D9#00410080000000
+(1520951095.800000) can0 3D9#00410080000000
+(1520951096.000000) can0 3D9#00410080000000
+(1520951096.200000) can0 3D9#00410080000000
+(1520951096.400000) can0 3D9#00410080000000
+(1520951096.600000) can0 3D9#00410080000000
+(1520951096.800000) can0 3D9#00410080000000
+(1520951097.000000) can0 3D9#00410080000000
+(1520951097.200000) can0 3D9#00410080000000
+(1520951097.400000) can0 3D9#00410080000000
+(1520951097.600000) can0 3D9#00410080000000
+(1520951097.800000) can0 3D9#00410080000000
+(1520951098.000000) can0 3D9#00410080000000
+(1520951098.200000) can0 3D9#00410080000000
+(1520951098.400000) can0 3D9#00410080000000
+(1520951098.600000) can0 3D9#00410080000000
+(1520951098.800000) can0 3D9#00410080000000
+(1520951099.000000) can0 3D9#00410080000000
+(1520951099.200000) can0 3D9#00410080000000
+(1520951099.400000) can0 3D9#00410080000000
+(1520951099.600000) can0 3D9#00410080000000
+(1520951099.800000) can0 3D9#00410080000000
diff --git a/test/afb-test/tests/low-can-tests.lua b/test/afb-test/tests/low-can-tests.lua
deleted file mode 100644
index 6a6085ef..00000000
--- a/test/afb-test/tests/low-can-tests.lua
+++ /dev/null
@@ -1,50 +0,0 @@
-
---[[
- Copyright (C) 2018 "IoT.bzh"
- Author Romain Forlot <romain.forlot@iot.bzh>
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
-
- NOTE: strict mode: every global variables should be prefixed by '_'
---]]
-
-_AFT.describe("Test_detection_is_off", function()
- local logMsg = "signal: Engine is off, diagnostic_messages.engine.speed won't received responses until it's on"
- _AFT.addLogToMonitor("low-can", "warning", logMsg)
-
- _AFT.assertVerbStatusSuccess("low-can","subscribe", { event = "diagnostic_messages.engine.speed" })
- _AFT.assertLogReceived(logMsg)
-end)
-
-_AFT.describe("Test_turning_on", function()
- _AFT.assertVerbStatusSuccess("low-can","subscribe", { event = "diagnostic_messages.engine.speed" })
-
- local evt = "low-can/diagnostic_messages"
- _AFT.addEventToMonitor(evt)
-
- local ret = os.execute("./var/replay_launcher.sh ./var/test1.canreplay")
- _AFT.assertIsTrue(ret)
-
- _AFT.assertEvtReceived(evt, function(eventName, data)
- _AFT.assertIsTrue(data.name == "diagnostic_messages.engine.speed")
- end)
-end)
-
-_AFT.describe("Test_detection_is_on", function()
- local logMsg = "signal: Engine is off, diagnostic_messages.engine.speed won't received responses until it's on"
- _AFT.addLogToMonitor("low-can", "warning", logMsg)
-
- _AFT.assertVerbStatusSuccess("low-can","subscribe", { event = "diagnostic_messages.engine.speed" })
- _AFT.assertLogNotReceived(logMsg)
-end)
diff --git a/test/afb-test/tests/low-can-coverage.lua b/test/afb-test/tests/low-can_BasicAPITest.lua
index 3d78168e..5dddb55e 100644
--- a/test/afb-test/tests/low-can-coverage.lua
+++ b/test/afb-test/tests/low-can_BasicAPITest.lua
@@ -28,45 +28,51 @@ _AFT.setBeforeAll(function()
return 0
end)
+_AFT.setAfterEach(function()
+ os.execute("pkill canplayer")
+ os.execute("pkill linuxcan-canpla")
+end)
+
_AFT.testVerbStatusSuccess("low-can_list", "low-can", "list", {})
_AFT.testVerbStatusSuccess("low-can_get", "low-can", "get", { event = "engine.speed"})
_AFT.describe("Diagnostic_engine_speed_simulation", function()
- _AFT.assertVerbStatusSuccess("low-can","subscribe", { event = "diagnostic_messages.engine.speed" })
+
+ local api = "low-can"
+ local evt = "diagnostic_messages.engine.speed"
+ _AFT.assertVerbStatusSuccess(api,"subscribe", { event = evt })
- local evt = "low-can/diagnostic_messages"
- _AFT.addEventToMonitor(evt)
+ _AFT.addEventToMonitor(api .. "/" .. evt ,function(eventName, data)
+ _AFT.assertIsTrue(data.name == "diagnostic_messages.engine.speed")
+ end)
local ret = os.execute("./var/replay_launcher.sh ./var/test1.canreplay")
_AFT.assertIsTrue(ret)
- _AFT.assertEvtReceived(evt, function(eventName, data)
- _AFT.assertIsTrue(data.name == "diagnostic_messages.engine.speed")
- end)
+ _AFT.assertEvtReceived(api .. "/" .. evt, 1000000)
_AFT.assertVerbStatusSuccess("low-can","unsubscribe", { event = "diagnostic_messages.engine.speed" })
- local ret = os.execute("pkill canplayer")
- _AFT.assertIsTrue(ret)
end)
_AFT.describe("Subscribe_all", function()
- _AFT.assertVerbStatusSuccess("low-can","subscribe", { event = "*" })
+ local api = "low-can"
+ local evt = "messages.vehicle.average.speed"
- local evt = "low-can/messages.vehicle.average.speed"
- _AFT.addEventToMonitor(evt)
+
+ _AFT.addEventToMonitor(api .. "/" .. evt, function(eventName, data)
+ _AFT.assertEquals(data.name,"messages.vehicle.average.speed")
+ end)
+
+ _AFT.assertVerbStatusSuccess(api,"subscribe", { event = "*" })
local ret = os.execute("./var/replay_launcher.sh ./var/test2-3.canreplay")
_AFT.assertIsTrue(ret)
- _AFT.assertEvtReceived(evt, function(eventName, data)
- _AFT.assertIsTrue(data.name == "messages.vehicle.average.speed")
- end)
+ _AFT.assertEvtReceived(api .. "/" .. evt, 5000000);
- _AFT.assertVerbStatusSuccess("low-can","unsubscribe", { event = "*" })
+ _AFT.assertVerbStatusSuccess(api,"unsubscribe", { event = "*" })
- local ret = os.execute("pkill canplayer")
- _AFT.assertIsTrue(ret)
end)
_AFT.exitAtEnd()
diff --git a/test/afb-test/tests/low-can_FilterTest01.lua b/test/afb-test/tests/low-can_FilterTest01.lua
new file mode 100644
index 00000000..a5744768
--- /dev/null
+++ b/test/afb-test/tests/low-can_FilterTest01.lua
@@ -0,0 +1,56 @@
+ --[[
+ Copyright (C) 2018 "IoT.bzh"
+ Author Clément Malléjac <clementmallejac@gmail.com>
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+
+ NOTE: strict mode: every global variables should be prefixed by '_'
+--]]
+
+_AFT.setAfterEach( function()
+ os.execute("pkill canplayer")
+ os.execute("pkill linuxcan-canpla")
+end)
+
+_AFT.describe("Filter_Test_01/Step_1", function()
+ local api = "low-can"
+ local evt = "engine.speed"
+ local min = 30;
+ local max = 100;
+
+ _AFT.addEventToMonitor(api .. "/" ..evt, function(eventname,data)
+ _AFT.assertEquals(data.name,evt)
+ end)
+ _AFT.assertVerbStatusSuccess(api ,"subscribe", { event = evt, filter = { min = 30, max = 100}})
+ os.execute("./var/replay_launcher.sh ./var/testFilter01filteredOut.canreplay");
+ _AFT.assertEvtNotReceived(api .. "/" ..evt, 1000000)
+end)
+
+_AFT.describe("Filter_Test_01/Step_2", function()
+ local api = "low-can"
+ local evt = "messages.engine.speed"
+ local min = 30;
+ local max = 100;
+
+ _AFT.addEventToMonitor(api .. "/" ..evt, function(eventname,data)
+ print(data.name .."-vs-" .. evt)
+ _AFT.assertEquals(data.name,evt)
+ _AFT.assertIsTrue(data.value > min and data.value < max )
+ end)
+ _AFT.assertVerbStatusSuccess(api ,"subscribe", { event = evt, filter = { min = 30, max = 100}})
+ os.execute("./var/replay_launcher.sh ./var/testFilter01pass.canreplay");
+
+ _AFT.assertEvtReceived(api .. "/" ..evt, 1000000)
+ _AFT.assertVerbStatusSuccess(api,"unsubscribe", { event = evt })
+end) \ No newline at end of file