summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2020-09-02 21:40:32 -0700
committerDaniel Mueller <deso@posteo.net>2020-09-02 21:40:32 -0700
commit79346022d01a73a8987298d82a2f0b749b63ac50 (patch)
treeacd4d1a3aff70c79ce2c50064d0462a61f3e35d6 /src/tests
parentf6348b20ea2ab1d3fe936fc07ad588efefc11708 (diff)
downloadnitrocli-79346022d01a73a8987298d82a2f0b749b63ac50.tar.gz
nitrocli-79346022d01a73a8987298d82a2f0b749b63ac50.tar.bz2
Adjust copyright & license specification to comply with REUSE 3.0
With this change we switch to using a REUSE compliant way of specifying the copyright & license of the program. To be fully in conformance we also add additional license specifications for the remaining files in the project. Lastly, a new CI pipeline rule takes care of verifying compliance on an ongoing basis.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/config.rs18
-rw-r--r--src/tests/encrypted.rs18
-rw-r--r--src/tests/hidden.rs18
-rw-r--r--src/tests/list.rs18
-rw-r--r--src/tests/lock.rs18
-rw-r--r--src/tests/mod.rs18
-rw-r--r--src/tests/otp.rs18
-rw-r--r--src/tests/pin.rs18
-rw-r--r--src/tests/pws.rs18
-rw-r--r--src/tests/reset.rs18
-rw-r--r--src/tests/run.rs18
-rw-r--r--src/tests/status.rs18
-rw-r--r--src/tests/unencrypted.rs18
13 files changed, 26 insertions, 208 deletions
diff --git a/src/tests/config.rs b/src/tests/config.rs
index c4d412f..75ec983 100644
--- a/src/tests/config.rs
+++ b/src/tests/config.rs
@@ -1,21 +1,7 @@
// config.rs
-// *************************************************************************
-// * Copyright (C) 2019-2020 The Nitrocli Developers *
-// * *
-// * This program is free software: you can redistribute it and/or modify *
-// * it under the terms of the GNU General Public License as published by *
-// * the Free Software Foundation, either version 3 of the License, or *
-// * (at your option) any later version. *
-// * *
-// * This program is distributed in the hope that it will be useful, *
-// * but WITHOUT ANY WARRANTY; without even the implied warranty of *
-// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
-// * GNU General Public License for more details. *
-// * *
-// * You should have received a copy of the GNU General Public License *
-// * along with this program. If not, see <http://www.gnu.org/licenses/>. *
-// *************************************************************************
+// Copyright (C) 2019-2020 The Nitrocli Developers
+// SPDX-License-Identifier: GPL-3.0-or-later
use super::*;
diff --git a/src/tests/encrypted.rs b/src/tests/encrypted.rs
index ec0fb51..485bb6e 100644
--- a/src/tests/encrypted.rs
+++ b/src/tests/encrypted.rs
@@ -1,21 +1,7 @@
// encrypted.rs
-// *************************************************************************
-// * Copyright (C) 2019-2020 The Nitrocli Developers *
-// * *
-// * This program is free software: you can redistribute it and/or modify *
-// * it under the terms of the GNU General Public License as published by *
-// * the Free Software Foundation, either version 3 of the License, or *
-// * (at your option) any later version. *
-// * *
-// * This program is distributed in the hope that it will be useful, *
-// * but WITHOUT ANY WARRANTY; without even the implied warranty of *
-// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
-// * GNU General Public License for more details. *
-// * *
-// * You should have received a copy of the GNU General Public License *
-// * along with this program. If not, see <http://www.gnu.org/licenses/>. *
-// *************************************************************************
+// Copyright (C) 2019-2020 The Nitrocli Developers
+// SPDX-License-Identifier: GPL-3.0-or-later
use super::*;
diff --git a/src/tests/hidden.rs b/src/tests/hidden.rs
index e261a72..82a4630 100644
--- a/src/tests/hidden.rs
+++ b/src/tests/hidden.rs
@@ -1,21 +1,7 @@
// hidden.rs
-// *************************************************************************
-// * Copyright (C) 2019-2020 The Nitrocli Developers *
-// * *
-// * This program is free software: you can redistribute it and/or modify *
-// * it under the terms of the GNU General Public License as published by *
-// * the Free Software Foundation, either version 3 of the License, or *
-// * (at your option) any later version. *
-// * *
-// * This program is distributed in the hope that it will be useful, *
-// * but WITHOUT ANY WARRANTY; without even the implied warranty of *
-// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
-// * GNU General Public License for more details. *
-// * *
-// * You should have received a copy of the GNU General Public License *
-// * along with this program. If not, see <http://www.gnu.org/licenses/>. *
-// *************************************************************************
+// Copyright (C) 2019-2020 The Nitrocli Developers
+// SPDX-License-Identifier: GPL-3.0-or-later
use super::*;
diff --git a/src/tests/list.rs b/src/tests/list.rs
index 63aeac1..7ff88a7 100644
--- a/src/tests/list.rs
+++ b/src/tests/list.rs
@@ -1,21 +1,7 @@
// list.rs
-// *************************************************************************
-// * Copyright (C) 2020 The Nitrocli Developers *
-// * *
-// * This program is free software: you can redistribute it and/or modify *
-// * it under the terms of the GNU General Public License as published by *
-// * the Free Software Foundation, either version 3 of the License, or *
-// * (at your option) any later version. *
-// * *
-// * This program is distributed in the hope that it will be useful, *
-// * but WITHOUT ANY WARRANTY; without even the implied warranty of *
-// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
-// * GNU General Public License for more details. *
-// * *
-// * You should have received a copy of the GNU General Public License *
-// * along with this program. If not, see <http://www.gnu.org/licenses/>. *
-// *************************************************************************
+// Copyright (C) 2020 The Nitrocli Developers
+// SPDX-License-Identifier: GPL-3.0-or-later
use super::*;
diff --git a/src/tests/lock.rs b/src/tests/lock.rs
index 4a32c9c..e04e8eb 100644
--- a/src/tests/lock.rs
+++ b/src/tests/lock.rs
@@ -1,21 +1,7 @@
// lock.rs
-// *************************************************************************
-// * Copyright (C) 2019-2020 The Nitrocli Developers *
-// * *
-// * This program is free software: you can redistribute it and/or modify *
-// * it under the terms of the GNU General Public License as published by *
-// * the Free Software Foundation, either version 3 of the License, or *
-// * (at your option) any later version. *
-// * *
-// * This program is distributed in the hope that it will be useful, *
-// * but WITHOUT ANY WARRANTY; without even the implied warranty of *
-// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
-// * GNU General Public License for more details. *
-// * *
-// * You should have received a copy of the GNU General Public License *
-// * along with this program. If not, see <http://www.gnu.org/licenses/>. *
-// *************************************************************************
+// Copyright (C) 2019-2020 The Nitrocli Developers
+// SPDX-License-Identifier: GPL-3.0-or-later
use super::*;
diff --git a/src/tests/mod.rs b/src/tests/mod.rs
index 298dde9..e1f93a9 100644
--- a/src/tests/mod.rs
+++ b/src/tests/mod.rs
@@ -1,21 +1,7 @@
// mod.rs
-// *************************************************************************
-// * Copyright (C) 2019-2020 The Nitrocli Developers *
-// * *
-// * This program is free software: you can redistribute it and/or modify *
-// * it under the terms of the GNU General Public License as published by *
-// * the Free Software Foundation, either version 3 of the License, or *
-// * (at your option) any later version. *
-// * *
-// * This program is distributed in the hope that it will be useful, *
-// * but WITHOUT ANY WARRANTY; without even the implied warranty of *
-// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
-// * GNU General Public License for more details. *
-// * *
-// * You should have received a copy of the GNU General Public License *
-// * along with this program. If not, see <http://www.gnu.org/licenses/>. *
-// *************************************************************************
+// Copyright (C) 2019-2020 The Nitrocli Developers
+// SPDX-License-Identifier: GPL-3.0-or-later
use std::ffi;
diff --git a/src/tests/otp.rs b/src/tests/otp.rs
index 59fd319..d907f18 100644
--- a/src/tests/otp.rs
+++ b/src/tests/otp.rs
@@ -1,21 +1,7 @@
// otp.rs
-// *************************************************************************
-// * Copyright (C) 2019-2020 The Nitrocli Developers *
-// * *
-// * This program is free software: you can redistribute it and/or modify *
-// * it under the terms of the GNU General Public License as published by *
-// * the Free Software Foundation, either version 3 of the License, or *
-// * (at your option) any later version. *
-// * *
-// * This program is distributed in the hope that it will be useful, *
-// * but WITHOUT ANY WARRANTY; without even the implied warranty of *
-// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
-// * GNU General Public License for more details. *
-// * *
-// * You should have received a copy of the GNU General Public License *
-// * along with this program. If not, see <http://www.gnu.org/licenses/>. *
-// *************************************************************************
+// Copyright (C) 2019-2020 The Nitrocli Developers
+// SPDX-License-Identifier: GPL-3.0-or-later
use super::*;
diff --git a/src/tests/pin.rs b/src/tests/pin.rs
index 416a7f8..551454c 100644
--- a/src/tests/pin.rs
+++ b/src/tests/pin.rs
@@ -1,21 +1,7 @@
// pin.rs
-// *************************************************************************
-// * Copyright (C) 2019-2020 The Nitrocli Developers *
-// * *
-// * This program is free software: you can redistribute it and/or modify *
-// * it under the terms of the GNU General Public License as published by *
-// * the Free Software Foundation, either version 3 of the License, or *
-// * (at your option) any later version. *
-// * *
-// * This program is distributed in the hope that it will be useful, *
-// * but WITHOUT ANY WARRANTY; without even the implied warranty of *
-// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
-// * GNU General Public License for more details. *
-// * *
-// * You should have received a copy of the GNU General Public License *
-// * along with this program. If not, see <http://www.gnu.org/licenses/>. *
-// *************************************************************************
+// Copyright (C) 2019-2020 The Nitrocli Developers
+// SPDX-License-Identifier: GPL-3.0-or-later
use nitrokey::Authenticate;
use nitrokey::Device;
diff --git a/src/tests/pws.rs b/src/tests/pws.rs
index d0e8907..45c4400 100644
--- a/src/tests/pws.rs
+++ b/src/tests/pws.rs
@@ -1,21 +1,7 @@
// pws.rs
-// *************************************************************************
-// * Copyright (C) 2019-2020 The Nitrocli Developers *
-// * *
-// * This program is free software: you can redistribute it and/or modify *
-// * it under the terms of the GNU General Public License as published by *
-// * the Free Software Foundation, either version 3 of the License, or *
-// * (at your option) any later version. *
-// * *
-// * This program is distributed in the hope that it will be useful, *
-// * but WITHOUT ANY WARRANTY; without even the implied warranty of *
-// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
-// * GNU General Public License for more details. *
-// * *
-// * You should have received a copy of the GNU General Public License *
-// * along with this program. If not, see <http://www.gnu.org/licenses/>. *
-// *************************************************************************
+// Copyright (C) 2019-2020 The Nitrocli Developers
+// SPDX-License-Identifier: GPL-3.0-or-later
use super::*;
diff --git a/src/tests/reset.rs b/src/tests/reset.rs
index cbac676..a7b2097 100644
--- a/src/tests/reset.rs
+++ b/src/tests/reset.rs
@@ -1,21 +1,7 @@
// reset.rs
-// *************************************************************************
-// * Copyright (C) 2019-2020 The Nitrocli Developers *
-// * *
-// * This program is free software: you can redistribute it and/or modify *
-// * it under the terms of the GNU General Public License as published by *
-// * the Free Software Foundation, either version 3 of the License, or *
-// * (at your option) any later version. *
-// * *
-// * This program is distributed in the hope that it will be useful, *
-// * but WITHOUT ANY WARRANTY; without even the implied warranty of *
-// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
-// * GNU General Public License for more details. *
-// * *
-// * You should have received a copy of the GNU General Public License *
-// * along with this program. If not, see <http://www.gnu.org/licenses/>. *
-// *************************************************************************
+// Copyright (C) 2019-2020 The Nitrocli Developers
+// SPDX-License-Identifier: GPL-3.0-or-later
use nitrokey::Authenticate;
use nitrokey::GetPasswordSafe;
diff --git a/src/tests/run.rs b/src/tests/run.rs
index 90e3067..4d470f6 100644
--- a/src/tests/run.rs
+++ b/src/tests/run.rs
@@ -1,21 +1,7 @@
// run.rs
-// *************************************************************************
-// * Copyright (C) 2019-2020 The Nitrocli Developers *
-// * *
-// * This program is free software: you can redistribute it and/or modify *
-// * it under the terms of the GNU General Public License as published by *
-// * the Free Software Foundation, either version 3 of the License, or *
-// * (at your option) any later version. *
-// * *
-// * This program is distributed in the hope that it will be useful, *
-// * but WITHOUT ANY WARRANTY; without even the implied warranty of *
-// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
-// * GNU General Public License for more details. *
-// * *
-// * You should have received a copy of the GNU General Public License *
-// * along with this program. If not, see <http://www.gnu.org/licenses/>. *
-// *************************************************************************
+// Copyright (C) 2019-2020 The Nitrocli Developers
+// SPDX-License-Identifier: GPL-3.0-or-later
use std::path;
diff --git a/src/tests/status.rs b/src/tests/status.rs
index 983afa7..0fd5b5b 100644
--- a/src/tests/status.rs
+++ b/src/tests/status.rs
@@ -1,21 +1,7 @@
// status.rs
-// *************************************************************************
-// * Copyright (C) 2019-2020 The Nitrocli Developers *
-// * *
-// * This program is free software: you can redistribute it and/or modify *
-// * it under the terms of the GNU General Public License as published by *
-// * the Free Software Foundation, either version 3 of the License, or *
-// * (at your option) any later version. *
-// * *
-// * This program is distributed in the hope that it will be useful, *
-// * but WITHOUT ANY WARRANTY; without even the implied warranty of *
-// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
-// * GNU General Public License for more details. *
-// * *
-// * You should have received a copy of the GNU General Public License *
-// * along with this program. If not, see <http://www.gnu.org/licenses/>. *
-// *************************************************************************
+// Copyright (C) 2019-2020 The Nitrocli Developers
+// SPDX-License-Identifier: GPL-3.0-or-later
use super::*;
diff --git a/src/tests/unencrypted.rs b/src/tests/unencrypted.rs
index 574b53a..26c6604 100644
--- a/src/tests/unencrypted.rs
+++ b/src/tests/unencrypted.rs
@@ -1,21 +1,7 @@
// unencrypted.rs
-// *************************************************************************
-// * Copyright (C) 2019-2020 The Nitrocli Developers *
-// * *
-// * This program is free software: you can redistribute it and/or modify *
-// * it under the terms of the GNU General Public License as published by *
-// * the Free Software Foundation, either version 3 of the License, or *
-// * (at your option) any later version. *
-// * *
-// * This program is distributed in the hope that it will be useful, *
-// * but WITHOUT ANY WARRANTY; without even the implied warranty of *
-// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
-// * GNU General Public License for more details. *
-// * *
-// * You should have received a copy of the GNU General Public License *
-// * along with this program. If not, see <http://www.gnu.org/licenses/>. *
-// *************************************************************************
+// Copyright (C) 2019-2020 The Nitrocli Developers
+// SPDX-License-Identifier: GPL-3.0-or-later
use super::*;