Refactoring ULTs around HW tests

Splitting HW tests into CMD-unrelated HW tests
and CMD-related HW tests

Change-Id: Ifbdcabdd0d6f4082e976363a3d8bcd5e7a9ce6c1
This commit is contained in:
Zdanowicz, Zbigniew
2018-05-18 11:45:45 +02:00
parent bcda4ce071
commit b27eee1f7a
42 changed files with 504 additions and 366 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, Intel Corporation
* Copyright (c) 2017 - 2018, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -118,25 +118,25 @@ struct TwoOOQsTwoDependentWalkers : public HelloWorldTest<OOQFixtureFactory>,
CommandQueue *pCmdQ2 = nullptr;
};
HWTEST_F(TwoOOQsTwoDependentWalkers, shouldHaveTwoWalkers) {
HWCMDTEST_F(IGFX_GEN8_CORE, TwoOOQsTwoDependentWalkers, shouldHaveTwoWalkers) {
parseWalkers<FamilyType>();
EXPECT_NE(itorWalker1, itorWalker2);
}
HWTEST_F(TwoOOQsTwoDependentWalkers, shouldHaveOnePS) {
HWCMDTEST_F(IGFX_GEN8_CORE, TwoOOQsTwoDependentWalkers, shouldHaveOnePS) {
parseWalkers<FamilyType>();
int numCommands = getNumberOfPipelineSelectsThatEnablePipelineSelect<FamilyType>();
EXPECT_EQ(1, numCommands);
}
HWTEST_F(TwoOOQsTwoDependentWalkers, shouldHaveOneVFEState) {
HWCMDTEST_F(IGFX_GEN8_CORE, TwoOOQsTwoDependentWalkers, shouldHaveOneVFEState) {
parseWalkers<FamilyType>();
auto numCommands = getCommandsList<typename FamilyType::MEDIA_VFE_STATE>().size();
EXPECT_EQ(1u, numCommands);
}
HWTEST_F(TwoOOQsTwoDependentWalkers, shouldHaveAPipecontrolBetweenWalkers) {
HWCMDTEST_F(IGFX_GEN8_CORE, TwoOOQsTwoDependentWalkers, shouldHaveAPipecontrolBetweenWalkers) {
typedef typename FamilyType::PIPE_CONTROL PIPE_CONTROL;
parseWalkers<FamilyType>();