From 83cc776bcdfae930d49f3c321ebf787e9ed7b111 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 27 Apr 2025 16:18:51 +0200 Subject: treewide: Add nice GPL-3.0-or-later license header This change also ensures that this repo is reuse-3.0 compliant. --- tests/README.md | 16 ++++++++++++++-- tests/by-name/le/less/data/test.file.license | 9 +++++++++ tests/by-name/le/less/test.desc.license | 9 +++++++++ tests/by-name/le/less/test.nix | 9 +++++++++ tests/by-name/nv/nvim-checkhealth/test.desc.license | 9 +++++++++ tests/by-name/nv/nvim-checkhealth/test.nix | 9 +++++++++ tests/by-name/nv/nvim-neorg/data/index.norg.license | 9 +++++++++ tests/by-name/nv/nvim-neorg/data/reference.norg.license | 9 +++++++++ tests/by-name/nv/nvim-neorg/test.desc.license | 9 +++++++++ tests/by-name/nv/nvim-neorg/test.nix | 9 +++++++++ tests/by-name/ya/yambar/test.desc.license | 9 +++++++++ tests/by-name/ya/yambar/test.nix | 9 +++++++++ tests/default.nix | 9 +++++++++ tests/infrastructure/clean.awk | 10 ++++++++++ tests/infrastructure/default.nix | 9 +++++++++ tests/infrastructure/driver.sh | 11 +++++++++++ tests/infrastructure/run.nix | 9 +++++++++ 17 files changed, 161 insertions(+), 2 deletions(-) create mode 100644 tests/by-name/le/less/data/test.file.license create mode 100644 tests/by-name/le/less/test.desc.license create mode 100644 tests/by-name/nv/nvim-checkhealth/test.desc.license create mode 100644 tests/by-name/nv/nvim-neorg/data/index.norg.license create mode 100644 tests/by-name/nv/nvim-neorg/data/reference.norg.license create mode 100644 tests/by-name/nv/nvim-neorg/test.desc.license create mode 100644 tests/by-name/ya/yambar/test.desc.license (limited to 'tests') diff --git a/tests/README.md b/tests/README.md index f789c990..34dc9255 100644 --- a/tests/README.md +++ b/tests/README.md @@ -1,6 +1,18 @@ + + # How to write a test -Test are simple derivations, put into the `by-name` directory. As you +Test are simple derivations, put into the `by-name` directory. As you often want to test configuration, the 'standard' nixos-vm-test function starts a vm with the specified configuration and lets you run a python test script. @@ -78,7 +90,7 @@ Sleep for `ARGS` seconds. #### `Expect` -Grep the currently visible screen for the regex `ARGS`. This regex +Grep the currently visible screen for the regex `ARGS`. This regex must match. #### `ExpectNot` diff --git a/tests/by-name/le/less/data/test.file.license b/tests/by-name/le/less/data/test.file.license new file mode 100644 index 00000000..eae6a84c --- /dev/null +++ b/tests/by-name/le/less/data/test.file.license @@ -0,0 +1,9 @@ +nixos-config - My current NixOS configuration + +Copyright (C) 2025 Benedikt Peetz +SPDX-License-Identifier: GPL-3.0-or-later + +This file is part of my nixos-config. + +You should have received a copy of the License along with this program. +If not, see . diff --git a/tests/by-name/le/less/test.desc.license b/tests/by-name/le/less/test.desc.license new file mode 100644 index 00000000..eae6a84c --- /dev/null +++ b/tests/by-name/le/less/test.desc.license @@ -0,0 +1,9 @@ +nixos-config - My current NixOS configuration + +Copyright (C) 2025 Benedikt Peetz +SPDX-License-Identifier: GPL-3.0-or-later + +This file is part of my nixos-config. + +You should have received a copy of the License along with this program. +If not, see . diff --git a/tests/by-name/le/less/test.nix b/tests/by-name/le/less/test.nix index cdd8209c..c9716ffc 100644 --- a/tests/by-name/le/less/test.nix +++ b/tests/by-name/le/less/test.nix @@ -1,3 +1,12 @@ +# nixos-config - My current NixOS configuration +# +# Copyright (C) 2025 Benedikt Peetz +# SPDX-License-Identifier: GPL-3.0-or-later +# +# This file is part of my nixos-config. +# +# You should have received a copy of the License along with this program. +# If not, see . {mkTest, ...}: mkTest { name = "less"; diff --git a/tests/by-name/nv/nvim-checkhealth/test.desc.license b/tests/by-name/nv/nvim-checkhealth/test.desc.license new file mode 100644 index 00000000..eae6a84c --- /dev/null +++ b/tests/by-name/nv/nvim-checkhealth/test.desc.license @@ -0,0 +1,9 @@ +nixos-config - My current NixOS configuration + +Copyright (C) 2025 Benedikt Peetz +SPDX-License-Identifier: GPL-3.0-or-later + +This file is part of my nixos-config. + +You should have received a copy of the License along with this program. +If not, see . diff --git a/tests/by-name/nv/nvim-checkhealth/test.nix b/tests/by-name/nv/nvim-checkhealth/test.nix index 399a25ff..cb04e758 100644 --- a/tests/by-name/nv/nvim-checkhealth/test.nix +++ b/tests/by-name/nv/nvim-checkhealth/test.nix @@ -1,3 +1,12 @@ +# nixos-config - My current NixOS configuration +# +# Copyright (C) 2025 Benedikt Peetz +# SPDX-License-Identifier: GPL-3.0-or-later +# +# This file is part of my nixos-config. +# +# You should have received a copy of the License along with this program. +# If not, see . { mkTest, extraModules, diff --git a/tests/by-name/nv/nvim-neorg/data/index.norg.license b/tests/by-name/nv/nvim-neorg/data/index.norg.license new file mode 100644 index 00000000..eae6a84c --- /dev/null +++ b/tests/by-name/nv/nvim-neorg/data/index.norg.license @@ -0,0 +1,9 @@ +nixos-config - My current NixOS configuration + +Copyright (C) 2025 Benedikt Peetz +SPDX-License-Identifier: GPL-3.0-or-later + +This file is part of my nixos-config. + +You should have received a copy of the License along with this program. +If not, see . diff --git a/tests/by-name/nv/nvim-neorg/data/reference.norg.license b/tests/by-name/nv/nvim-neorg/data/reference.norg.license new file mode 100644 index 00000000..eae6a84c --- /dev/null +++ b/tests/by-name/nv/nvim-neorg/data/reference.norg.license @@ -0,0 +1,9 @@ +nixos-config - My current NixOS configuration + +Copyright (C) 2025 Benedikt Peetz +SPDX-License-Identifier: GPL-3.0-or-later + +This file is part of my nixos-config. + +You should have received a copy of the License along with this program. +If not, see . diff --git a/tests/by-name/nv/nvim-neorg/test.desc.license b/tests/by-name/nv/nvim-neorg/test.desc.license new file mode 100644 index 00000000..eae6a84c --- /dev/null +++ b/tests/by-name/nv/nvim-neorg/test.desc.license @@ -0,0 +1,9 @@ +nixos-config - My current NixOS configuration + +Copyright (C) 2025 Benedikt Peetz +SPDX-License-Identifier: GPL-3.0-or-later + +This file is part of my nixos-config. + +You should have received a copy of the License along with this program. +If not, see . diff --git a/tests/by-name/nv/nvim-neorg/test.nix b/tests/by-name/nv/nvim-neorg/test.nix index ee0e1b52..9f160df5 100644 --- a/tests/by-name/nv/nvim-neorg/test.nix +++ b/tests/by-name/nv/nvim-neorg/test.nix @@ -1,3 +1,12 @@ +# nixos-config - My current NixOS configuration +# +# Copyright (C) 2025 Benedikt Peetz +# SPDX-License-Identifier: GPL-3.0-or-later +# +# This file is part of my nixos-config. +# +# You should have received a copy of the License along with this program. +# If not, see . { mkTest, extraModules, diff --git a/tests/by-name/ya/yambar/test.desc.license b/tests/by-name/ya/yambar/test.desc.license new file mode 100644 index 00000000..eae6a84c --- /dev/null +++ b/tests/by-name/ya/yambar/test.desc.license @@ -0,0 +1,9 @@ +nixos-config - My current NixOS configuration + +Copyright (C) 2025 Benedikt Peetz +SPDX-License-Identifier: GPL-3.0-or-later + +This file is part of my nixos-config. + +You should have received a copy of the License along with this program. +If not, see . diff --git a/tests/by-name/ya/yambar/test.nix b/tests/by-name/ya/yambar/test.nix index c0e94110..0e4d0033 100644 --- a/tests/by-name/ya/yambar/test.nix +++ b/tests/by-name/ya/yambar/test.nix @@ -1,3 +1,12 @@ +# nixos-config - My current NixOS configuration +# +# Copyright (C) 2025 Benedikt Peetz +# SPDX-License-Identifier: GPL-3.0-or-later +# +# This file is part of my nixos-config. +# +# You should have received a copy of the License along with this program. +# If not, see . {mkTest, ...}: mkTest { name = "yambar"; diff --git a/tests/default.nix b/tests/default.nix index af004feb..d13723b4 100644 --- a/tests/default.nix +++ b/tests/default.nix @@ -1,3 +1,12 @@ +# nixos-config - My current NixOS configuration +# +# Copyright (C) 2025 Benedikt Peetz +# SPDX-License-Identifier: GPL-3.0-or-later +# +# This file is part of my nixos-config. +# +# You should have received a copy of the License along with this program. +# If not, see . { lib, nixLib, diff --git a/tests/infrastructure/clean.awk b/tests/infrastructure/clean.awk index 1208b1ef..0362d38b 100644 --- a/tests/infrastructure/clean.awk +++ b/tests/infrastructure/clean.awk @@ -1,3 +1,13 @@ +# nixos-config - My current NixOS configuration +# +# Copyright (C) 2025 Benedikt Peetz +# SPDX-License-Identifier: GPL-3.0-or-later +# +# This file is part of my nixos-config. +# +# You should have received a copy of the License along with this program. +# If not, see . + { # Shell like comments gsub(/^#.*$/, "", $0) diff --git a/tests/infrastructure/default.nix b/tests/infrastructure/default.nix index 9e6ab08c..cd21198c 100644 --- a/tests/infrastructure/default.nix +++ b/tests/infrastructure/default.nix @@ -1,3 +1,12 @@ +# nixos-config - My current NixOS configuration +# +# Copyright (C) 2025 Benedikt Peetz +# SPDX-License-Identifier: GPL-3.0-or-later +# +# This file is part of my nixos-config. +# +# You should have received a copy of the License along with this program. +# If not, see . { pkgs, myPkgs, diff --git a/tests/infrastructure/driver.sh b/tests/infrastructure/driver.sh index 4992b5bc..a8b241d2 100644 --- a/tests/infrastructure/driver.sh +++ b/tests/infrastructure/driver.sh @@ -1,4 +1,15 @@ #! /usr/bin/env bash + +# nixos-config - My current NixOS configuration +# +# Copyright (C) 2025 Benedikt Peetz +# SPDX-License-Identifier: GPL-3.0-or-later +# +# This file is part of my nixos-config. +# +# You should have received a copy of the License along with this program. +# If not, see . + set -e msg() { diff --git a/tests/infrastructure/run.nix b/tests/infrastructure/run.nix index 5bab3dc4..3148a2d9 100644 --- a/tests/infrastructure/run.nix +++ b/tests/infrastructure/run.nix @@ -1,3 +1,12 @@ +# nixos-config - My current NixOS configuration +# +# Copyright (C) 2025 Benedikt Peetz +# SPDX-License-Identifier: GPL-3.0-or-later +# +# This file is part of my nixos-config. +# +# You should have received a copy of the License along with this program. +# If not, see . { pkgs, lib, -- cgit 1.4.1