mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-06 13:51:28 +00:00
[Pal] Build and run x86-specific tests only if on x86 arch
This commit is contained in:
committed by
Dmitrii Kuvaiskii
parent
fd22ef2fa3
commit
fde3c34849
@@ -17,7 +17,6 @@ executables = \
|
||||
..Bootstrap \
|
||||
AtomicMath \
|
||||
AttestationReport \
|
||||
AvxDisable \
|
||||
avl_tree_test \
|
||||
Bootstrap \
|
||||
Bootstrap2 \
|
||||
@@ -26,8 +25,6 @@ executables = \
|
||||
Directory \
|
||||
Event \
|
||||
Event2 \
|
||||
Exception \
|
||||
Exception2 \
|
||||
Exit \
|
||||
Failure \
|
||||
File \
|
||||
@@ -42,7 +39,6 @@ executables = \
|
||||
Process2 \
|
||||
Process3 \
|
||||
Process4 \
|
||||
Segment \
|
||||
Select \
|
||||
Semaphore \
|
||||
SendHandle \
|
||||
@@ -50,13 +46,21 @@ executables = \
|
||||
Socket \
|
||||
Symbols \
|
||||
Tcp \
|
||||
Thread \
|
||||
Thread2 \
|
||||
Udp \
|
||||
Wait \
|
||||
Yield \
|
||||
normalize_path
|
||||
|
||||
ifeq ($(ARCH),x86_64)
|
||||
executables += \
|
||||
AvxDisable \
|
||||
Exception \
|
||||
Exception2 \
|
||||
Segment \
|
||||
Thread
|
||||
endif
|
||||
|
||||
manifests = \
|
||||
manifest \
|
||||
AvxDisable.manifest \
|
||||
|
||||
@@ -55,6 +55,7 @@ class TC_00_BasicSet2(RegressionTestCase):
|
||||
self.assertIn('In thread 1', stderr)
|
||||
self.assertIn('Success, leave main thread', stderr)
|
||||
|
||||
@unittest.skipUnless(ON_X86, "x86-specific")
|
||||
def test_Exception2(self):
|
||||
_, stderr = self.run_binary(['Exception2'])
|
||||
self.assertIn('Enter Main Thread', stderr)
|
||||
@@ -89,6 +90,7 @@ class TC_00_BasicSet2(RegressionTestCase):
|
||||
for i in range(100):
|
||||
self.assertIn('In process: Process4 %d ' % i, stderr)
|
||||
|
||||
@unittest.skipUnless(ON_X86, "x86-specific")
|
||||
def test_Segment(self):
|
||||
_, stderr = self.run_binary(['Segment'])
|
||||
self.assertIn('TLS = 0x', stderr)
|
||||
@@ -323,6 +325,7 @@ class TC_10_Exception(RegressionTestCase):
|
||||
return False
|
||||
return True
|
||||
|
||||
@unittest.skipUnless(ON_X86, "x86-specific")
|
||||
def test_000_exception(self):
|
||||
_, stderr = self.run_binary(['Exception'])
|
||||
|
||||
@@ -570,6 +573,7 @@ class TC_20_SingleProcess(RegressionTestCase):
|
||||
self.assertIn('UDP Write 4 OK', stderr)
|
||||
self.assertIn('UDP Read 4: Hello World 2', stderr)
|
||||
|
||||
@unittest.skipUnless(ON_X86, "x86-specific")
|
||||
def test_500_thread(self):
|
||||
_, stderr = self.run_binary(['Thread'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user