aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-05-15 22:24:58 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-05-15 22:33:00 +0100
commit996bead0d8503b9abd40b49e23cc308fc645e1ff (patch)
treef95ca358524007ab5b57fdbd49dcc82beb3d09ea /test
parent3fa7c853e0bcd6fe23f7524c2a3c9e3af90901c3 (diff)
downloadpseudo-996bead0d8503b9abd40b49e23cc308fc645e1ff.tar.gz
pseudo-996bead0d8503b9abd40b49e23cc308fc645e1ff.tar.bz2
pseudo-996bead0d8503b9abd40b49e23cc308fc645e1ff.zip
Add SPDX-License-Identifier: LGPL-2.1-only to files
This adds SPDX license headers to all source files in pseudo so license identification models current best practise. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-chroot.sh3
-rwxr-xr-xtest/test-cp-setuid.sh3
-rwxr-xr-xtest/test-dir-move.sh3
-rwxr-xr-xtest/test-env_i.sh3
-rwxr-xr-xtest/test-execl.sh3
-rwxr-xr-xtest/test-pseudo_disable-fork-env_i.sh3
-rwxr-xr-xtest/test-pseudo_disable-fork.sh3
-rwxr-xr-xtest/test-pseudo_unload-fork-env_i.sh3
-rwxr-xr-xtest/test-pseudo_unload-fork.sh3
-rwxr-xr-xtest/test-reexec-chroot.sh3
-rwxr-xr-xtest/test-tclsh-fork.sh3
-rwxr-xr-xtest/test-umask.sh3
-rwxr-xr-xtest/test-xattr.sh3
13 files changed, 39 insertions, 0 deletions
diff --git a/test/test-chroot.sh b/test/test-chroot.sh
index 02c9ff6..faa4ffe 100755
--- a/test/test-chroot.sh
+++ b/test/test-chroot.sh
@@ -1,4 +1,7 @@
#!/bin/bash
+#
+# SPDX-License-Identifier: LGPL-2.1-only
+#
# Return vals: 2 - invalid arg list
# 1 - chroot failed
diff --git a/test/test-cp-setuid.sh b/test/test-cp-setuid.sh
index cdb2cd3..0759608 100755
--- a/test/test-cp-setuid.sh
+++ b/test/test-cp-setuid.sh
@@ -1,4 +1,7 @@
#!/bin/bash
+#
+# SPDX-License-Identifier: LGPL-2.1-only
+#
set -e
# Verify that special bits (setuid/setgid/sticky) are preserved.
diff --git a/test/test-dir-move.sh b/test/test-dir-move.sh
index 37182f3..7bb0256 100755
--- a/test/test-dir-move.sh
+++ b/test/test-dir-move.sh
@@ -1,4 +1,7 @@
#!/bin/bash
+#
+# SPDX-License-Identifier: LGPL-2.1-only
+#
mkdir d1
touch d1/f1
mv d1 d2
diff --git a/test/test-env_i.sh b/test/test-env_i.sh
index c38cf1d..454a7b4 100755
--- a/test/test-env_i.sh
+++ b/test/test-env_i.sh
@@ -1,4 +1,7 @@
#!/bin/bash
+#
+# SPDX-License-Identifier: LGPL-2.1-only
+#
env -i A=A B=B C=C env | grep -q "PSEUDO_"
diff --git a/test/test-execl.sh b/test/test-execl.sh
index 1a1c580..134055b 100755
--- a/test/test-execl.sh
+++ b/test/test-execl.sh
@@ -1,4 +1,7 @@
#!/bin/bash
+#
+# SPDX-License-Identifier: LGPL-2.1-only
+#
cat > execl_test.c << EOF
#include <unistd.h>
int main() {
diff --git a/test/test-pseudo_disable-fork-env_i.sh b/test/test-pseudo_disable-fork-env_i.sh
index 1e679aa..0bcf797 100755
--- a/test/test-pseudo_disable-fork-env_i.sh
+++ b/test/test-pseudo_disable-fork-env_i.sh
@@ -1,4 +1,7 @@
#!/bin/bash
+#
+# SPDX-License-Identifier: LGPL-2.1-only
+#
# Verify normal operation...
uid=`env -i id -u`
diff --git a/test/test-pseudo_disable-fork.sh b/test/test-pseudo_disable-fork.sh
index 13a42a4..e0f5fd3 100755
--- a/test/test-pseudo_disable-fork.sh
+++ b/test/test-pseudo_disable-fork.sh
@@ -1,4 +1,7 @@
#!/bin/bash
+#
+# SPDX-License-Identifier: LGPL-2.1-only
+#
# Verify normal operation...
uid=`id -u`
diff --git a/test/test-pseudo_unload-fork-env_i.sh b/test/test-pseudo_unload-fork-env_i.sh
index d6658e0..0e89ba0 100755
--- a/test/test-pseudo_unload-fork-env_i.sh
+++ b/test/test-pseudo_unload-fork-env_i.sh
@@ -1,4 +1,7 @@
#!/bin/bash
+#
+# SPDX-License-Identifier: LGPL-2.1-only
+#
# Verify normal operation...
uid=`env -i id -u`
diff --git a/test/test-pseudo_unload-fork.sh b/test/test-pseudo_unload-fork.sh
index 9f79198..822f478 100755
--- a/test/test-pseudo_unload-fork.sh
+++ b/test/test-pseudo_unload-fork.sh
@@ -1,4 +1,7 @@
#!/bin/bash
+#
+# SPDX-License-Identifier: LGPL-2.1-only
+#
# Verify normal operation...
uid=`id -u`
diff --git a/test/test-reexec-chroot.sh b/test/test-reexec-chroot.sh
index bde93f1..f6412bc 100755
--- a/test/test-reexec-chroot.sh
+++ b/test/test-reexec-chroot.sh
@@ -1,4 +1,7 @@
#!/bin/bash
+#
+# SPDX-License-Identifier: LGPL-2.1-only
+#
# Test if we re-invoke pseudo that chroot still works
diff --git a/test/test-tclsh-fork.sh b/test/test-tclsh-fork.sh
index e9dec66..e06f36b 100755
--- a/test/test-tclsh-fork.sh
+++ b/test/test-tclsh-fork.sh
@@ -1,4 +1,7 @@
#!/bin/bash
+#
+# SPDX-License-Identifier: LGPL-2.1-only
+#
# Check that tclsh doesn't hang. Note that the timeout is not needed to
# reproduce the hang in tclsh, it's only there to ensure that this test script
diff --git a/test/test-umask.sh b/test/test-umask.sh
index 8ca4963..e4e366b 100755
--- a/test/test-umask.sh
+++ b/test/test-umask.sh
@@ -1,4 +1,7 @@
#!/bin/bash
+#
+# SPDX-License-Identifier: LGPL-2.1-only
+#
mode() {
ls -l "$1" | awk '{ print $1 }'
diff --git a/test/test-xattr.sh b/test/test-xattr.sh
index 7d818d2..09cd6b0 100755
--- a/test/test-xattr.sh
+++ b/test/test-xattr.sh
@@ -1,4 +1,7 @@
#!/bin/bash
+#
+# SPDX-License-Identifier: LGPL-2.1-only
+#
# Return vals: 2 - Unable to run xattr commands
# 1 - Invalid return value