diff options
author | Rob Landley <rob@landley.net> | 2014-09-20 13:09:14 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2014-09-20 13:09:14 -0500 |
commit | 387edf547eb09b27ca6d49772eb048d729f09cf4 (patch) | |
tree | 59d482f33735690cab6d90723393afa1e2c8dce5 /scripts/test/basename.test | |
parent | d3df423a6cde0c6282658ff628574771d3824d71 (diff) | |
download | toybox-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/basename.test')
-rwxr-xr-x | scripts/test/basename.test | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/scripts/test/basename.test b/scripts/test/basename.test deleted file mode 100755 index 2f7a2ec3..00000000 --- a/scripts/test/basename.test +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -[ -f testing.sh ] && . testing.sh - -#testing "name" "command" "result" "infile" "stdin" - -# Removal of extra /'s -testing "basename /-only" "basename ///////" "/\n" "" "" -testing "basename trailing /" "basename a//////" "a\n" "" "" -testing "basename combined" "basename /////a///b///c///d/////" "d\n" "" "" - -# Standard suffix behavior. -testing "basename suffix" "basename a/b/c/d.suffix .suffix" "d\n" "" "" - -# A suffix cannot be the entire result. -testing "basename suffix=result" "basename .txt .txt" ".txt\n" "" "" - -# Deal with suffix appearing in the filename -testing "basename reappearing suffix 1" "basename a.txt.txt .txt" "a.txt\n" "" "" -testing "basename reappearing suffix 2" "basename a.txt.old .txt" "a.txt.old\n" "" "" - -# A suffix should be a real suffix, only a the end. -testing "basename invalid suffix" "basename isthisasuffix? suffix" "isthisasuffix?\n" "" "" |