Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Complete execs tests.
jlaffaye committed 15 years ago
commit 568f162197adcfca930059beabc520cf6af485e2
parent ee9fb7f
1 file changed +10 -1
modified tests/manifest.c
@@ -186,7 +186,16 @@ START_TEST(parse_manifest)

	execs = pkg_execs(p);
	fail_if(execs == NULL);
-
	/* TODO when this bug is resolved */
+
	for (i = 0; execs[i] != NULL; i++) {
+
		if (i == 0) {
+
			fail_unless(pkg_exec_type(execs[i]) == PKG_EXEC);
+
			fail_unless(strcmp(pkg_exec_cmd(execs[i]), "true && echo hello") == 0);
+
		} else if (i == 1) {
+
			fail_unless(pkg_exec_type(execs[i]) == PKG_EXEC);
+
			fail_unless(strcmp(pkg_exec_cmd(execs[i]), "false || echo world") == 0);
+
		}
+
	}
+
	fail_unless(i == 2);

	options = pkg_options(p);
	fail_if(options == NULL);