From 4d70e7bdd48a046ada1fa9c3ba3b7ad4c36685b9 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 12 Feb 2013 13:55:34 +0100 Subject: [PATCH] Clean up tests (and added a simple Perl test) --- Makefile | 4 ++-- quork | 1 - tests/quark | 1 + tests/quork | 1 + tests/scripts/quark | 8 ++++++++ {scripts => tests/scripts}/quork | 0 6 files changed, 12 insertions(+), 3 deletions(-) delete mode 120000 quork create mode 120000 tests/quark create mode 120000 tests/quork create mode 100755 tests/scripts/quark rename {scripts => tests/scripts}/quork (100%) diff --git a/Makefile b/Makefile index d2f5945..8aded27 100644 --- a/Makefile +++ b/Makefile @@ -8,8 +8,8 @@ suidgw: suidgw.c test-setup: chown root.root suidgw chmod u+s suidgw - chown testuser.nogroup scripts/quork - chmod ug+s scripts/quork + chown testuser.nogroup tests/scripts/* + chmod ug+s tests/scripts/* install: all install -o root -g root -m 4755 -s suidgw $(DESTDIR)/usr/bin/ diff --git a/quork b/quork deleted file mode 120000 index 7dc5260..0000000 --- a/quork +++ /dev/null @@ -1 +0,0 @@ -suidgw \ No newline at end of file diff --git a/tests/quark b/tests/quark new file mode 120000 index 0000000..f5645a1 --- /dev/null +++ b/tests/quark @@ -0,0 +1 @@ +../suidgw \ No newline at end of file diff --git a/tests/quork b/tests/quork new file mode 120000 index 0000000..f5645a1 --- /dev/null +++ b/tests/quork @@ -0,0 +1 @@ +../suidgw \ No newline at end of file diff --git a/tests/scripts/quark b/tests/scripts/quark new file mode 100755 index 0000000..e4f593e --- /dev/null +++ b/tests/scripts/quark @@ -0,0 +1,8 @@ +#!/usr/bin/perl + +use strict; +use warnings; + +print "Quark!\n"; +sleep 10; +print "Quark quark!\n"; diff --git a/scripts/quork b/tests/scripts/quork similarity index 100% rename from scripts/quork rename to tests/scripts/quork -- 2.39.2