From 23ac0835c6648587eccefd156dc404cc634c7a28 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Fri, 13 Dec 2024 17:03:25 +0000 Subject: [PATCH] test: skip test when native module is not available (#170) --- test/fixtures/native-modules/aix-ppc64.js | 2 ++ test/fixtures/native-modules/linux-ppc64.js | 2 ++ test/fixtures/native-modules/linux-s390x.js | 2 ++ 3 files changed, 6 insertions(+) create mode 100644 test/fixtures/native-modules/aix-ppc64.js create mode 100644 test/fixtures/native-modules/linux-ppc64.js create mode 100644 test/fixtures/native-modules/linux-s390x.js diff --git a/test/fixtures/native-modules/aix-ppc64.js b/test/fixtures/native-modules/aix-ppc64.js new file mode 100644 index 0000000..a828e9e --- /dev/null +++ b/test/fixtures/native-modules/aix-ppc64.js @@ -0,0 +1,2 @@ +console.log(`skipping ${process.env.IITM_TEST_FILE} as no native module is available for ${process.platform}-${process.arch}`) +process.exit(0) diff --git a/test/fixtures/native-modules/linux-ppc64.js b/test/fixtures/native-modules/linux-ppc64.js new file mode 100644 index 0000000..a828e9e --- /dev/null +++ b/test/fixtures/native-modules/linux-ppc64.js @@ -0,0 +1,2 @@ +console.log(`skipping ${process.env.IITM_TEST_FILE} as no native module is available for ${process.platform}-${process.arch}`) +process.exit(0) diff --git a/test/fixtures/native-modules/linux-s390x.js b/test/fixtures/native-modules/linux-s390x.js new file mode 100644 index 0000000..a828e9e --- /dev/null +++ b/test/fixtures/native-modules/linux-s390x.js @@ -0,0 +1,2 @@ +console.log(`skipping ${process.env.IITM_TEST_FILE} as no native module is available for ${process.platform}-${process.arch}`) +process.exit(0)