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
8396f0d0
Commit
8396f0d0
authored
13 years ago
by
an7s
Browse files
Options
Downloads
Patches
Plain Diff
Updated ls test
Former-commit-id: 7e544f13763e7c8b3e569ea3a111f96513db8d53
parent
34b0fb08
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/coreutils/ls_manual_tests.sh
+13
-7
13 additions, 7 deletions
tests/coreutils/ls_manual_tests.sh
with
13 additions
and
7 deletions
tests/coreutils/ls_manual_tests.sh
+
13
−
7
View file @
8396f0d0
...
...
@@ -19,22 +19,28 @@ 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
ls
--infile
inputfile1
--outfile
outputfile1
--name
ls.shload_flags
exitcode
=
$?
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./ls -ltarHksbBiXR inputfile1 | wc -l > outputfile1"
--prog
ls
--infile
inputfile1
--outfile
outputfile1
--name
ls.shload_flags
--exitcode
$exitcode
# 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
ls.flag_combo
exitcode
=
$?
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./ls -kfsZqp inputfile1 > outputfile1"
--prog
ls
--infile
inputfile1
--outfile
outputfile1
--name
ls.flag_combo
--exitcode
$exitcode
# 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
ls.ignore_option
exitcode
=
$?
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./ls --ignore=hello inputfile1 > outputfile1"
--prog
ls
--infile
inputfile1
--outfile
outputfile1
--name
ls.ignore_option
--exitcode
$exitcode
# 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
ls
-MX
inputfile1
exitcode
=
$?
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./ls inputfile1"
--prog
ls
--infile
inputfile1
--name
ls.invalid_options
--exitcode
$exitcode
# 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
exitcode
=
$?
ls
--help
|
grep sort
|
grep
-v
ls
|
grep
-v
strata
>
outputfile1
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./ls --help | grep sort | grep -v ls | grep -v strata > outputfile1"
--prog
ls
--outfile
outputfile1
--name
ls.usage
--exitcode
$exitcode
# 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