annotate tests/dirname.test @ 1566:62a7d617e1ce draft 0.5.1

Make md5sum and sha1sum work on big endian systems.
author Rob Landley <rob@landley.net>
date Wed, 19 Nov 2014 21:38:00 -0600
parents 8700cbe1cb29
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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" "" ""