diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2019-05-24 17:07:22 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2019-05-24 17:10:34 +0300 |
commit | a8d45eff28e7e186d0749e3e9cf980a23d93231e (patch) | |
tree | 50eb85966b6d87f73128728dab876e36dcc67799 /tests/startup.at | |
parent | 2ba31eb953d18bb818a87caddcbca80bc8a1d37d (diff) | |
download | pies-a8d45eff28e7e186d0749e3e9cf980a23d93231e.tar.gz pies-a8d45eff28e7e186d0749e3e9cf980a23d93231e.tar.bz2 |
Implement shutdown components
* src/pies.h: Update comment.
* src/progman.c (register_prog0): Register shutdown components
in disabled state.
(program_shutdown): New function.
(progman_stop): Call program_shutdown.
* tests/shutdown.at: New test.
* tests/Makefile.am: Add new test.
* tests/testsuite.at: Likewise.
* tests/aux/startup: Rename to tests/aux/touchfile
* tests/startup.at: Reflect the change.
Diffstat (limited to 'tests/startup.at')
-rw-r--r-- | tests/startup.at | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/startup.at b/tests/startup.at index 72017ce..440c249 100644 --- a/tests/startup.at +++ b/tests/startup.at | |||
@@ -24,12 +24,12 @@ comp_pid_file=$PWD/comp.pid | |||
24 | cat > pies.conf <<_EOT | 24 | cat > pies.conf <<_EOT |
25 | component b1 { | 25 | component b1 { |
26 | mode startup; | 26 | mode startup; |
27 | command "$auxdir/startup $PWD 1 b1"; | 27 | command "$auxdir/touchfile $PWD 1 b1"; |
28 | } | 28 | } |
29 | 29 | ||
30 | component b2 { | 30 | component b2 { |
31 | mode startup; | 31 | mode startup; |
32 | command "$auxdir/startup $PWD 2 b2"; | 32 | command "$auxdir/touchfile $PWD 2 b2"; |
33 | } | 33 | } |
34 | 34 | ||
35 | component test { | 35 | component test { |