Skip to content

Commit 3f61888

Browse files
Prepare ocloc tests for switch to zebin
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
1 parent a1e2196 commit 3f61888

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

opencl/test/unit_test/offline_compiler/offline_compiler_tests.cpp

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,7 +1372,9 @@ TEST_F(OfflineCompilerTests, givenExcludeIrArgumentWhenCompilingKernelThenIrShou
13721372
clFiles + "copybuffer.cl",
13731373
"-exclude_ir",
13741374
"-device",
1375-
gEnvironment->devicePrefix.c_str()};
1375+
gEnvironment->devicePrefix.c_str(),
1376+
"--format",
1377+
"patchtokens"};
13761378

13771379
MockOfflineCompiler mockOfflineCompiler{};
13781380
mockOfflineCompiler.initialize(argv.size(), argv);
@@ -1604,7 +1606,9 @@ TEST_F(OfflineCompilerTests, GivenArgsWhenBuildingThenBuildSucceeds) {
16041606
"-file",
16051607
clFiles + "copybuffer.cl",
16061608
"-device",
1607-
gEnvironment->devicePrefix.c_str()};
1609+
gEnvironment->devicePrefix.c_str(),
1610+
"--format",
1611+
"patchtokens"};
16081612

16091613
pOfflineCompiler = OfflineCompiler::create(argv.size(), argv, true, retVal, oclocArgHelperWithoutInput.get());
16101614

@@ -1644,7 +1648,9 @@ TEST_F(OfflineCompilerTests, GivenArgsWhenBuildingWithDeviceConfigValueThenBuild
16441648
"-file",
16451649
clFiles + "copybuffer.cl",
16461650
"-device",
1647-
configStr};
1651+
configStr,
1652+
"--format",
1653+
"patchtokens"};
16481654

16491655
pOfflineCompiler = OfflineCompiler::create(argv.size(), argv, true, retVal, oclocArgHelperWithoutInput.get());
16501656

@@ -1672,7 +1678,9 @@ TEST_F(OfflineCompilerTests, GivenLlvmTextWhenBuildingThenBuildSucceeds) {
16721678
clFiles + "copybuffer.cl",
16731679
"-device",
16741680
gEnvironment->devicePrefix.c_str(),
1675-
"-llvm_text"};
1681+
"-llvm_text",
1682+
"--format",
1683+
"patchtokens"};
16761684

16771685
pOfflineCompiler = OfflineCompiler::create(argv.size(), argv, true, retVal, oclocArgHelperWithoutInput.get());
16781686

@@ -1848,7 +1856,9 @@ TEST_F(OfflineCompilerTests, GivenCppFileWhenBuildingThenBuildSucceeds) {
18481856
clFiles + "copybuffer.cl",
18491857
"-device",
18501858
gEnvironment->devicePrefix.c_str(),
1851-
"-cpp_file"};
1859+
"-cpp_file",
1860+
"--format",
1861+
"patchtokens"};
18521862

18531863
pOfflineCompiler = OfflineCompiler::create(argv.size(), argv, true, retVal, oclocArgHelperWithoutInput.get());
18541864

0 commit comments

Comments
 (0)