/src/igr-tests/chain-to/recorded-output
/src/igr-tests/restart/basic-ran
/src/igr-tests/check-basic/output.txt
+/src/igr-tests/check-cycle/output.txt
# Generated man pages:
/doc/manpages/*.5
clean:
rm -f igr-runner basic/basic-ran environ/env-record ps-environ/env-record chain-to/recorded-output
rm -f restart/basic-ran
- rm -f check-basic/output.txt
+ rm -f check-basic/output.txt check-cycle/output.txt
--- /dev/null
+Checking service: boot...
+Checking service: a...
+Checking service: b...
+Checking service: c...
+Checking service: d...
+Checking service: e...
+Found dependency cycle:
+ b ->
+ d ->
+ e ->
+ b.
--- /dev/null
+#!/bin/sh
+
+../../dinitcheck -d sd > output.txt 2>&1
+
+STATUS=FAIL
+if cmp -s expected.txt output.txt; then
+ STATUS=PASS
+fi
+
+if [ $STATUS = PASS ]; then exit 0; fi
+exit 1
--- /dev/null
+type=internal
+depends-on=b
--- /dev/null
+type=internal
+depends-on=d
--- /dev/null
+type=internal
+depends-on=a
+depends-on=b
+depends-on=c
--- /dev/null
+type=internal
+depends-on=b
--- /dev/null
+type=internal
+depends-on=e
--- /dev/null
+type=internal
+depends-on=b # cycle!
int main(int argc, char **argv)
{
const char * const test_dirs[] = { "basic", "environ", "ps-environ", "chain-to", "force-stop", "restart",
- "check-basic" };
+ "check-basic", "check-cycle" };
constexpr int num_tests = sizeof(test_dirs) / sizeof(test_dirs[0]);
int passed = 0;