For serial port, both SAS and SATA use nearly the same states/tests. We can treat both SAS and SATA drives in the same way.
Please keep in mind that there are actually a few tests different between the two. For example, Megalodon has different channel optimization sequence due to different read/write channel chips.
Unlike serial port, the differences between interfaces become obvious in interface test.
In interface test, different products develop their own version of tests. For current Megalodon config, there are some additional tests required by SAS and some of state names are different between SAS and SATA. However, most of the tests are the same.
Besides IO test differences, tester for IO SAS and SATA are also different. Currently we use initiator card to convert our test commands into interface commands for SAS, while we use both CPC and SIC (SATA Initiator Card) to do that job for SATA.