Skip to content

Commit 3948e42

Browse files
Merge pull request #634 from NixOS/update-test-data
distribution-nixpkgs/test: update nixpkgs platform test data
2 parents 5908d6a + b41cae4 commit 3948e42

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

distribution-nixpkgs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ To check if any new platforms need to be covered, do the following:
2222

2323
3. If the test suite fails, add test cases for all missing system tuples.
2424

25-
4. In all cases, change the dates of last update in `test/hspec.hs` and
25+
4. In all cases, change the date of last update in
2626
`src/Distribution/Nixpkgs/Meta.hs` to the current day.

distribution-nixpkgs/src/Distribution/Nixpkgs/Meta.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ nixpkgsPlatformFromCabal (Platform arch os) = "\"" ++ nixArch ++ "-" ++ nixOs ++
127127
-- using 'nixpkgsPlatformFromString' and rendering them via the 'Pretty'
128128
-- instance of 'NixpkgsPlatform' should not change the system tuple
129129
-- for tuples accepted by nixpkgs. This has been tested for all known tuples
130-
-- (from @lib.platforms@ and @lib.systems.examples@) as of 2022-05-08.
130+
-- (from @lib.platforms@ and @lib.systems.examples@) as of 2024-12-01.
131131
-- Please open an issue if any newly added ones are not recognized properly.
132132
--
133133
-- __Warning__: 'nixpkgsPlatformFromString' consequently tries to preserve all
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
["aarch64-darwin","aarch64-genode","aarch64-linux","aarch64-netbsd","aarch64-none","aarch64_be-none","arm-none","armv5tel-linux","armv6l-linux","armv6l-netbsd","armv6l-none","armv7a-darwin","armv7a-linux","armv7a-netbsd","armv7l-linux","armv7l-netbsd","avr-none","i686-cygwin","i686-darwin","i686-freebsd","i686-genode","i686-linux","i686-netbsd","i686-none","i686-openbsd","i686-windows","javascript-ghcjs","loongarch64-linux","m68k-linux","m68k-netbsd","m68k-none","microblaze-linux","microblaze-none","microblazeel-linux","microblazeel-none","mips-linux","mips-none","mips64-linux","mips64-none","mips64el-linux","mipsel-linux","mipsel-netbsd","mmix-mmixware","msp430-none","or1k-none","powerpc-netbsd","powerpc-none","powerpc64-linux","powerpc64le-linux","powerpcle-none","riscv32-linux","riscv32-netbsd","riscv32-none","riscv64-linux","riscv64-netbsd","riscv64-none","rx-none","s390-linux","s390-none","s390x-linux","s390x-none","vc4-none","wasm32-none","wasm32-wasi","wasm64-wasi","x86_64-cygwin","x86_64-darwin","x86_64-freebsd","x86_64-genode","x86_64-linux","x86_64-netbsd","x86_64-none","x86_64-openbsd","x86_64-redox","x86_64-solaris","x86_64-windows"]
1+
["aarch64-darwin","aarch64-freebsd","aarch64-genode","aarch64-linux","aarch64-netbsd","aarch64-none","aarch64-windows","aarch64_be-none","arm-none","armv5tel-linux","armv6l-linux","armv6l-netbsd","armv6l-none","armv7a-darwin","armv7a-linux","armv7a-netbsd","armv7l-linux","armv7l-netbsd","avr-none","i686-cygwin","i686-darwin","i686-freebsd","i686-genode","i686-linux","i686-netbsd","i686-none","i686-openbsd","i686-windows","javascript-ghcjs","loongarch64-linux","m68k-linux","m68k-netbsd","m68k-none","microblaze-linux","microblaze-none","microblazeel-linux","microblazeel-none","mips-linux","mips-none","mips64-linux","mips64-none","mips64el-linux","mipsel-linux","mipsel-netbsd","mmix-mmixware","msp430-none","or1k-none","powerpc-netbsd","powerpc-none","powerpc64-linux","powerpc64le-linux","powerpcle-none","riscv32-linux","riscv32-netbsd","riscv32-none","riscv64-linux","riscv64-netbsd","riscv64-none","rx-none","s390-linux","s390-none","s390x-linux","s390x-none","vc4-none","wasm32-none","wasm32-wasi","wasm64-wasi","x86_64-cygwin","x86_64-darwin","x86_64-freebsd","x86_64-genode","x86_64-linux","x86_64-netbsd","x86_64-none","x86_64-openbsd","x86_64-redox","x86_64-solaris","x86_64-windows"]

distribution-nixpkgs/test/hspec.hs

+6-2
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,20 @@ main = hspec $ do
4444
it "is parsed correctly" $
4545
nixpkgsPlatformFromString str `shouldBe` Just plat
4646

47-
-- All system tuples from lib.platforms as of 2022-05-08. Testing these allows
48-
-- us to get notified about behavior change in Cabal as early as possible.
47+
-- All system tuples from lib.platforms. Testing these allows us to
48+
-- get notified about behavior change in Cabal as early as possible.
49+
-- You can check if the list is up to date by running
50+
-- regenerate-all-system-tuples.sh.
4951
nixpkgsSystemMapping :: [(String, Platform)]
5052
nixpkgsSystemMapping =
5153
[ -- lib.platforms.all
5254
("aarch64-darwin", Platform AArch64 OSX)
55+
, ("aarch64-freebsd", Platform AArch64 FreeBSD)
5356
, ("aarch64-genode", Platform AArch64 (OtherOS "genode"))
5457
, ("aarch64-linux", Platform AArch64 Linux)
5558
, ("aarch64-netbsd", Platform AArch64 NetBSD)
5659
, ("aarch64-none", Platform AArch64 (OtherOS "none"))
60+
, ("aarch64-windows", Platform AArch64 Windows)
5761
, ("aarch64_be-none", Platform (OtherArch "aarch64_be") (OtherOS "none"))
5862
, ("arm-none", Platform Arm (OtherOS "none"))
5963
, ("armv5tel-linux", Platform (OtherArch "armv5tel") Linux)

0 commit comments

Comments
 (0)