summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-11-11 08:23:51 +0000
committerMike Frysinger <vapier@gentoo.org>2008-11-11 08:23:51 +0000
commitd3953761f66476d7a0e6a38ede57661b4d190589 (patch)
treefe376d0a19f6c0633221f70c7a4fc0db7b025c26 /tests/chmod-0.c
parentmove build flags to configure rather than Makefile (diff)
downloadsandbox-d3953761f66476d7a0e6a38ede57661b4d190589.tar.gz
sandbox-d3953761f66476d7a0e6a38ede57661b4d190589.tar.bz2
sandbox-d3953761f66476d7a0e6a38ede57661b4d190589.zip
tests: initial test framework
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tests/chmod-0.c')
-rw-r--r--tests/chmod-0.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/chmod-0.c b/tests/chmod-0.c
new file mode 100644
index 0000000..583ed5d
--- /dev/null
+++ b/tests/chmod-0.c
@@ -0,0 +1,16 @@
+#define FUNC chmod
+#define SFUNC "chmod"
+#define FUNC_STR "\"%s\", %o"
+#define FUNC_IMP file, mode
+#define ARG_CNT 2
+#define ARG_USE "<file> <mode>"
+
+#define process_args() \
+ s = argv[i++]; \
+ char *file = s; \
+ \
+ s = argv[i++]; \
+ mode_t mode; \
+ sscanf(s, "%i", &mode);
+
+#include "test-skel-0.c"