aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2017-02-07 23:51:17 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2017-02-07 23:51:17 +0100
commit68aa9e1b26b0af916423def6892de7fdb8a03048 (patch)
treedcd975b13e3dbff78fd2eb0e982db1edb9462fa4 /tests
parente7b579ed92ac640133e4a7768a37a3ed02f66fb8 (diff)
downloadblogc-68aa9e1b26b0af916423def6892de7fdb8a03048.tar.gz
blogc-68aa9e1b26b0af916423def6892de7fdb8a03048.tar.bz2
blogc-68aa9e1b26b0af916423def6892de7fdb8a03048.zip
make: fixed cmd quoting. read runserver settings from env
Diffstat (limited to 'tests')
-rw-r--r--tests/blogc-make/check_exec.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/blogc-make/check_exec.c b/tests/blogc-make/check_exec.c
index ce87f09..6b5ca9e 100644
--- a/tests/blogc-make/check_exec.c
+++ b/tests/blogc-make/check_exec.c
@@ -55,19 +55,19 @@ test_build_blogc_cmd_with_settings(void **state)
rv = bm_exec_build_blogc_cmd(settings, variables, true, "main.tmpl",
"foo.html", true);
assert_string_equal(rv,
- "LC_ALL='en_US.utf8' /path/to/blogc -D FOO='BAR' -D BAR='BAZ' "
+ "LC_ALL='en_US.utf8' '/path/to/blogc' -D FOO='BAR' -D BAR='BAZ' "
"-D LOL='HEHE' -l -t 'main.tmpl' -o 'foo.html' -i");
free(rv);
rv = bm_exec_build_blogc_cmd(settings, variables, false, NULL, NULL, false);
assert_string_equal(rv,
- "LC_ALL='en_US.utf8' /path/to/blogc -D FOO='BAR' -D BAR='BAZ' "
+ "LC_ALL='en_US.utf8' '/path/to/blogc' -D FOO='BAR' -D BAR='BAZ' "
"-D LOL='HEHE'");
free(rv);
rv = bm_exec_build_blogc_cmd(settings, NULL, false, NULL, NULL, false);
assert_string_equal(rv,
- "LC_ALL='en_US.utf8' /path/to/blogc -D FOO='BAR' -D BAR='BAZ'");
+ "LC_ALL='en_US.utf8' '/path/to/blogc' -D FOO='BAR' -D BAR='BAZ'");
free(rv);
unsetenv("BLOGC");
@@ -108,17 +108,17 @@ test_build_blogc_cmd_without_settings(void **state)
rv = bm_exec_build_blogc_cmd(NULL, variables, true, "main.tmpl", "foo.html",
true);
assert_string_equal(rv,
- "/path/to/blogc -D LOL='HEHE' -l -t 'main.tmpl' -o 'foo.html' -i");
+ "'/path/to/blogc' -D LOL='HEHE' -l -t 'main.tmpl' -o 'foo.html' -i");
free(rv);
rv = bm_exec_build_blogc_cmd(NULL, variables, false, NULL, NULL, false);
assert_string_equal(rv,
- "/path/to/blogc -D LOL='HEHE'");
+ "'/path/to/blogc' -D LOL='HEHE'");
free(rv);
rv = bm_exec_build_blogc_cmd(NULL, NULL, false, NULL, NULL, false);
assert_string_equal(rv,
- "/path/to/blogc");
+ "'/path/to/blogc'");
free(rv);
unsetenv("BLOGC");