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
9ae95e56
Commit
9ae95e56
authored
13 years ago
by
an7s
Browse files
Options
Downloads
Patches
Plain Diff
Updated tests
Former-commit-id: 3f567e6da96fba0d4cb71c0ded10a158e168d0fb
parent
8396f0d0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/coreutils/bzip2_manual_tests.sh
+9
-10
9 additions, 10 deletions
tests/coreutils/bzip2_manual_tests.sh
tests/coreutils/cat_manual_tests.sh
+8
-4
8 additions, 4 deletions
tests/coreutils/cat_manual_tests.sh
tests/coreutils/ls_manual_tests.sh
+1
-1
1 addition, 1 deletion
tests/coreutils/ls_manual_tests.sh
with
18 additions
and
15 deletions
tests/coreutils/bzip2_manual_tests.sh
+
9
−
10
View file @
9ae95e56
#!/bin/sh
echo
"hello"
>
inputfile1
cp
`
which
ls
`
>
ls.orig
cp
`
which
ls
`
ls.orig
bzip2
-k
-c
ls.orig
>
ls.orig.bz2
# should really be of the form
#$PEASOUP_HOME/tools/manual_test_import.sh --cmd "./BZIP2 -k -1 inputfile1 -c > outputfile1 2> err" --prog BZIP2=`which bzip2` --infile inputfile1=inputfile1 --outfile outputfile1=outfile1 --outfile err --name bzip2.k1
# test small memory footprint option
bzip2
-k
-s
-c
ls.orig
>
ls.orig.bz2
exitcode
=
$?
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./bzip2 -k -s -c ls.orig > ls.orig.bz2"
--prog
bzip2
--infile
ls.orig
--outfile
ls.orig.bz2
--name
bzip2.footprint
--exitcode
$exitcode
exit
0
# test compression level 1
bzip2 inputfile1
-k
-1
-c
>
outputfile1 2> err
...
...
@@ -23,14 +27,9 @@ 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
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
bzip2
-k
-8
-c
ls.orig
>
ls.orig.bz2
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
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./bzip2 -k -
8
-c ls.orig > ls.orig.bz2"
--prog
bzip2
--infile
ls.orig
--outfile
ls.orig.bz2
--name
bzip2.
ls
--exitcode
$exitcode
# test integrity check
bzip2
-t
ls.orig.bz2
...
...
This diff is collapsed.
Click to expand it.
tests/coreutils/cat_manual_tests.sh
+
8
−
4
View file @
9ae95e56
...
...
@@ -7,19 +7,23 @@ echo "hello" > inputfile1
# test lots of options
cat
-Abetvsnu
inputfile1
>
outputfile1
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./cat -Abetvsnu inputfile1 > outputfile1"
--prog
cat
--infile
inputfile1
--outfile
outputfile1
--name
cat.shload_options
exitcode
=
$?
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./cat -Abetvsnu inputfile1 > outputfile1"
--prog
cat
--infile
inputfile1
--outfile
outputfile1
--name
shload_options
--exitcode
$exitcode
# test basic
cat
inputfile1
>
outputfile1
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./cat inputfile1 > outputfile1"
--prog
cat
--infile
inputfile1
--outfile
outputfile1
--name
cat.basic
exitcode
=
$?
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./cat inputfile1 > outputfile1"
--prog
cat
--infile
inputfile1
--outfile
outputfile1
--name
basic
--exitcode
$exitcode
# test invalid options
cat
-MX
inputfile1 2>&1 |
grep
-vi
cat
>
outputfile1
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./cat -MX inputfile1 2>&1 | grep -vi stratafied | grep -vi cat > outputfile1"
--prog
cat
--infile
inputfile1
--outfile
outputfile1
--name
cat.invalid_options
exitcode
=
$?
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./cat -MX inputfile1 2>&1 | grep -vi stratafied | grep -vi cat > outputfile1"
--prog
cat
--infile
inputfile1
--outfile
outputfile1
--name
invalid_options
--exitcode
$exitcode
# test help
cat
--help
--version
2>&1 |
grep
-vi
cat
>
outputfile1
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./cat --help --version 2>&1 | grep -vi stratafied | grep -vi cat > outputfile1"
--prog
cat
--outfile
outputfile1
--name
cat.usage
exitcode
=
$?
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./cat --help --version 2>&1 | grep -vi stratafied | grep -vi cat > outputfile1"
--prog
cat
--outfile
outputfile1
--name
usage
--exitcode
$exitcode
# cleanup
rm
inputfile1 outputfile1
This diff is collapsed.
Click to expand it.
tests/coreutils/ls_manual_tests.sh
+
1
−
1
View file @
9ae95e56
...
...
@@ -35,7 +35,7 @@ $PEASOUP_HOME/tools/manual_test_import.sh --cmd "./ls --ignore=hello inputfile1
# test 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
$PEASOUP_HOME
/tools/manual_test_import.sh
--cmd
"./ls
-MX
inputfile1"
--prog
ls
--infile
inputfile1
--name
ls.invalid_options
--exitcode
$exitcode
# test help
exitcode
=
$?
...
...
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