diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-11-11 08:23:51 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-11-11 08:23:51 +0000 |
commit | d3953761f66476d7a0e6a38ede57661b4d190589 (patch) | |
tree | fe376d0a19f6c0633221f70c7a4fc0db7b025c26 /tests/chmod-0.c | |
parent | move build flags to configure rather than Makefile (diff) | |
download | sandbox-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.c | 16 |
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" |