Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
Zipr Toolchain
Commits
3255befb
Commit
3255befb
authored
13 years ago
by
an7s
Browse files
Options
Downloads
Patches
Plain Diff
Fixed tests
Former-commit-id: ff44adfca0104a26c55c88337b5cbfcc9e5fa274
parent
3ddb08a7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/coreutils/ls_manual_tests.sh
+9
-18
9 additions, 18 deletions
tests/coreutils/ls_manual_tests.sh
with
9 additions
and
18 deletions
tests/coreutils/ls_manual_tests.sh
+
9
−
18
View file @
3255befb
...
...
@@ -19,31 +19,22 @@ echo "hello" > inputfile1
# test whole bunch of options -- output is non-deterministic so we just make sure we have the same number of lines
# also when something goes wrong during testing, the program usually just crashes
ls
-ltarHksbBiXR
inputfile1 |
wc
-l
>
outputfile1
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./ls -ltarHksbBiXR inputfile1 | wc -l > outputfile1"
--prog
foobar
--infile
inputfile1
--outfile
outputfile1
--name
shload_flags
# basic functionality -- don't bother with comparing outputs
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./ls"
--prog
ls
# test invalid options
ls
-MX
inputfile1 |
grep
-vi
invalid |
grep
-vi
usage
>
outputfile1
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./ls -MX inputfile1 | grep -vi invalid | grep -vi usage > outputfile1"
--prog
ls
--infile
inputfile1
--outfile
outputfile1
--name
invalid_options
# test help
ls
--help
|
grep
-vi
report |
grep
-vi
usage
>
outputfile1
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./ls --help | grep -vi report | grep -vi usage > outputfile1"
--prog
ls
--outfile
outputfile1
--name
usage
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./ls -ltarHksbBiXR inputfile1 | wc -l > outputfile1"
--prog
ls
--infile
inputfile1
--outfile
outputfile1
--name
ls.shload_flags
# test some option flags
ls
-kfsZqp
inputfile1
>
outputfile1
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./ls -kfsZqp inputfile1 > outputfile1"
--prog
ls
--infile
inputfile1
--outfile
outputfile1
--name
flag_combo
1
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./ls -kfsZqp inputfile1 > outputfile1"
--prog
ls
--infile
inputfile1
--outfile
outputfile1
--name
ls.
flag_combo
# test --ignore
ls
--ignore
=
hello inputfile1
>
outputfile1
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./ls --ignore=hello inputfile1 > outputfile1"
--prog
ls
--infile
inputfile1
--outfile
outputfile1
--name
ignore
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./ls --ignore=hello inputfile1 > outputfile1"
--prog
ls
--infile
inputfile1
--outfile
outputfile1
--name
ls.ignore_option
# test invalid options
ls
-MX
inputfile1 |
grep
-vi
invalid |
grep
-vi
usage
>
outputfile1
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./ls -MX inputfile1 | grep -vi invalid | grep -vi usage > outputfile1"
--prog
ls
--infile
inputfile1
--outfile
outputfile1
--name
ls.invalid_options
# test whole bunch of options -- output is non-deterministic so we just make sure we have the same number of lines
# also when something goes wrong during testing, the program usually just crashes
ls
-ltarHksbBiXR
inputfile1 |
wc
-l
>
outputfile1
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./ls -ltarHksbBiXR inputfile1 | wc -l > outputfile1"
--prog
ls
--infile
inputfile1
--outfile
outputfile1
--name
shload_flags
# test help
ls
--help
|
grep
-vi
report |
grep
-vi
usage
>
outputfile1
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./ls --help | grep -vi report | grep -vi usage > outputfile1"
--prog
ls
--outfile
outputfile1
--name
ls.usage
# cleanup
rm
inputfile1 outputfile1
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment