Mercurial > hg > toybox
annotate scripts/test/chmod.test @ 1377:7a2aec0876fe draft
I have developed few testsuites for toybox commands 
1. lsattr/chattr
2. mount
3. chmod
4. pgrep/pkill
5. groupadd
6. groupdel
7. useradd
author  Divya Kothari <divya.s.kothari@gmail.com> 

date  Fri, 04 Jul 2014 21:20:02 0500 
parents  
children  6c54196fce62 
rev  line source 

1377
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

1 #!/bin/bash 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

2 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

3 # Copyright 2013 Divya Kothari <divya.s.kothari@gmail.com> 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

4 # Copyright 2013 Robin Mittal <robinmittal.it@gmail.com> 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

5 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

6 #testing "name" "command" "result" "infile" "stdin" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

7 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

8 declare a StrForMod=('' 'x' 'w' 'wx' 'r' 'rx' 'rw' 'rwx') 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

9 #StrForMod[0]='' 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

10 #StrForMod[1]='x' 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

11 #StrForMod[2]='w' 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

12 #StrForMod[3]='wx' 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

13 #StrForMod[4]='r' 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

14 #StrForMod[5]='rx' 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

15 #StrForMod[6]='rw' 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

16 #StrForMod[7]='rwx' 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

17 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

18 # Creating test files to test chmod command 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

19 mkdir dir 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

20 touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

21 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

22 for u in {0..7} 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

23 do 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

24 for g in {0..7} 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

25 do 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

26 for o in {0..7} 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

27 do 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

28 rm rf dir && mkdir dir 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

29 uu=${StrForMod[$u]} 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

30 gg=${StrForMod[$g]} 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

31 oo=${StrForMod[$o]} 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

32 testing "chmod $u$g$o dir" "chmod $u$g$o dir && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

33 ls ld dir  cut d' ' f 1" "d$uu$gg$oo\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

34 done 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

35 done 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

36 done 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

37 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

38 for u in {0..7} 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

39 do 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

40 for g in {0..7} 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

41 do 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

42 for o in {0..7} 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

43 do 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

44 rm rf file && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

45 uu=${StrForMod[$u]} 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

46 gg=${StrForMod[$g]} 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

47 oo=${StrForMod[$o]} 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

48 testing "chmod $u$g$o file" "chmod $u$g$o file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

49 ls ld file  cut d' ' f 1" "$uu$gg$oo\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

50 done 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

51 done 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

52 done 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

53 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

54 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

55 testing "chmod 750 dir 640 file" \ 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

56 "chmod 750 dir 640 file 2>/dev/null  
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

57 ls ld dir file  cut d' ' f 1" "drwxrx\nrwxrx\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

58 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

59 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

60 testing "chmod 666 dir file" \ 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

61 "chmod 666 dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

62 ls ld dir file  cut d' ' f 1" "drwrwrw\nrwrwrw\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

63 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

64 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

65 testing "chmod 765 *" "chmod 765 * && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

66 ls ld dir file  cut d' ' f 1" "drwxrwrx\nrwxrwrx\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

67 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

68 ##### u,g,o,a=r,w,x 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

69 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

70 testing "chmod u=r dir file" "chmod u=r dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

71 ls ld dir file  cut d' ' f 1" "drrxrx\nrrr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

72 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

73 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

74 testing "chmod u=w dir file" "chmod u=w dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

75 ls ld dir file  cut d' ' f 1" "dwrxrx\nwrr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

76 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

77 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

78 testing "chmod u=x dir file" "chmod u=x dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

79 ls ld dir file  cut d' ' f 1" "dxrxrx\nxrr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

80 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

81 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

82 testing "chmod u+r dir file" "chmod u+r dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

83 ls ld dir file  cut d' ' f 1" "drwxrxrx\nrwrr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

84 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

85 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

86 testing "chmod u+w dir file" "chmod u+w dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

87 ls ld dir file  cut d' ' f 1" "drwxrxrx\nrwrr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

88 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

89 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

90 testing "chmod u+x dir file" "chmod u+x dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

91 ls ld dir file  cut d' ' f 1" "drwxrxrx\nrwxrr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

92 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

93 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

94 testing "chmod ur dir file" "chmod ur dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

95 ls ld dir file  cut d' ' f 1" "dwxrxrx\nwrr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

96 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

97 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

98 testing "chmod uw dir file" "chmod uw dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

99 ls ld dir file  cut d' ' f 1" "drxrxrx\nrrr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

100 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

101 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

102 testing "chmod ux dir file" "chmod ux dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

103 ls ld dir file  cut d' ' f 1" "drwrxrx\nrwrr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

104 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

105 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

106 testing "chmod g=r dir file" "chmod g=r dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

107 ls ld dir file  cut d' ' f 1" "drwxrrx\nrwrr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

108 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

109 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

110 testing "chmod g=w dir file" "chmod g=w dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

111 ls ld dir file  cut d' ' f 1" "drwxwrx\nrwwr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

112 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

113 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

114 testing "chmod g=x dir file" "chmod g=x dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

115 ls ld dir file  cut d' ' f 1" "drwxxrx\nrwxr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

116 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

117 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

118 testing "chmod g+r dir file" "chmod g+r dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

119 ls ld dir file  cut d' ' f 1" "drwxrxrx\nrwrr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

120 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

121 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

122 testing "chmod g+w dir file" "chmod g+w dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

123 ls ld dir file  cut d' ' f 1" "drwxrwxrx\nrwrwr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

124 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

125 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

126 testing "chmod g+x dir file" "chmod g+x dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

127 ls ld dir file  cut d' ' f 1" "drwxrxrx\nrwrxr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

128 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

129 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

130 testing "chmod gr dir file" "chmod gr dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

131 ls ld dir file  cut d' ' f 1" "drwxxrx\nrwr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

132 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

133 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

134 testing "chmod gw dir file" "chmod gw dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

135 ls ld dir file  cut d' ' f 1" "drwxrxrx\nrwrr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

136 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

137 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

138 testing "chmod gx dir file" "chmod gx dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

139 ls ld dir file  cut d' ' f 1" "drwxrrx\nrwrr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

140 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

141 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

142 testing "chmod o=r dir file" "chmod o=r dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

143 ls ld dir file  cut d' ' f 1" "drwxrxr\nrwrr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

144 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

145 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

146 testing "chmod o=w dir file" "chmod o=w dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

147 ls ld dir file  cut d' ' f 1" "drwxrxw\nrwrw\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

148 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

149 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

150 testing "chmod o=x dir file" "chmod o=x dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

151 ls ld dir file  cut d' ' f 1" "drwxrxx\nrwrx\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

152 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

153 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

154 testing "chmod o+r dir file" "chmod o+r dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

155 ls ld dir file  cut d' ' f 1" "drwxrxrx\nrwrr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

156 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

157 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

158 testing "chmod o+w dir file" "chmod o+w dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

159 ls ld dir file  cut d' ' f 1" "drwxrxrwx\nrwrrw\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

160 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

161 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

162 testing "chmod o+x dir file" "chmod o+x dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

163 ls ld dir file  cut d' ' f 1" "drwxrxrx\nrwrrx\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

164 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

165 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

166 testing "chmod or dir file" "chmod or dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

167 ls ld dir file  cut d' ' f 1" "drwxrxx\nrwr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

168 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

169 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

170 testing "chmod ow dir file" "chmod ow dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

171 ls ld dir file  cut d' ' f 1" "drwxrxrx\nrwrr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

172 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

173 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

174 testing "chmod ox dir file" "chmod ox dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

175 ls ld dir file  cut d' ' f 1" "drwxrxr\nrwrr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

176 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

177 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

178 testing "chmod a=r dir file" "chmod a=r dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

179 ls ld dir file  cut d' ' f 1" "drrr\nrrr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

180 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

181 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

182 testing "chmod a=w dir file" "chmod a=w dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

183 ls ld dir file  cut d' ' f 1" "dwww\nwww\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

184 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

185 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

186 testing "chmod a=x dir file" "chmod a=x dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

187 ls ld dir file  cut d' ' f 1" "dxxx\nxxx\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

188 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

189 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

190 testing "chmod a+r dir file" "chmod a+r dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

191 ls ld dir file  cut d' ' f 1" "drwxrxrx\nrwrr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

192 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

193 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

194 testing "chmod a+w dir file" "chmod a+w dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

195 ls ld dir file  cut d' ' f 1" "drwxrwxrwx\nrwrwrw\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

196 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

197 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

198 testing "chmod a+x dir file" "chmod a+x dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

199 ls ld dir file  cut d' ' f 1" "drwxrxrx\nrwxrxrx\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

200 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

201 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

202 testing "chmod ar dir file" "chmod ar dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

203 ls ld dir file  cut d' ' f 1" "dwxxx\nw\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

204 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

205 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

206 testing "chmod aw dir file" "chmod aw dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

207 ls ld dir file  cut d' ' f 1" "drxrxrx\nrrr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

208 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

209 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

210 testing "chmod ax dir file" "chmod ax dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

211 ls ld dir file  cut d' ' f 1" "drwrr\nrwrr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

212 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

213 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

214 testing "chmod =r dir file" "chmod =r dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

215 ls ld dir file  cut d' ' f 1" "drrr\nrrr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

216 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

217 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

218 testing "chmod =w dir file" "chmod =w dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

219 ls ld dir file  cut d' ' f 1" "dw\nw\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

220 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

221 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

222 testing "chmod =x dir file" "chmod =x dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

223 ls ld dir file  cut d' ' f 1" "dxxx\nxxx\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

224 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

225 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

226 testing "chmod +r dir file" "chmod +r dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

227 ls ld dir file  cut d' ' f 1" "drwxrxrx\nrwrr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

228 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

229 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

230 testing "chmod +w dir file" "chmod +w dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

231 ls ld dir file  cut d' ' f 1" "drwxrxrx\nrwrr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

232 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

233 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

234 testing "chmod +x dir file" "chmod +x dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

235 ls ld dir file  cut d' ' f 1" "drwxrxrx\nrwxrxrx\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

236 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

237 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

238 testing "chmod r dir file" "chmod r dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

239 ls ld dir file  cut d' ' f 1" "dwxxx\nw\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

240 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

241 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

242 testing "chmod w dir file" "chmod w dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

243 ls ld dir file  cut d' ' f 1" "drxrxrx\nrrr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

244 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

245 rm rf dir file && mkdir dir && touch file 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

246 testing "chmod x dir file" "chmod x dir file && 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

247 ls ld dir file  cut d' ' f 1" "drwrr\nrwrr\n" "" "" 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

248 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

249 # Removing test files for cleanup purpose 
7a2aec0876fe
I have developed few testsuites for toybox commands 
Divya Kothari <divya.s.kothari@gmail.com>
parents:
diff
changeset

250 rm rf dir file 