diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-12-27 21:52:25 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-12-27 21:52:25 +0100 |
commit | 6974c7030339b0e07086d8a34548396313725346 (patch) | |
tree | d7142decb8f5557703bf3026deceef19a96b32e4 /tests | |
parent | 4755ad22cdfa2c7414cc66e068b884f90f2cc639 (diff) | |
download | blogc-6974c7030339b0e07086d8a34548396313725346.tar.gz blogc-6974c7030339b0e07086d8a34548396313725346.tar.bz2 blogc-6974c7030339b0e07086d8a34548396313725346.zip |
make: implemented runserver rule
Diffstat (limited to 'tests')
-rw-r--r-- | tests/blogc-make/check_settings.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/blogc-make/check_settings.c b/tests/blogc-make/check_settings.c index 0078073..3b19f2f 100644 --- a/tests/blogc-make/check_settings.c +++ b/tests/blogc-make/check_settings.c @@ -106,7 +106,7 @@ test_settings2(void **state) assert_string_equal(bc_trie_lookup(s->env, "SITE_TITLE"), "Fuuuuuuuuu"); assert_string_equal(bc_trie_lookup(s->env, "SITE_TAGLINE"), "My cool tagline"); assert_string_equal(bc_trie_lookup(s->env, "BASE_DOMAIN"), "http://example.com"); - assert_int_equal(bc_trie_size(s->settings), 14); + assert_int_equal(bc_trie_size(s->settings), 17); assert_string_equal(bc_trie_lookup(s->settings, "source_ext"), ".txt"); assert_string_equal(bc_trie_lookup(s->settings, "html_ext"), "/index.html"); assert_string_equal(bc_trie_lookup(s->settings, "output_dir"), "bola"); @@ -122,6 +122,9 @@ test_settings2(void **state) assert_string_equal(bc_trie_lookup(s->settings, "pagination_prefix"), "page"); assert_string_equal(bc_trie_lookup(s->settings, "post_prefix"), "post"); assert_string_equal(bc_trie_lookup(s->settings, "tag_prefix"), "tag"); + assert_string_equal(bc_trie_lookup(s->settings, "runserver_host"), "127.0.0.1"); + assert_string_equal(bc_trie_lookup(s->settings, "runserver_port"), "8080"); + assert_string_equal(bc_trie_lookup(s->settings, "runserver_threads"), "20"); assert_non_null(s->posts); assert_string_equal(s->posts[0], "aaaa"); assert_string_equal(s->posts[1], "bbbb"); |