[SWDEV-438556][SWDEV-451686] - Enable Negative Param hip tests

Change-Id: I7c602ca0109864aac9d18feb31ae90f2a0ef4d36


[ROCm/hip-tests commit: 839b3b21d1]
This commit is contained in:
Rahul Manocha
2024-03-15 22:51:46 +00:00
parent 6b27d459e5
commit 4ecda67e71
13 changed files with 376 additions and 236 deletions
@@ -21,6 +21,7 @@
import subprocess
import sys
import unittest
import os
class CompileAndCapture(unittest.TestCase):
path = None
@@ -41,11 +42,14 @@ class CompileAndCapture(unittest.TestCase):
self.assertTrue(self.platform == 'amd' or self.platform == 'nvidia')
def test(self):
if os.name == 'nt':
hipcc = self.hip_path + '/bin/hipcc.bat'
else:
hipcc = self.hip_path + '/bin/hipcc'
compiler_args = [
self.hip_path + '/bin/hipcc',
'-I' + self.path + '/../../external/Catch2',
'-I' + self.path + '/../../include',
'-I' + self.path + '/../../external/picojson',
hipcc,
'-I' + self.path + '/../../../include',
'-c',
self.path + '/' + self.file,
]