Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Thomas Jahns
PPM
Commits
9dca257a
Commit
9dca257a
authored
Jun 07, 2020
by
Thomas Jahns
🤸
Browse files
Limit test run-time.
parent
c6104f17
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/testsuite.at
View file @
9dca257a
AT_INIT ([PPM parallel tests])
AT_COPYRIGHT(
[
Copyright (C) 20
1
0 Thomas Jahns <jahns@dkrz.de>
Copyright (C) 20
2
0 Thomas Jahns <jahns@dkrz.de>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
...
...
@@ -31,6 +31,14 @@ AT_COPYRIGHT(
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
])
AT_COLOR_TESTS
m4_define([acx_cpu_time_limit],[1800])
AT_ARG_OPTION_ARG([time-limit],[AS_HELP_STRING([--time-limit],
[limit the run-time of tests via ulimit -t (default=]acx_cpu_time_limit[)])],
[AS_IF([expr "$at_optarg" : '\([0-9]*\|unlimited\)$' >/dev/null 2>&1],
[ulimit -t $at_optarg],
[echo "invalid cpu time limit $at_optarg" >&2
AS_EXIT(1)])],
[ulimit -t acx_cpu_time_limit])
AT_BANNER([core routines])
AT_SETUP([library abort])
AT_KEYWORDS([core abort hybrid])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment