Mercurial > hg > toybox
annotate tests/dirname.test @ 1753:0f940c4f9658 draft
Promote runcon to android (and add an android menu).
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 23 Mar 2015 13:45:47 -0500 |
parents | 8700cbe1cb29 |
children |
rev | line source |
---|---|
682
7894d4afc39c
attached are some simple tests for dirname and wc and a fix for a small typo in another test script.
Felix Janda <felix.janda@posteo.de>
parents:
diff
changeset
|
1 #!/bin/bash |
7894d4afc39c
attached are some simple tests for dirname and wc and a fix for a small typo in another test script.
Felix Janda <felix.janda@posteo.de>
parents:
diff
changeset
|
2 |
7894d4afc39c
attached are some simple tests for dirname and wc and a fix for a small typo in another test script.
Felix Janda <felix.janda@posteo.de>
parents:
diff
changeset
|
3 [ -f testing.sh ] && . testing.sh |
7894d4afc39c
attached are some simple tests for dirname and wc and a fix for a small typo in another test script.
Felix Janda <felix.janda@posteo.de>
parents:
diff
changeset
|
4 |
7894d4afc39c
attached are some simple tests for dirname and wc and a fix for a small typo in another test script.
Felix Janda <felix.janda@posteo.de>
parents:
diff
changeset
|
5 #testing "name" "command" "result" "infile" "stdin" |
7894d4afc39c
attached are some simple tests for dirname and wc and a fix for a small typo in another test script.
Felix Janda <felix.janda@posteo.de>
parents:
diff
changeset
|
6 |
7894d4afc39c
attached are some simple tests for dirname and wc and a fix for a small typo in another test script.
Felix Janda <felix.janda@posteo.de>
parents:
diff
changeset
|
7 testing "dirname /-only" "dirname ///////" "/\n" "" "" |
7894d4afc39c
attached are some simple tests for dirname and wc and a fix for a small typo in another test script.
Felix Janda <felix.janda@posteo.de>
parents:
diff
changeset
|
8 testing "dirname trailing /" "dirname a//////" ".\n" "" "" |
694
786841fdb1e0
Reindent to two spaces per level. Remove vi: directives that haven't worked right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style.
Rob Landley <rob@landley.net>
parents:
682
diff
changeset
|
9 testing "dirname combined" "dirname /////a///b///c///d/////" "/////a///b///c\n" "" "" |
682
7894d4afc39c
attached are some simple tests for dirname and wc and a fix for a small typo in another test script.
Felix Janda <felix.janda@posteo.de>
parents:
diff
changeset
|
10 testing "dirname /a/" "dirname /////a///" "/\n" "" "" |