[Pal] Build and run x86-specific tests only if on x86 arch

This commit is contained in:
Stefan Berger
2020-06-26 03:24:55 +00:00
committed by Dmitrii Kuvaiskii
parent fd22ef2fa3
commit fde3c34849
2 changed files with 13 additions and 5 deletions
+9 -5
View File
@@ -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 \
+4
View File
@@ -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'])