aboutsummaryrefslogtreecommitdiff
path: root/scripts/test/groupdel.test
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2014-09-20 13:09:14 -0500
committerRob Landley <rob@landley.net>2014-09-20 13:09:14 -0500
commit387edf547eb09b27ca6d49772eb048d729f09cf4 (patch)
tree59d482f33735690cab6d90723393afa1e2c8dce5 /scripts/test/groupdel.test
parentd3df423a6cde0c6282658ff628574771d3824d71 (diff)
downloadtoybox-387edf547eb09b27ca6d49772eb048d729f09cf4.tar.gz
Move testsuite out of scripts/test into its own top level tests directory, and make ctrl-c kill "make test" more reliably.
Diffstat (limited to 'scripts/test/groupdel.test')
-rw-r--r--scripts/test/groupdel.test27
1 files changed, 0 insertions, 27 deletions
diff --git a/scripts/test/groupdel.test b/scripts/test/groupdel.test
deleted file mode 100644
index d46db53c..00000000
--- a/scripts/test/groupdel.test
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash
-
-# Copyright 2013 Divya Kothari <divya.s.kothari@gmail.com>
-# Copyright 2013 Robin Mittal <robinmittal.it@gmail.com>
-
-[ -f testing.sh ] && . testing.sh
-
-# Redirecting all output to /dev/null for grep and delgroup
-arg="&>/dev/null"
-
-#testing "name" "command" "result" "infile" "stdin"
-
-testing "groupadd group_name (text)" "groupadd toyTestGroup &&
- grep '^toyTestGroup:' /etc/group $arg && groupdel toyTestGroup $arg &&
- echo 'yes'" "yes\n" "" ""
-testing "groupadd group_name (alphanumeric)" "groupadd toy1Test2Group3 &&
- grep '^toy1Test2Group3:' /etc/group $arg && groupdel toy1Test2Group3 $arg &&
- echo 'yes'" "yes\n" "" ""
-testing "groupadd group_name (numeric)" "groupadd 987654321 &&
- grep '^987654321:' /etc/group $arg && groupdel 987654321 $arg &&
- echo 'yes'" "yes\n" "" ""
-testing "groupadd group_name (with ./-)" "groupadd toy.1Test-2Group.3 &&
- grep '^toy.1Test-2Group.3:' /etc/group $arg &&
- groupdel toy.1Test-2Group.3 $arg && echo 'yes'" "yes\n" "" ""
-testing "groupadd group_name with group_id" "groupadd -g 49999 toyTestGroup &&
- grep '^toyTestGroup:' /etc/group $arg && groupdel toyTestGroup $arg &&
- echo 'yes'" "yes\n" "" ""