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
34b0fb08
Commit
34b0fb08
authored
13 years ago
by
an7s
Browse files
Options
Downloads
Patches
Plain Diff
Added exit code to test spec
Former-commit-id: d86ce02b5196eb41462cdcecb37dc78e47c400d7
parent
94d3a001
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/bzip2_manual_tests.sh
+14
-7
14 additions, 7 deletions
tests/coreutils/bzip2_manual_tests.sh
with
14 additions
and
7 deletions
tests/coreutils/bzip2_manual_tests.sh
+
14
−
7
View file @
34b0fb08
...
...
@@ -9,31 +9,38 @@ bzip2 -k -c ls.orig > ls.orig.bz2
# test compression level 1
bzip2 inputfile1
-k
-1
-c
>
outputfile1 2> err
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./bzip2 -k -1 inputfile1 -c > outputfile1 2> err"
--prog
bzip2
--infile
inputfile1
--outfile
outputfile1
--outfile
err
--name
bzip2.k1
exitcode
=
$?
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./bzip2 -k -1 inputfile1 -c > outputfile1 2> err"
--prog
bzip2
--infile
inputfile1
--outfile
outputfile1
--outfile
err
--name
bzip2.k1
--exitcode
$exitcode
# test compression level 5
bzip2 inputfile1
-k
-5
-c
>
outputfile1 2> err
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./bzip2 -k -5 inputfile1 -c > outputfile1 2> err"
--prog
bzip2
--infile
inputfile1
--outfile
outputfile1
--outfile
err
--name
bzip2.k5
exitcode
=
$?
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./bzip2 -k -5 inputfile1 -c > outputfile1 2> err"
--prog
bzip2
--infile
inputfile1
--outfile
outputfile1
--outfile
err
--name
bzip2.k5
--exitcode
$exitcode
# test compression level 9
bzip2 inputfile1
-k
-9
--stdout
>
outputfile1 2> err
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./bzip2 -k -9 inputfile1 --stdout > outputfile1 2> err"
--prog
bzip2
--infile
inputfile1
--outfile
outputfile1
--outfile
err
--name
bzip2.k9
exitcode
=
$?
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./bzip2 -k -9 inputfile1 --stdout > outputfile1 2> err"
--prog
bzip2
--infile
inputfile1
--outfile
outputfile1
--outfile
err
--name
bzip2.k9
--exitcode
$exitcode
# test on larger file (like ls)
bzip2
-k
-8
-c
ls.orig
>
ls.orig.bz2 2> err
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./bzip2 -k -8 -c ls.orig > ls.orig.bz2 2> err"
--prog
bzip2
--infile
ls.orig
--outfile
err
--outfile
ls.orig.bz2
--name
bzip2.ls
exitcode
=
$?
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./bzip2 -k -8 -c ls.orig > ls.orig.bz2 2> err"
--prog
bzip2
--infile
ls.orig
--outfile
err
--outfile
ls.orig.bz2
--name
bzip2.ls
--exitcode
$exitcode
# test small memory footprint option
bzip2
-k
-s
-c
ls.orig
>
ls.orig.bz2 2> err
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./bzip2 -k -s -c ls.orig > ls.orig.bz2 2> err"
--prog
bzip2
--infile
ls.orig
--outfile
err
--outfile
ls.orig.bz2
--name
bzip2.footprint
exitcode
=
$?
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./bzip2 -k -s -c ls.orig > ls.orig.bz2 2> err"
--prog
bzip2
--infile
ls.orig
--outfile
err
--outfile
ls.orig.bz2
--name
bzip2.footprint
--exitcode
$exitcode
# test integrity check
bzip2
-t
ls.orig.bz2
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./bzip2 -t ls.orig.bz2"
--prog
bzip2
--name
bzip2.integrity
--infile
ls.orig.bz2
--name
bzip2.integrity
exitcode
=
$?
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./bzip2 -t ls.orig.bz2"
--prog
bzip2
--name
bzip2.integrity
--infile
ls.orig.bz2
--name
bzip2.integrity
--exitcode
$exitcode
# test help
bzip2
--help
2>&1|
grep
-vi
bzip2 |
grep
-vi
stratafied
>
outputfile1
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./bzip2 --help 2>&1 | grep -vi bzip2 | grep -vi stratafied > outputfile1"
--prog
bzip2
--outfile
outputfile1
--name
bzip2.usage
exitcode
=
$?
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./bzip2 --help 2>&1 | grep -vi bzip2 | grep -vi stratafied > outputfile1"
--prog
bzip2
--outfile
outputfile1
--name
bzip2.usage
--exitcode
$exitcode
# cleanup
rm
inputfile1 outputfile1 err ls.orig ls.orig.bz2
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