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
f5654a17
Commit
f5654a17
authored
6 years ago
by
Anh Nguyen-Tuong
Browse files
Options
Downloads
Patches
Plain Diff
Rename config to expect_fail
Former-commit-id: f059673735107a35e09f9fe57dc27f6c35476756
parent
5dc286bc
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cicd_tests/verify-fails.sh
+2
-2
2 additions, 2 deletions
cicd_tests/verify-fails.sh
tests/test_cmds.sh
+19
-10
19 additions, 10 deletions
tests/test_cmds.sh
with
21 additions
and
12 deletions
cicd_tests/verify-fails.sh
+
2
−
2
View file @
f5654a17
...
...
@@ -9,8 +9,8 @@ cd $PEASOUP_HOME/tests
make clean
# verify "fail" configuration
./test_cmds.sh
-l
-c
fail
-a
ls
./test_cmds.sh
-l
-c
fail
-a
grep
./test_cmds.sh
-l
-c
expect_
fail
-a
ls
./test_cmds.sh
-l
-c
expect_
fail
-a
grep
exit
0
This diff is collapsed.
Click to expand it.
tests/test_cmds.sh
+
19
−
10
View file @
f5654a17
...
...
@@ -162,7 +162,7 @@ do_tests()
orig
)
cp
$progpath
$protected
;;
fail
)
expect_
fail
)
set
-x
base_prog
=
$(
basename
$progpath
)
if
[
$base_prog
=
"ls"
]
;
then
...
...
@@ -195,13 +195,24 @@ do_tests()
echo
"TEST (
$config
)
${
prog
}
: Running tests..."
TEST_VERBOSE
=
1
timeout
300 ../
$prog
/test_script.sh
$progpath
./
$protected
>
test_
${
prog
}
.log 2>&1
if
[
$?
-eq
0
]
;
then
echo
"TEST (
$config
)
${
prog
}
: PASS"
progs_pass
=
"
$progs_pass
$prog
.
$config
"
if
[
"
$config
"
!=
"fail"
]
;
then
echo
"TEST (
$config
)
${
prog
}
: PASS"
progs_pass
=
"
$progs_pass
$prog
.
$config
"
else
progs_fail
=
"
$progs_fail
$prog
.
$config
"
if
[
$show_logs_on_failure
-eq
1
]
;
then
cat
test_
${
prog
}
.log
fi
fi
else
echo
"TEST (
$config
)
${
prog
}
: FAIL"
progs_fail
=
"
$progs_fail
$prog
.
$config
"
if
[
$show_logs_on_failure
-eq
1
]
;
then
cat
test_
${
prog
}
.log
if
[
"
$config
"
!=
"fail"
]
;
then
echo
"TEST (
$config
)
${
prog
}
: FAIL"
progs_fail
=
"
$progs_fail
$prog
.
$config
"
if
[
$show_logs_on_failure
-eq
1
]
;
then
cat
test_
${
prog
}
.log
fi
else
progs_pass
=
"
$progs_pass
$prog
.
$config
"
fi
fi
done
...
...
@@ -218,9 +229,7 @@ do_tests()
done
if
[[
$progs_fail
!=
""
]]
||
[[
$progs_fail_peasoup
!=
""
]]
;
then
if
[[
$config
!=
"fail"
]]
;
then
had_fails
=
1
fi
had_fails
=
1
fi
}
...
...
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